W3Schools Python Programming Fundamentals Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 8865 | Total Attempts: 106,055
| Questions: 20 | Updated: Aug 15, 2026
Please wait...
Question 1 / 21
🏆 Rank #--
0 %
0/100
Score 0/100

1. True or False: In Python, strings are immutable.

Submit
Please wait...
About This Quiz
W3Schools Python Programming Fundamentals Quiz - Quiz

This quiz assesses your understanding of Python programming fundamentals, including variables, data types, control flow, functions, and object-oriented programming concepts. Designed for college-level learners, it evaluates your ability to write and understand Python code, work with built-in methods, and apply core programming principles. Perfect for students preparing for W3Schools Python... see morecertification or strengthening their programming foundation. see less

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. In Python, ____ is used to import modules or functions.

Submit

3. The append() method adds an element to the ____ of a list.

Submit

4. Which keyword is used to create a conditional statement?

Submit

5. True or False: Lists in Python are indexed starting from 1.

Submit

6. What does the split() method do?

Submit

7. Which method converts a string to uppercase?

Submit

8. True or False: Python uses indentation to define code blocks.

Submit

9. What is the correct way to create a class in Python?

Submit

10. Which built-in function returns the type of an object?

Submit

11. What is the correct way to create a variable in Python?

Submit

12. What keyword is used to handle exceptions in Python?

Submit

13. Which method removes the last item from a list?

Submit

14. In Python, what is the correct syntax for a dictionary?

Submit

15. What does the range(5) function generate?

Submit

16. Which loop structure is used to iterate over a sequence in Python?

Submit

17. What is the output of 10 // 3 in Python?

Submit

18. Which keyword is used to create a function in Python?

Submit

19. What does the len() function return for the string 'Python'?

Submit

20. Which of the following is a mutable data type in Python?

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
True or False: In Python, strings are immutable.
In Python, ____ is used to import modules or functions.
The append() method adds an element to the ____ of a list.
Which keyword is used to create a conditional statement?
True or False: Lists in Python are indexed starting from 1.
What does the split() method do?
Which method converts a string to uppercase?
True or False: Python uses indentation to define code blocks.
What is the correct way to create a class in Python?
Which built-in function returns the type of an object?
What is the correct way to create a variable in Python?
What keyword is used to handle exceptions in Python?
Which method removes the last item from a list?
In Python, what is the correct syntax for a dictionary?
What does the range(5) function generate?
Which loop structure is used to iterate over a sequence in Python?
What is the output of 10 // 3 in Python?
Which keyword is used to create a function in Python?
What does the len() function return for the string 'Python'?
Which of the following is a mutable data type in Python?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!