Python Quiz Day Four

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

1. When evaluating ~10 in a compiler, what is the equivalent value that we obtain?

 
 
 
 

2. What is the output of the below snippet of Python code?

 
 
 
 

3. The integer in Python 3 goes form -21,471,816 to +21,471,816. 

 
 
 
 

4. Which of the below is the incorrect value for variable a

 
 
 
 

5. What does 7^8 evaluate for

 
 
 
 

6. Type of inf is known as?

 
 
 
 

7. Which of the below is incorrect? 

 
 
 
 

8. What is the output of the below snippet of Python code?  

 
 
 
 

9. What does ~~~~~~1 evaluate to?

 
 
 
 

10. What is the output of the below code?

 
 
 
 

Leave a Reply

Your email address will not be published. Required fields are marked *