Python Quiz Day One

Hello Guys, we hope you and your family are safe. Today, we have come up with a new python quiz based on operators and expressions of python. This quiz was asked by some of the followers on Instagram (@_tech_tutor).

1. Which one of these is floor division? 

 
 
 
 

2. In the python statement, 

>>>  a = x + 9 - y

Then,

  • x and y are ____
  • x + 9 – y is ____
 
 
 
 

3. What is the output of this expression 28%3?

 
 
 
 

4. Which of the below option has highest precedence in the Python’s expression? 

 
 
 
 

5. Under which manner are operators of the same precedence evaluated? 

 
 
 
 

6. Which of the below operators has the highest precedence?

 
 
 
 

7. What is the output of the below print statement?

>>> print(10 - 4 * 2)

 
 
 
 

8. What is the output of the below code?

When,

  • a = 200
  • b = 20

Then,

>>> print(a and b)

 
 
 
 

9. What is the output of the below print statement? 

>>> print(-119//5)

 
 
 
 

10. What is the output of this expression, 5*1**5?