Python MCQs

Comprehensive Python MCQs covering data structures, functions, decorators, generators, and OOP concepts.

29 MCQs2 subtopicsProgrammingAll Levels
Key Concept Overview & Exam Context

Review core principles of Python before answering questions. These questions simulate placement technical assessments (TCS, Infosys, Amazon), university exams (CS/IT), and technical certifications.

Target Readiness
Placements & Job Interviews
Question Format
Multiple-Choice with Explanations
Verified Solutions
Step-by-step Output Traces

Browse by Subtopic

Python MCQ Questions

Page 2 of 2 (29 total)
Q1

What is the output of bool(0) in Python?

easy
Correct Answer: False
Explanation:
In Python, several values are considered falsy by default, including 0, empty strings, empty lists, and None, meaning bool() converts them to False, while any nonzero number is considered truthy.
Q2

Which of the following data types in Python is IMMUTABLE?

easy
Q3

Which of the following built-in data types in Python is immutable?

easy
Q4

What is the result of list(set([1, 2, 2, 3, 4, 4])) in Python?

easy
Q5

What is the syntax used in Python to accept an arbitrary number of keyword arguments?

easy
Q6

What is the output of the expression: type(lambda x: x * 2)?

medium
Q7

What is the output of bool([]) in Python?

easy
Q8

Which built-in Python keyword is used inside a function to produce a generator value lazily?

easy
Q9

What is the output of print([1, 2, 3] * 2) in Python?

easy
Showing 21 to 29 of 29 questions