Python Basic Quiz #8 – Operators

Welcome to your Python Basic Quiz #8 - Conditionals & Boolean values

User Name
Email
1. 
Which of the following code is not correct?
2. 
What will be the output of the below code?
print("Start")
if((4 < 5) or (4 == 5)):
  print("Success")
print("End")
3. 
What will be the output of the below code?
print(1)
if(False == False):
  print(2)
print(3)
4. 
What will be the output of the below code?
print(1)
if(True & False):
  print(2)
print(3)
5. 
Fill in the correct operators in the blank place.
x = 10
if x __ 0:
  print("Value is greater than 0.")
elif x __ 0:
  print("Value is less than 0.")
else:
  print("Value is Zero.")

Leave a Reply