Python Basic Quiz #8 – Operators

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

User Name
Email
1. 
What will be the output of the below code?

print(1)
if(False == False):
  print(2)
print(3)

2. 
What will be the output of the below code?

print(1)
if(True & False):
  print(2)
print(3)

3. 
Which of the following code is not correct?

4. 
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.")

5. 
What will be the output of the below code?

print("Start")
if((4 < 5) or (4 == 5)):
  print("Success")
print("End")

Leave a Reply