Logical Conditions in Computational Thinking (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 does a logical condition evaluate to?
What does a logical condition evaluate to?
True or false
What is the main purpose of logical conditions in programs?
What is the main purpose of logical conditions in programs?
Control program flow
When does the AND operator return true?
When does the AND operator return true?
Both conditions are true
When does the OR operator return true?
When does the OR operator return true?
At least one condition is true
What does the NOT operator do?
What does the NOT operator do?
Inverts the truth value
Where are logical conditions used in programs?
Where are logical conditions used in programs?
IF statements, loops, CASE statements
For examScore >= 50 AND courseworkScore >= 50, when does a student pass?
For examScore >= 50 AND courseworkScore >= 50, when does a student pass?
Both scores must be >= 50
For age < 18 OR age > 60, when does a user get a discount?
For age < 18 OR age > 60, when does a user get a discount?
Under 18 or over 60
What shape represents decision points in flowcharts?
What shape represents decision points in flowcharts?
Diamond
What condition prevents division by zero errors?
What condition prevents division by zero errors?
IF divisor != 0
How do well-defined logical conditions affect algorithms?
How do well-defined logical conditions affect algorithms?
Optimise performance
What common mistake involves logical operators?
What common mistake involves logical operators?
Misplacing AND and OR
