Menu

Boolean Operators - Code Quiz

1. What is output when this code runs?

score = 55 print(score >= 0 and score <= 100) print(score < 0 or score > 100)
False False
False True
True True
True False

2. What is output when this code runs?

colour = 'red' print(not (colour == 'red')) print(colour != 'red')
True False
False True
True True
False False

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic