Logical Conditions in Computational Thinking (OCR A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
13 cards from this deck
ShowHide
Practise the cards
13 cards from this deck
What do logical conditions evaluate to?
What do logical conditions evaluate to?
True or false
What is the purpose of logical conditions?
What is the purpose of logical conditions?
Control program flow based on criteria
Comparison operator ==
Comparison operator ==
Equal to
Comparison operator !=
Comparison operator !=
Not equal to
When AND operator returns true
When AND operator returns true
When both conditions are true
When OR operator returns true
When OR operator returns true
When at least one condition is true
What NOT operator does
What NOT operator does
Inverts the truth value of a condition
Where logical conditions are used
Where logical conditions are used
IF statements, loops, and CASE statements
How logical conditions affect programs
How logical conditions affect programs
Determine execution paths leading to different results
Shape for decision points in flowcharts
Shape for decision points in flowcharts
Diamond shapes
Operator >= meaning
Operator >= meaning
Greater than or equal to
Operator <= meaning
Operator <= meaning
Less than or equal to
Common mistake with AND/OR operators
Common mistake with AND/OR operators
Misplacing them causes unexpected results
