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. Which method can be used to return a string in upper case letters?

 
 
 
 

2. Which of these collections defines a DICTIONARY?

 
 
 
 

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

 
 
 
 

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

 
 
 

5. Which of these collections defines a TUPLE?

 
 
 
 

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

 
 
 

7. Who developed Python?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

10. Which of these collections defines a SET?

 
 
 
 

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

 
 
 

12. How do you insert COMMENTS in Python code?

 
 

13. Which one is NOT a legal variable name?

 
 
 
 

14. Which of these collections defines a LIST?

 
 
 
 

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

 
 
 
 

Also see:

1 thought on “Basic Python Quiz for Beginners”

Leave a Comment

Copy link
Powered by Social Snap