Back to marketplace

2.2.1 Programming techniques- Callum

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

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

Card preview (20)

#1
Front (Question)

What does sequence mean as a programming construct?

Back (Answer)

Code is executed line-by-line, top to bottom

#2
Front (Question)

What is selection?

Back (Answer)

when a certain block of code is run ONLY if certain conditions are met

#3
Front (Question)

what is iteration?

Back (Answer)

A block of code is repeated a certain number of times or until a condition is met

#4
Front (Question)

What loops are examples of iteration?

Back (Answer)

For, While, Repeat until

#5
Front (Question)

What is recursion?

Back (Answer)

A programming construct in which a subroutine calls itself over and over until a stopping condition is met.

#6
Front (Question)

What is an advantage of recursion?

Back (Answer)

Solutions can be represented in fewer lines of code that with iteration.

#7
Front (Question)

What are the downsides of recursion?

Back (Answer)

it has very inefficient memory usage due to creating copies of variables. Recursion is also quite difficult to trace.

#8
Front (Question)

what is a local variable?

Back (Answer)

A variable that is accessible only in the subroutine in which it is defined.

#9
Front (Question)

Why is using local variables good programming practice?

Back (Answer)

It eliminates the danger of variables being affected by code outside of the subroutine.

#10
Front (Question)

What is a global variable?

Back (Answer)

A variable that is accessible throughout the whole program.

#11
Front (Question)

Why is using global variables not recommended in large programs?

Back (Answer)

They can be unintentionally altered by parts of the program. They also take up more space in memory than local variables as they are not deleted after a subroutine is finished.

#12
Front (Question)

what is modular programming?

Back (Answer)

Modular programming is a technique used to split large, complex programs into smaller, self-contained modules.

#13
Front (Question)

What are some advantages of modular programming?

Back (Answer)

makes it easier to split tasks between a team and manage projects. simplifies the process of testing, as each component can be dealt with individually improves the reusability of components

#14
Front (Question)

what is top-down design?

Back (Answer)

when a problem is continually broken down into sub-problems, until each can be represented as an individual, self-contained module which performs a certain task

#15
Front (Question)

What is another word for module in programming?

Back (Answer)

subroutine

#16
Front (Question)

What is passing by value?

Back (Answer)

when a copy of the value is passed to a subroutine and discarded at the end. This ensures its value outside of the subroutine remains unaffected.

#17
Front (Question)

What is passing by reference?

Back (Answer)

Passing by reference means that the address of the parameter is given to the subroutine, so the value of the parameter will be updated at the given address.

#18
Front (Question)

What is an IDE?

Back (Answer)

standing for Integrated Development Environment, it is a program which provides a set of tools to make it easier for programmers to write, develop and debug code.

#19
Front (Question)

By what process does a class make an object?

Back (Answer)

Instantiation

#20
Front (Question)

What are some common features of an IDE?

Back (Answer)

*Stepping This allows you to monitor the effect of each individual line of code by executing a single line at a time. *Variable watch This allows users to observe how the contents of a variable change in real-time. *Breakpoint IDEs allow users to set a point in the program at which the program will stop. *Source code editor The editor provides features such as autocompletion of words, indentation, syntax highlighting and automatic bracket completion. *Debugging tools Some IDEs also provide run-time detection of errors with a guide as to where in the code they are likely to have occurred.