Python ProgrammingQuiz

Python Quiz Day Three

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

1. Which of the following is not a core data type?

 
 
 
 

2. What happens when you execute the following snippet of Python code?

>>> Python = Java

 
 
 
 

3. Which of the following value returned by trunc()?

 
 
 
 

4. What is the output of the below tuple operations? 

 
 
 
 

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

 
 
 
 

6. What happens when you execute the following snippet of Python code?

 
 
 
 

7. What is the output of the below union operation?

 
 
 
 

8. Select the appropriate way to clear the below dictionary. 

 
 
 
 

9. Name the data type of the below object.
>>> num = [6,7,'8',9]

 
 
 
 

10. What happens when you execute the following snippet of Python code?
>>> print('ab cd ef'.title())

 
 
 
 

Let us know if you have any queries: