Basic Python Quiz for Beginners

This is Basic Python Quiz for Beginners who are new to Python Programming. This quiz helps you to clear about Python Fundamentals. So, test your self by playing this quiz.

1. What is the correct file extension for Python files?

 
 
 
 

2. Which method can be used to return a string in upper case letters?

 
 
 
 

3. Which of these collections defines a SET?

 
 
 
 

4. How do you insert COMMENTS in Python code?

 
 

5. What is the correct syntax to output the type of a variable or object in Python?

 
 
 
 

6. Which of these collections defines a TUPLE?

 
 
 
 

7. Which one is NOT a legal variable name?

 
 
 
 

8. How do you create a variable with the numeric value 5?

 
 
 

9. What is the correct syntax to output “Hello World” in Python3?

 
 
 
 

10. What is the correct way to create a function in Python?

 
 
 

11. Who developed Python?

 
 
 
 

12. Which method can be used to replace parts of a string?

 
 
 
 

13. Which of these collections defines a DICTIONARY?

 
 
 
 

14. Which of these collections defines a LIST?

 
 
 
 

15. How do you create a variable with the floating number 2.8?

 
 
 

Also see:

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

Your subscription could not be saved. Please try again.
Your subscription has been successful.

Newsletter

Subscribe to our newsletter and stay updated.

1 thought on “Basic Python Quiz for Beginners”

Leave a Comment

Copy link
Powered by Social Snap