Python Variables and Data Types Quiz [Python Quiz]

This is Python Variables and Data Types Quiz for Python Lovers. This Python Quiz for all who learning python. This quiz helps you to understand the concepts of Data Types and variables. Try to answer all questions. Best of Luck 🙂

1. What is the result of print(type([]) is list)

 
 

2. What is the data type of the following code

aTuple = (1, 'Jhon', 1+3j)
print(type(aTuple[2:3]))

 

 
 
 

3. What is the data type of print(type(0xFF))

 
 
 
 

4. Select the right way to create a string literal Ault'Kelly

 
 
 

5. Which of the following is an integer?

 
 
 

6. Which Data Type represents a whole number?

 
 
 
 

7. Python allows you to be able to use Dictionaries to store values using keys.

 
 

8. What is the output of the following code

print(bool(0), bool(3.14159), bool(-3), bool(1.0+1j))

 

 
 
 
 

9. In Python 3, what is the type of type(range(5))

 
 
 

10. Which of the following is used to represent ‘nothing’?

 
 
 
 

11. What is the output of the following code

x = 70
def fun1():
    x = 35
    print(x)
fun1()
print(x)
 
 
 

12. What is the data type of print(type(10))

 
 
 

I hope you like this quiz. Share this python quiz with your friend.

Play following python quiz.

Support CodeSnail

If you appreciate my work, or if it has helped you along your journey. It would mean a lot to me if you could write a message on my wall and share a cup of coffee (or tea) with me.

Buy Me A Coffee

Related Articles

Leave a Comment

Copy link
Powered by Social Snap