Logical operators (Edexcel GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What type of values do logical operators work with?
What type of values do logical operators work with?
Boolean values
When does the 'and' operator return True?
When does the 'and' operator return True?
When both sides are true
When does the 'or' operator return True?
When does the 'or' operator return True?
When at least one side is true
What does the 'not' operator do?
What does the 'not' operator do?
Inverts the result
When is the only time the 'or' operator returns False?
When is the only time the 'or' operator returns False?
When both sides are false
How many conditions does the 'not' operator need?
How many conditions does the 'not' operator need?
One condition to flip
Which operators need something on both sides to compare?
Which operators need something on both sides to compare?
'and' and 'or'
What happens first when evaluating Boolean conditions?
What happens first when evaluating Boolean conditions?
Each condition is evaluated
Which structures use logical operators?
Which structures use logical operators?
Selection and repetition
If age >= 18 is False and hasLicense is True, what does (age >= 18) and (hasLicense) return?
If age >= 18 is False and hasLicense is True, what does (age >= 18) and (hasLicense) return?
False
Which logical operator is described as more flexible?
Which logical operator is described as more flexible?
'or'
Which operator is stricter and needs everything to be true?
Which operator is stricter and needs everything to be true?
'and'
