Logical Conditions in Computational Thinking (OCR A-Level Computer Science): Flashcards

📚Flashcards
Logical Conditions in Computational Thinking
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

13 cards from this deck

Show

What do logical conditions evaluate to?

True or false

What is the purpose of logical conditions?

Control program flow based on criteria

Comparison operator ==

Equal to

Comparison operator !=

Not equal to

When AND operator returns true

When both conditions are true

When OR operator returns true

When at least one condition is true

What NOT operator does

Inverts the truth value of a condition

Where logical conditions are used

IF statements, loops, and CASE statements

How logical conditions affect programs

Determine execution paths leading to different results

Shape for decision points in flowcharts

Diamond shapes

Operator >= meaning

Greater than or equal to

Operator <= meaning

Less than or equal to

Common mistake with AND/OR operators

Misplacing them causes unexpected results

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.