Programming Techniques (OCR A-Level 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 in programming?
What are the three fundamental constructs in programming?
Sequence, iteration, and branching
What is sequence in programming?
What is sequence in programming?
Instructions executed in order written
Why is sequence critical in programming?
Why is sequence critical in programming?
Output of one step depends on the previous step
What is iteration?
What is iteration?
Repeating instructions until condition met
What characterises a condition-based iteration (While Loop)?
What characterises a condition-based iteration (While Loop)?
Repeats as long as a condition is true
What characterises a count-controlled iteration (For Loop)?
What characterises a count-controlled iteration (For Loop)?
Repeats a specific number of times
What is unique about a Repeat-Until Loop?
What is unique about a Repeat-Until Loop?
Executes loop body at least once
What does branching allow a program to do?
What does branching allow a program to do?
Make decisions based on conditions
How does an IF-ELSE statement differ from an IF statement?
How does an IF-ELSE statement differ from an IF statement?
Provides alternative action if false
What does a CASE/SWITCH statement do?
What does a CASE/SWITCH statement do?
Matches value to predefined cases
What is a key benefit of iteration?
What is a key benefit of iteration?
Automates repetitive tasks
What can cause infinite loops in iteration?
What can cause infinite loops in iteration?
Failing to update loop conditions
