Back to marketplace

2.2.1 Programming Techniques

No description yet. This curated deck is ready for daily study.

Total cards: 22•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (22)

#1
Front (Question)

Sequence

Back (Answer)

Executing instructions one after another

#2
Front (Question)

Selection (branching)

Back (Answer)

• IF statement • A construct that allows a program to change direction depending on the outcome of a condition

#3
Front (Question)

Iteration

Back (Answer)

Enables us to repeat sections of code

#4
Front (Question)

When is a FOR loop (count-controlled loop) used?

Back (Answer)

When the required number of iterations is known ahead of the execution

#5
Front (Question)

When is a WHILE loop (condition-controlled loop) used?

Back (Answer)

When the required number of iterations is unknown as the variable used to determine when the iteration ends is changing within the iteration itself

#6
Front (Question)

Nest structure

Back (Answer)

Programming constructs inside one another

#7
Front (Question)

Recursion

Back (Answer)

When a subroutine calls itself from within another subroutine

#8
Front (Question)

What 3 characteristics should a recursion subroutine have?

Back (Answer)

• Contains a stopping condition (base case) • For an input value other than the base case, the subroutine should call itself • The stopping condition should be reachable within a finite number of times

#9
Front (Question)

Without the 3 characteristics, what would the recursion subroutine result in?

Back (Answer)

A stack overflow

#10
Front (Question)

Variable

Back (Answer)

Used to store information to be referenced and manipulated in a computer program

#11
Front (Question)

Local variable (4)

Back (Answer)

• Declared inside a subroutine • Only accessible by that subroutine • Created when the subroutine is called • Destroyed when the subroutine ends

#12
Front (Question)

Global variable (4)

Back (Answer)

• Declared at the top of a program, outside of any subroutine • Accessible throughout the program • Created when the program starts • Destroyed when the program ends

#13
Front (Question)

Scope of a variable

Back (Answer)

• Refers to where the variable can be accessible in the code

#14
Front (Question)

Procedure

Back (Answer)

• Block of code that takes in zero, one or more parameters and performs a set task

#15
Front (Question)

Function

Back (Answer)

• Block of code that takes in zero, one or more parameters and performs a set task • RETURNS A VALUE

#16
Front (Question)

Modularity

Back (Answer)

Concept of breaking a large program into smaller chunks - Each module carries out a single, specific task

#17
Front (Question)

Integrated Development Environments

Back (Answer)

• Program that provides a set of tools and related functionality designed to maximise a programmer’s productivity

#18
Front (Question)

Common features of IDEs

Back (Answer)

• Auto-documentation • Syntax highlighting • Error diagnostics • Code editors • Translators

#19
Front (Question)

Code editor

Back (Answer)

A text area for programmers to enter code directly into the IDE; often supports features e.g. syntax highlighting, automatic indentation

#20
Front (Question)

Error diagnostics

Back (Answer)

Reports errors in the code and where they can be found

#21
Front (Question)

Translators

Back (Answer)

Program that converts high level code into machine code

#22
Front (Question)

Back (Answer)