height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=945058072538609&ev=PageView&noscript=1"

Call Us Today! +91 99907 48956, +91 96503 08956 | info@analyticstraininghub.com

Python Assessment Quiz

Take this quick MCQ quiz and discover your Python skill level in just a few minutes!

Key Instructions – Python MCQ Quiz

Hello and welcome to the Python MCQ Quiz at Analytics Training Hub

Read these instructions carefully before starting:

You will be presented with 10 randomly chosen multiple-choice questions from various Python topics, including:

  • Python Basics & Syntax
  • Data Types and Variables
  • Control Flow (if, for, while)
  • Functions and Modules
  • Object-Oriented Programming
  • Libraries like NumPy, Pandas, and more

You need to achieve a minimum of 7 out of 10 to pass the quiz.
The questions are randomly chosen, so every attempt can contain varying sets of questions.
The quiz has a time limit, so make sure to answer each question in a reasonable amount of time.
When you are ready, click Start Quiz to start. Good luck!


Python MCQ Quiz at Analytics Training Hub.

1 / 69

What does the pass keyword do?

2 / 69

What will be the output of len(set([1, 2, 2, 3]))?

3 / 69

What is the output of print("2" + "2")?

4 / 69

How can you get the number of items in a list?

5 / 69

What is a correct syntax to create a set?

6 / 69

Which of the following is NOT a valid function name in Python?

7 / 69

How do you raise an exception manually in Python?

8 / 69

Which method is used to convert all characters of a string to uppercase?

9 / 69

Which method is used to remove all items from a list?

10 / 69

What is the correct way to read the entire content of a file?

11 / 69

What is the output of print("Python"[-1])?

12 / 69

Which of the following is NOT a Python data type?

13 / 69

What is the purpose of the finally block in exception handling?

14 / 69

What is the purpose of __init__() in Python classes?

15 / 69

What is the output of print(10 // 3)?

16 / 69

Which keyword is used to handle exceptions?

17 / 69

How do you create a dictionary in Python?

18 / 69

What is the purpose of the dir() function?

19 / 69

What is the correct syntax to check if a key exists in a dictionary?

20 / 69

What is the output of print(type(3.14))?

21 / 69

What does list(range(0, 10, 2)) return?

22 / 69

What will be the result of 5 > 3 and 2 < 1?

23 / 69

Which keyword is used to inherit a class in Python?

24 / 69

Which of the following is a Python tuple?

25 / 69

Which method is used to convert string to lowercase?

26 / 69

What does open('file.txt', 'r') do?

27 / 69

Which built-in function is used to find the maximum value in a list?

28 / 69

What is the output of: print(type([]))?

29 / 69

Which statement is used to exit a loop in Python?

30 / 69

Which built-in function can be used to sort a list?

31 / 69

What is the output of bool([])?

32 / 69

What is the result of len("Python")?

33 / 69

Which of the following is used to define a block of code in Python?

34 / 69

Which Python library is commonly used for Data Analysis?

35 / 69

Which of the following is used to define a class in Python?

36 / 69

Which keyword is used to skip the current iteration in a loop?

37 / 69

What will be the output of print(2 ** 3)?

38 / 69

What will print(bool("")) return?

39 / 69

What is the correct way to write a comment in Python?

40 / 69

Which keyword is used to define a class method?

41 / 69

What will be the output of print("Hello" * 2)?

42 / 69

Which of the following creates an empty set?

43 / 69

What does str() do in Python?

44 / 69

What will 3 != 3 return?

45 / 69

Which of these is used to define a function in Python?

46 / 69

Which of the following is the correct file extension for Python files?

47 / 69

What is the output of print(10 // 3)?

48 / 69

Which function is used to get input from the user?

49 / 69

What is the output of bool(0)?

50 / 69

Which of the following loop types does Python support?

51 / 69

Which of the following is a valid way to import a module?

52 / 69

Which keyword is used to create a generator in Python?

53 / 69

Which method can be used to write content to a file in Python?

54 / 69

Who developed Python?

55 / 69

What will be the output of print(type((10,)))?

56 / 69

Which symbol is used for comments in Python?

57 / 69

Which of the following functions returns the absolute value of a number?

58 / 69

What does the is operator do in Python?

59 / 69

Which of these is a mutable data type?

60 / 69

Which of the following is used to install Python packages?

61 / 69

What is the output of type({})?

62 / 69

What does the range(5) function return?

63 / 69

Which of the following is not a keyword in Python?

64 / 69

Which method adds an element to the end of a list?

65 / 69

What is the default return value of a function that doesn’t have a return statement?

66 / 69

Which of the following is used to define a lambda function?

67 / 69

Which method returns the index of the first occurrence of a value in a list?

68 / 69

What will list("ABC") return?

69 / 69

What will be the output of print(3 * 'Python ')?

Just a quick step—fill out the form before you begin the quiz!

Your score is

The average score is 62%

0%

Ath Logo

Learn Data Analytics, Power BI, Tableau, & Advance Excel with hands-on training & 100% job assistance.

Connect with us!

Contact Info

+91 99907 48956

Email

info@analyticstraininghub.com

Address

91 Springboard, B1/H3, NH-19, Block B, Mohan Cooperative Industrial Estate, New Delhi, Delhi - 110044

Professional Courses

Master's Programs

Microsoft Excel | VBA – Macros | My SQL / SQL Server | MS Power BI | Tableau | Python | Data Science Using Python | R Programming | Data Analytics – Basic | Data Analytics – Intermediate | Data Analytics – Advanced | Data Science Certification Program

Popular Searches

Data Analyst Training Course In Delhi  | Data Analyst Training Course In Noida | Data Analyst Training Course In Gurgaon | Data Analyst Training Course In Bangalore | Data Science Course in Delhi | Data Science Course In Noida | Data Science Course In Gurgaon | Data Science Course

© 2016-2026 | Analytics Training Hub ( A Unit Of Medhya Analytics Solutions Pvt. Ltd.) | All Rights Reserved

Data Analytics Batch Starting from 31st Jan'26. For More Details:- Call Us Today! @ +91 97118 17956 | 91 9650308956