Sequence and Selection (AQA GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What are the three fundamental constructs used to build every computer program?
What are the three fundamental constructs used to build every computer program?
Sequence, selection, iteration
What does 'sequence' mean in programming?
What does 'sequence' mean in programming?
Executing statements one after another
In Program A: , , , OUTPUT. What value is output?
In Program A: , , , OUTPUT. What value is output?
31
Why is the order of instructions crucial in programming?
Why is the order of instructions crucial in programming?
Changing order can change the result
What does selection allow a program to do?
What does selection allow a program to do?
Make decisions based on conditions
What values can a Boolean condition evaluate to?
What values can a Boolean condition evaluate to?
True or False only
What is the most common way to implement selection in programming?
What is the most common way to implement selection in programming?
IF statements
What is the purpose of the ELSE keyword in an IF statement?
What is the purpose of the ELSE keyword in an IF statement?
Specify what happens when condition is false
When should you use ELSE IF in your code?
When should you use ELSE IF in your code?
To check multiple different conditions
What happens when a condition in an IF statement is true?
What happens when a condition in an IF statement is true?
Code executes, rest are skipped
Why does checking before cause problems?
Why does checking before cause problems?
is true, so it stops checking
How should you order conditions when checking number ranges?
How should you order conditions when checking number ranges?
Highest to lowest (most to least)
