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)

Sequence

Back (Answer)

Executing one instruction after another

#2
Front (Question)

Selection

Back (Answer)

A program branching depending on a condition IF / ELSE statements.

#3
Front (Question)

Iteration

Back (Answer)

Repeating sections of code - looping.

#4
Front (Question)

Types of Iteration

Back (Answer)

FOR loops WHILE loops

#5
Front (Question)

FOR Loops

Back (Answer)

AKA count-controlled loops are used when the number of iterations needed are known ahead of the iteration executing.

#6
Front (Question)

Example of FOR loops

Back (Answer)

for i in range(3): print(“Hello”) Hello Hello Hello

#7
Front (Question)

WHILE Loops

Back (Answer)

Condition-controlled loops are used when the number of iterations needed are not known beforehand as the variable used to determine that changes.

#8
Front (Question)

Example of WHILE loops

Back (Answer)

count= 10 while count>0: print(count) count = count-1 print(“Blast off”) 10 9 8 7 6 5 4 3 2 1 Blast off

#9
Front (Question)

The 4 Data Types

Back (Answer)

String Integer Float Boolean

#10
Front (Question)

Integer

Back (Answer)

A whole number, positive or negative. Used for calculations.

#11
Front (Question)

Real / Float

Back (Answer)

A number with a decimal point. Used for calculations.

#12
Front (Question)

String

Back (Answer)

A set of characters.

#13
Front (Question)

Boolean

Back (Answer)

TRUE or FALSE. Used to check if something has happened.

#14
Front (Question)

Character

Back (Answer)

A single alphanumeric character.

#15
Front (Question)

Casting

Back (Answer)

Converting a variable from one data type to another. x = int(x)

#16
Front (Question)

Variables

Back (Answer)

A value stored in memory that can change while the program is running.

#17
Front (Question)

Constants

Back (Answer)

A value that does not change while the program is running and is assigned when the program is designed.

#18
Front (Question)

Assignment

Back (Answer)

Giving a variable or constant a value.

#19
Front (Question)

Subprograms

Back (Answer)

small programs that are written within a larger, main program to perform a specific task.

#20
Front (Question)

Types of Subprograms

Back (Answer)

• Functions • Procedures

#21
Front (Question)

Functions

Back (Answer)

Manipulates data and returns a result back to the main program.

#22
Front (Question)

Example of Functions

Back (Answer)

function f_to_c(temperature_in_f) temperature_in_f= (temperature_in_f –32) * 5/9 return temperature_in_c endfunction

#23
Front (Question)

Calling a Function

Back (Answer)

celsius = f_to_c(32)

#24
Front (Question)

Procedures

Back (Answer)

A subprogram that performs a specific task. When the task is complete, the subprogram ends and the main program continues from where it left off.