Back to marketplace

Programming concepts

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

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

Card preview (24)

#1
Front (Question)

What does a variable do?

Back (Answer)

Holds values that can be modified when the program is executed

#2
Front (Question)

What does a constant do?

Back (Answer)

Holds values that remain unchanged when a program is executed

#3
Front (Question)

How do you assign a variable?

Back (Answer)

Declare the name and data type, then assign a value

#4
Front (Question)

What are the three main steps to using variables?

Back (Answer)

Declaration, Assignment, and Initialisation

#5
Front (Question)

What is declaration?

Back (Answer)

Creating space in memory for a variable or constant

#6
Front (Question)

What is assignment?

Back (Answer)

Setting the contents of the memory space to a value

#7
Front (Question)

What is initialisation?

Back (Answer)

Setting the value of a variable before any processing takes place

#8
Front (Question)

Name the advantages of using constants

Back (Answer)

You can use the same identifier throughout a program which keeps the program code consistent- making it easy to debug and read, if errors occur changes only need to be made at one point- the initialising of the constant

#9
Front (Question)

Define an identifier

Back (Answer)

A name given to any variable, constant, subroutine, or class

#10
Front (Question)

Why are meaningful identifiers important?

Back (Answer)

So the purpose of the subroutine is clear to anyone reading your code

#11
Front (Question)

What are definite loops and how are they implemented? give an example

Back (Answer)

A set of instructions repeated a certain number of times, implemented by count-controlled loops e.g. for

#12
Front (Question)

What are indefinite loops and how are they implemented? give an example

Back (Answer)

A set of instructions that are repeated until a condition is met, implemented by condition control loops e.g. while

#13
Front (Question)

When does a while loop check its condition?

Back (Answer)

At the start of each iteration until the condition is met

#14
Front (Question)

When does a repeat until loop check its condition?

Back (Answer)

At the end of each iteration until the condition is met

#15
Front (Question)

What is nested iteration?

Back (Answer)

When a loop is inside another loop

#16
Front (Question)

How does nested iteration work?

Back (Answer)

The inner loop will be executed for all the iterations of the outer loop

#17
Front (Question)

Define sequence

Back (Answer)

A series of instructions that a program executes in order, one after another

#18
Front (Question)

How does selection differ from sequence?

Back (Answer)

Selection executes a program based on a condition

#19
Front (Question)

What is nested selection used for?

Back (Answer)

Implementing branching logic

#20
Front (Question)

What is branching logic?

Back (Answer)

If a condition of the main selection block evaluates to true then it leads to sub-conditions which are included inside the main condition

#21
Front (Question)

What are operands?

Back (Answer)

The values in calculations to which arithmetic operators are applied

#22
Front (Question)

`What does DIV do?

Back (Answer)

Returns ONLY the whole number part of a division, the fractional part is dismissed

#23
Front (Question)

What does MOD do?

Back (Answer)

Returns ONLY the remainder of a division

#24
Front (Question)

What does Round() do?

Back (Answer)

Rounds up the result of an operation