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 programs?

Back (Answer)

Sequences of instructions for a computer.

#2
Front (Question)

What is a variable ?

Back (Answer)

A named memory address that holds a value.

#3
Front (Question)

What is a global variable ?

Back (Answer)

Variable that can be accessed and changed throughout the program

#4
Front (Question)

What is a local variable ?

Back (Answer)

variables are confined to a loop or subprogram

#5
Front (Question)

What are the three basic programming constructs ?

Back (Answer)

• Sequence • Selection • Iteration

#6
Front (Question)

What is a sequence ?

Back (Answer)

A set of instructions that follow on one from another

#7
Front (Question)

What is a selection ?

Back (Answer)

A decision where the program decides to move on based on the results of an event.

#8
Front (Question)

What is an iteration ?

Back (Answer)

The repetition of a block of statements within a computer program.

#9
Front (Question)

What are the two types of iteration ?

Back (Answer)

• Count-controlled • Condition-controlled

#10
Front (Question)

How does a selection work ?

Back (Answer)

By testing a condition

#11
Front (Question)

What is a count-controlled iteration ?

Back (Answer)

• repeatedly executes a section of code a fixed number of predetermined times • for loop

#12
Front (Question)

What is a condition-controlled iteration ?

Back (Answer)

• repeatedly executes a section of code until a condition is met - or no longer met • while loop

#13
Front (Question)

What is nesting ?

Back (Answer)

Including one programming construct within another.

#14
Front (Question)

What are the two types of nesting ?

Back (Answer)

• Nested selection • Nested Iteration

#15
Front (Question)

What is an operator ?

Back (Answer)

a character that determine what action is to be performed.

#16
Front (Question)

What is a data type ?

Back (Answer)

data is divided up and organised according to type

#17
Front (Question)

What are the 5 main data types ?

Back (Answer)

• Integer • Float • Character • String • Boolean

#18
Front (Question)

What is casting ?

Back (Answer)

Changing the data type of a variable

#19
Front (Question)

How to check length in Python ?

Back (Answer)

len()

#20
Front (Question)

What is concatenation ?

Back (Answer)

connecting strings of characters next to each other

#21
Front (Question)

How to open a file in python ?

Back (Answer)

• file = open(“FileName.csv”,”a”) • “a” = append • “w” = writes • “r” = read

#22
Front (Question)

How to write to a file in python ?

Back (Answer)

• file.append() = Lists • file.write() = Files

#23
Front (Question)

How to close a file in Python ?

Back (Answer)

• file.close()

#24
Front (Question)

What is SQL ?

Back (Answer)

Structured Query Language