Back to marketplace

2.2 - Programming Fundamentals

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

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

Card preview (24)

#1
Front (Question)

What are the three programming constructs?

Back (Answer)

• Sequence • Selection • Iteration

#2
Front (Question)

What is sequencing?

Back (Answer)

Structuring code into a logical, sequential order one after the other

#3
Front (Question)

What is selection?

Back (Answer)

Decision making using if or statements

#4
Front (Question)

What is iteration?

Back (Answer)

Repeating code using for or while loops

#5
Front (Question)

What is a variable?

Back (Answer)

A named location in memory used to store a value which can be changed while the program is running

#6
Front (Question)

What is a constant?

Back (Answer)

A variable that doesn’t change whilst the program is running

#7
Front (Question)

What is a subroutine

Back (Answer)

Named out of line blocks of code that are called in the main program to execute A sequence of instructions that perform a specific task

#8
Front (Question)

What are local variables?

Back (Answer)

Variables declared within a specific subroutine that can only be used within that subroutine

#9
Front (Question)

What are the advantages of using local variables?

Back (Answer)

• Saves memory • Easier to debug local variables • You can reuse subroutines with local variables in other programs

#10
Front (Question)

What are global variables?

Back (Answer)

Variables that can be used at any point within the whole program

#11
Front (Question)

What are the advantages of using global variables?

Back (Answer)

• Can be used anywhere in the program • Makes maintenance easier • Can be used for constants

#12
Front (Question)

What are the most common arithmetic operators?

Back (Answer)

• Add (+) • Subtract (-) • Multiply (*) • Divide (/)

#13
Front (Question)

What is modulo division (AKA modulus)?

Back (Answer)

Reveals the remainder from the last whole number, E.G: 9 MOD 4 = 1 (4 goes into 9 twice (8) with a remainder of 1) Operator: MOD or %

#14
Front (Question)

What is integer division (AKA quotient)?

Back (Answer)

Reveals the whole number of times a number can be divided into another number, E.G: 9 DIV = 2 (4 goes into 9 fully, twice) Operator: DIV or //

#15
Front (Question)

What are logical operators?

Back (Answer)

TRUE or FALSE values (Boolean), E.G: AND, OR or NOT

#16
Front (Question)

What is a character?

Back (Answer)

A single character, such as a letter, number or punctuation symbol, E.G: - T - 8 - ?

#17
Front (Question)

What is a string?

Back (Answer)

A sequence of characters that can include letters, numbers and punctuation, E.G: - Harry Waters - 14:50pm - Ice Age 4

#18
Front (Question)

What is an integer?

Back (Answer)

A whole number, E.G: - 475 - -8432 - 5

#19
Front (Question)

What is a real number?

Back (Answer)

A decimal number, E.G: - 65.3 - -321.1234 - 909.135

#20
Front (Question)

What is boolean?

Back (Answer)

An answer that only has two possible values, E.G: - True / False - Yes / No - 1 / 0

#21
Front (Question)

What is casting?

Back (Answer)

Converting the value of a variable from one data type to another

#22
Front (Question)

What is an array?

Back (Answer)

A list containing items of the same data type

#23
Front (Question)

What is a two-dimensional array?

Back (Answer)

An array with multiple rows and columns that comes in the form of a table

#24
Front (Question)

What are records?

Back (Answer)

Lists storing data of different data types