Thinking Logically (OCR A-Level Computer Science): Quizzes
📚Quizzes
Practise the questions
10 questions from this quiz
ShowHide
Practise the questions
10 questions from this quiz
What does a decision in a program depend on?
What does a decision in a program depend on?
Whether a condition is true or false
When should a CASE/SWITCH statement be used?
When should a CASE/SWITCH statement be used?
Multiple conditions on a single variable
In the ATM scenario, what condition must be met to dispense cash?
In the ATM scenario, what condition must be met to dispense cash?
balance >= withdrawal_amount
What shape represents a decision point in a flowchart?
What shape represents a decision point in a flowchart?
Diamond
In the online quiz example, what score gives 'Excellent' feedback?
In the online quiz example, what score gives 'Excellent' feedback?
score >= 80
How do decisions within loops affect program flow?
How do decisions within loops affect program flow?
Determine how many times loop executes
What is a common mistake when implementing decisions?
What is a common mistake when implementing decisions?
Ignoring edge cases and boundary values
What problem occurs when omitting a DEFAULT case in CASE statements?
What problem occurs when omitting a DEFAULT case in CASE statements?
Unhandled scenarios may occur
What is the purpose of decisions in a program?
What is the purpose of decisions in a program?
Control flow by choosing branches/paths
What causes early termination in program flow?
What causes early termination in program flow?
Decisions leading to early exits
