CBSE Class 11 Computer Science Python Revision MCQs Set 03

Computer Science Objective Questions and Answers: Python Revision

Explore reliable objective questions for Python Revision tailored for Class 11 learners. Utilizing these Computer Science multiple-choice formats ensures thorough preparation and strengthens problem-solving speed for upcoming school assessments.

Download Python Revision MCQs with Answers

Access the complete set of multiple-choice questions for Python Revision below. This focused format allows students to isolate specific topics for thorough review and uninterrupted practice alongside official CBSE textbooks.

Question. Is Python case sensitive while dealing with identifiers?
(a) Yes
(b) No
(c) OS dependent
(d) None of the above
Answer: (a)

Question. What is the output of the following code?
xx = 15
if True:
    xx = 25
print(xx)
(a) 25
(b) 15
(c) Error
(d) None
Answer: (a)

Question. Output of print(f"Python {3 + .2}")
(a) 3.2
(b) 3+.2
(c) Shows error
(d) Python 3.2
Answer: (d)

Question. Which of the following is an invalid variable?
(a) _var_
(b) 1var
(c) _var_1
(d) All the above
Answer: (b)

Question. Which of the following is an invalid statement?
(a) a_b_c = 100
(b) abc = 100, 'python'
(c) a b c = 1 00
(d) a, b, c = 1, 0, 0
Answer: (c)

Question. Which of the following statements assigns the value 100 to the variable x in Python:
(a) let x = 100
(b) x := 100
(c) x ← 100
(d) x = 100
(e) x << 100
Answer: (d)

Question. In Python if a variable is assigned a value anywhere within the function’s body, it’s assumed to be a local unless explicitly declared as global.
(a) True
(b) False
Answer: (a)

Question. Which of the following is true for variable names in Python?
(a) all private members must have leading and trailing underscores
(b) underscore and ampersand are the only two special characters allowed
(c) unlimited length
(d) none of the mentioned
Answer: (c)

Question. Which of the following is not a complex number?
(a) a = 2 + 3j
(b) a = complex(2, 3)
(c) a = 2 + 3l
(d) a = 2 + 3J
Answer: (c)

Question. Boolean type is a subtype of Integer data type in Python
(a) True
(b) False
Answer: (a)

Question. What is the result of round(0.5) - round(-0.5)
(a) 1.0
(b) 2.0
(c) 0.0
(d) None of the mentioned
Answer: (c)

Question. Given a function that does not return any value, What value is thrown by default when executed in shell.
(a) int
(b) bool
(c) void
(d) None
Answer: (d)

Question. Select all immutable basic data types:
(a) Dictionary
(b) String
(c) Integer
(d) Set
(e) Float
(f) List
(g) Tuple
Answer: (b), (c), (e), (g)

Question. What gets printed?
p = "abb "
q = 2
print(p + q)
(a) abb
(b) abb abb
(c) abb 2
(d) 2
(e) Error
Answer: (e)

Question. What gets printed
axa = {}
print(type(axa))
(a) <class 'set'>
(b) <class 'dict'>
(c) <class 'list'>
(d) <class 'tuple'>
(e) <class 'object'>
Answer: (b)

Question. In order to store values in terms of key and value which core data type is used.
(a) list
(b) tuple
(c) class
(d) dictionary
Answer: (d)

Question. What will be the output of the following Python code snippet?
def example(x):
x = x + '2'
x = x*2
return x
>>>example("hello")
(a) indentation Error
(b) cannot perform mathematical operation on strings
(c) hello2
(d) hello2hello2
Answer: (a)

Question. If x and y are strings, which of the following is equivalent to [x] + [y] ?
(a) [x].extend([y])
(b) [x,y]
(c) [x + y]
(d) [x].append(y)
Answer: (b)

Question. What gets printed?
def x(): pass
print(type(x()))
(a) <class 'function'>
(b) <class 'tuple'>
(c) <class 'NoneType'>
(d) <class 'str'>
(e) <class 'type'>
Answer: (c)

Question. Which of the following is incorrect?
(a) a = 0b101
(b) a = 0x4f5
(c) a = 19023
(d) a = 03964
Answer: (d)

Question. In order to execute an operation over arguments of different data types, convert all of them to the same type beforehand.
(a) True
(b) False
Answer: (b)

Question. What gets printed?
axx = (5, 6, 7)
print(type(axx))
(a) <class 'int'>
(b) <class 'list'>
(c) <class 'tuple'>
(d) <class 'dict'>
(e) <class 'set'>
Answer: (c)

Question. What should the below code print?
print(type(2J))
(a) <class 'complex'>
(b) <class 'unicode'>
(c) <class 'int'>
(d) <class 'float'>
(e) <class 'dict'>
Answer: (a)

Question. Select all valid basic data types in Python 3
(a) Double
(b) String
(c) Integer
(d) Boolean
(e) Float
(f) Decimal
(g) Union
(h) Complex number
Answer: (b), (c), (e), (h)

Question. Select all numeric data types in Python
(a) String
(b) Integer
(c) Double
(d) Float
(e) Complex number
Answer: (b), (d), (e)

Question. What error occurs when you execute the following Python code snippet?
dog = cat
(a) SyntaxError
(b) NameError
(c) ValueError
(d) TypeError
Answer: (b)

Question. What is the return value of trunc()?
(a) int
(b) bool
(c) float
(d) None
Answer: (a)

Question. What gets printed?
print(type(2/3))
(a) <class 'int'>
(b) <class 'number'>
(c) <class 'float'>
(d) <class 'double'>
(e) <class 'tuple'>
Answer: (c)

Question. What is the output of print 0.2 + 0.3 == 0.5?
(a) True
(b) False
(c) Error
Answer: (a)

Question. Which of the following is incorrect?
(a) float('inf')
(b) float('nan')
(c) float('56'+'78')
(d) float('12+34')
Answer: (d)

Question. Complex numbers in Python have real and imaginary parts. In Python they are represented as:
(a) One Integer and one floating point number
(b) Each is floating point number
(c) Each is Integer
(d) Both are strings
Answer: (c)

Question. List in Python can hold elements of same type only. True or False?
(a) True
(b) False
Answer: (b)

Question. Strings in Python should be en-quoted in double quotation marks (“). True or False?
(a) True
(b) False
Answer: (b)

Question. What data type is the object below?
P = [2, 22, 'python', 2]
(a) list
(b) dictionary
(c) array
(d) tuple
Answer: (a)

Question. What is the output of the following code?
print(type(lambda:None))
(a) <class 'NoneType'>
(b) <class 'tuple'>
(c) <class 'type'>
(d) <class 'function'>
(e) <class 'bool'>
Answer: (d)

Question. Which of the following data types can be used as keys in dictionaries in Python? Select all that apply
(a) List
(b) Set
(c) Integer
(d) String
(e) Dictionary
(f) Any type of value
Answer: (f)

Question. What does \( \sim\sim\sim\sim\sim\sim6 \) evaluate to?
(a) 6
(b) -5
(c) -11
(d) 11
Answer: (a)

Question. Which of the following results in a SyntaxError?
(a) ‘”Once upon a time…”, she said.’
(b) “He said, ‘Yes!'”
(c) ‘3\’
(d) ”’That’s okay”’
Answer: (c)

Question. In Python types are directly interpreted by the compiler, so check the following operation to be performed.
a = 15 ? 3
Objective is to make sure a has a integer value, select all that apply (Python 3.xx)
(a) a = 15 // 3
(b) a = int(15 / 3)
(c) a = 15 % 3
(d) All of the mentioned
Answer: (d)

Question. Only immutable data types can be used as keys for dictionaries in Python. True or False?
(a) True
(b) False
Answer: (a)

Question. What does \( 3 \wedge 8 \) evaluate to?
(a) 81
(b) 24
(c) 11
(d) 5
Answer: (c)

Question. What is the type of inf?
(a) Boolean
(b) Integer
(c) Float
(d) Complex
Answer: (c)

Question. Which of the following can be used as a dictionary key?
(a) list
(b) set
(c) dictionary
(d) tuple
(e) None of the above
Answer: (d)

Question. Which of the following will run without errors?
(a) round(45.8)
(b) round(6352.898,2,5)
(c) round()
(d) round(7463.123,2,1)
Answer: (a)

Question. What is the return type of function id?
(a) int
(b) float
(c) bool
(d) dict
Answer: (a)

Question. What does \( \sim5 \) evaluate to?
(a) -5
(b) -7
(c) -6
(d) 5
Answer: (c)

Question. Which of these in not a core data type?
(a) Lists
(b) Dictionary
(c) Tuples
(d) Class
Answer: (d)

Question. What is the output of the following code?
print(type([2,3]))
(a) <class 'tuple'>
(b) <class 'int'>
(c) <class 'set'>
(d) <class 'complex'>
(e) <class 'list'>
Answer: (e)

Python Revision Objective Questions & Solutions for Class 11 Computer Science

Chapter MCQs with Answers for Class 11 Computer Science

Review structured objective questions for Class 11 Computer Science Python Revision. Built according to official CBSE guidelines, these MCQ sets support daily revision and core concept reinforcement.

Expert Practice Material for Class 11 Computer Science

Each question includes structured solution keys mapped directly to standard CBSE textbooks, helping students evaluate their reasoning and correct mistakes early in their revision.

Complete Your Chapter Revision

Follow up your worksheet practice by attempting the interactive online Computer Science MCQ test for this chapter to evaluate your execution speed. All platform resources are free to access.

FAQs

Where can I access latest CBSE Class 11 Computer Science Python Revision MCQs Set 03?

You can get most exhaustive CBSE Class 11 Computer Science Python Revision MCQs Set 03 for free on StudiesToday.com. These MCQs for Class 11 Computer Science are updated for the 2026-27 academic session as per CBSE examination standards.

Are Assertion-Reasoning and Case-Study MCQs included in the Computer Science Class 11 material?

Yes, our CBSE Class 11 Computer Science Python Revision MCQs Set 03 include the latest type of questions, such as Assertion-Reasoning and Case-based MCQs. 50% of the CBSE paper is now competency-based.

How do practicing Computer Science MCQs help in scoring full marks in Class 11 exams?

By solving our CBSE Class 11 Computer Science Python Revision MCQs Set 03, Class 11 students can improve their accuracy and speed which is important as objective questions provide a chance to secure 100% marks in the Computer Science.

Do you provide answers and explanations for CBSE Class 11 Computer Science Python Revision MCQs Set 03?

Yes, Computer Science MCQs for Class 11 have answer key and brief explanations to help students understand logic behind the correct option as its important for 2026 competency-focused CBSE exams.

Can I practice these Computer Science Class 11 MCQs online?

Yes, you can also access online interactive tests for CBSE Class 11 Computer Science Python Revision MCQs Set 03 on StudiesToday.com as they provide instant answers and score to help you track your progress in Computer Science.