Logical operators (Edexcel GCSE Computer Science): Quizzes

📚Quizzes
Logical operators
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

12 questions from this quiz

Show

What type of values do logical operators work with?

Boolean values

When does the 'and' operator return True?

When both sides are true

When does the 'or' operator return True?

When at least one side is true

What does the 'not' operator do?

Inverts the result

When is the only time the 'or' operator returns False?

When both sides are false

How many conditions does the 'not' operator need?

One condition to flip

Which operators need something on both sides to compare?

'and' and 'or'

What happens first when evaluating Boolean conditions?

Each condition is evaluated

Which structures use logical operators?

Selection and repetition

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?

'or'

Which operator is stricter and needs everything to be true?

'and'

Join 100,000+ GCSE students studying Quizzes with us.

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