Algorithms and Programming Flashcards
6 cards from real GCSE practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 6 Algorithms and Programming flashcards as text
In programming, what term describes instructions being executed one after another in the order they are written?
Answer: Sequence
Sequence is one of the three basic programming constructs, alongside selection and iteration.
Which programming construct uses IF/ELSE statements to make decisions based on conditions?
Answer: Selection
Selection allows a program to choose between different paths of execution depending on whether a condition is true or false.
Which programming construct repeats a block of instructions, such as through a FOR loop or WHILE loop?
Answer: Iteration
Iteration repeats a set of instructions either a fixed number of times or until a condition is met.
What is a named location in a computer's memory used to store a value that can change while a program runs called?
Answer: A variable
A variable stores data that can be read and updated as the program executes.
Which data type is used to store whole numbers, such as 5 or -12, with no decimal point?
Answer: Integer
Integer data types store whole numbers without any fractional or decimal component.
Which data type can only hold one of two values, True or False?
Answer: Boolean
A Boolean data type stores a binary value representing True or False.