Back to marketplace

1.2.4 types of programming language

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 is a computer program

Back (Answer)

• series of statements (instructions) that are executed one after another

#2
Front (Question)

all but the most trivial (insignificant) of programs tend to do what 3 things

Back (Answer)

• accept input • process data • produce output

#3
Front (Question)

what are the 3 programming constructs (used in procedural languages)

Back (Answer)

• sequence • selection • iteration

#4
Front (Question)

what is sequencing

Back (Answer)

• executing instructions one after another

#5
Front (Question)

what is selection

Back (Answer)

• allows a program to branch and follow a different direction depending on outcome of a certain condition

#6
Front (Question)

what is iteration

Back (Answer)

• repeating / looping sections of code

#7
Front (Question)

how do you create an infinite loop

Back (Answer)

WHILE True

#8
Front (Question)

what is a FOR loop (type and what does it mean)

Back (Answer)

• count-controlled loop • used when required number of iterations is known ahead of execution

#9
Front (Question)

what is a WHILE loop (type and what does it mean)

Back (Answer)

• condition-controlled loop • used when required number of iterations isn’t known because the variable used to determine when the iteration ends is changing within the iteration itself

#10
Front (Question)

what is a DO… UNTIL loop

Back (Answer)

• alternative to WHILE where the code executes at least once before condition is checked

#11
Front (Question)

what is the difference between WHILE loop and DO…UNTIL loop

Back (Answer)

• WHILE loop, condition checked at start (if condition met, we may never execute the following lines of code in WHILE loop) • DO… UNTIL loop always executes code once before checking exit condition at end

#12
Front (Question)

what do programming constructs do

Back (Answer)

• control flow of program

#13
Front (Question)

What is program flow?

Back (Answer)

The path that a program follows as it runs from start to finish.

#14
Front (Question)

what is nesting

Back (Answer)

• process of putting one statement inside another • this can be achieved through both iteration and selection statements

#15
Front (Question)

What is a variable?

Back (Answer)

• pointer to a memory location that holds a value. It is defined by a name/label. CAN BE CHANGED WHILE THE PROGRAM IS RUNNING.

#16
Front (Question)

What is a constant?

Back (Answer)

• a memory location that holds a value. It is defined by a name/label CANNOT BE CHANGED WHILE THE PROGRAM IS RUNNING

#17
Front (Question)

what is a subroutine

Back (Answer)

• block of code given a unique, identifiable name within a program

#18
Front (Question)

why do we use subroutines

Back (Answer)

• break down larger problem into series of smaller + more manageable problems • this makes code easier to write, debug and test • creates reusable components

#19
Front (Question)

What is a similarity and a difference between a procedure and a function?

Back (Answer)

• Both are blocks of code (provide structure to code) which carry out a set task • they are defined under a name which can be called and run simply by stating name of the function / procedure. • Functions return values whereas procedures only execute commands. • functions also create reusable program components

#20
Front (Question)

what are procedures and functions similar to in OOP

Back (Answer)

• methods

#21
Front (Question)

what is casting

Back (Answer)

• converting value into a different data type • e.g string to integer using command int

#22
Front (Question)

Give examples of arithmetic operators.

Back (Answer)

+ (addition) - (subtraction) * (multiplication) / (division) ^ or ** (exponentiation) MOD or % (remainder) DIV or // (e.g 7 DIV 2 = 3, its the nearest integer answer)

#23
Front (Question)

Give examples of comparison operators.

Back (Answer)

== (equal to) != (not equal to) < (less than) <= (less than or equal to) > (greater than) >= (greater than or equal to)

#24
Front (Question)

Give examples of boolean operators.

Back (Answer)

AND / OR / NOT / XOR