Practice CBSE Class 11 Computer Science Python Revision MCQs Set 02 provided below. The MCQ Questions for Class 11 Python Revision Computer Science with answers and follow the latest CBSE/ NCERT and KVS patterns. Refer to more Chapter-wise MCQs for CBSE Class 11 Computer Science and also download more latest study material for all subjects
MCQ for Class 11 Computer Science Python Revision
Class 11 Computer Science students should review the 50 questions and answers to strengthen understanding of core concepts in Python Revision
Python Revision MCQ Questions Class 11 Computer Science with Answers
Question. Which keyword can be used in any place in Python code to tell interpreter “to do nothing” and move to next instruction
(a) skip
(b) continue
(c) next
(d) pass
Answer: (d)
Question. Are there tools available to help find bugs, or perform static analysis?
(a) Yes, PyErrs.
(b) Yes, PyChecker and Pylint.
(c) No, you must find the bugs on your own.
(d) Yes, PyStats.
Answer: (b)
Question. Python was created by ____________.
(a) James Gosling
(b) Steve Jobs
(c) Guido van Rossum
(d) Google
Answer: (c)
Question. What is used to define a block of code (body of loop, function etc.) in Python?
(a) Curly braces
(b) Parenthesis
(c) Indentation
(d) Quotation
Answer: (c)
Question. A Python paragraph comment uses the style ________.
(a) // comments //
(b) / comments /
(c) ''' comments '''
(d) /# comments #/
Answer: (c)
Question. What does the expression string1 + string2 do?
(a) Repeats string1 string2 times (string2 must be in numeric format).
(b) Concatenates string1 and string2.
(c) It's a syntax error.
(d) Adds string1 to string2 (both must be in numeric format).
Answer: (b)
Question. Python is compiled language. True or False?
(a) True
(b) False
Answer: (b)
Question. Which of these should you include in order to pass variables to a script?
(a) from sys import getarg
(b) from system import argv
(c) from sys import args
(d) from sys import argv
Answer: (d)
Question. Which of the following statements is true?
(a) Python is an interpreted language.
(b) Python is a high level programming language.
(c) Python is an object-oriented language.
(d) All of the above.
Answer: (d)
Question. In Python, 'Hello', is the same as "Hello"
(a) True
(b) False
Answer: (a)
Question. What is the correct file extension for Python files?
(a) .pyth
(b) .pt
(c) .pyt
(d) .py
Answer: (d)
Question. In Python, a syntax error is detected by the ________ at _________.
(a) compiler/at compile time
(b) interpreter/at runtime
(c) compiler/at runtime
(d) interpreter/at compile time
Answer: (b)
Question. Which of the following is correct?
(a) Comments are for programmers for better understanding of the program.
(b) Python Interpreter ignores comment.
(c) You can write multi-line comments in Python using triple quotes, either ''' or """.
(d) All the above
Answer: (d)
Question. Is it possible to link a Python program to code written in C?
(a) Yes; the C code can be in a form of a dynamically or a statically linked library.
(b) No, it is impossible.
(c) Yes, but the C code must be provided in a form of a dynamically linked library.
(d) Yes, but C code must be provided in a form of a statically linked library.
Answer: (a)
Question. Which of the following is correct?
(a) Python Interpreter ignores comment.
(b) Comments are for programmers for better understanding of the program.
(c) You can write multi-line comments in Python using triple quotes, either ''' or """.
(d) All of the above
Answer: (d)
Question. Is it possible to check for more than one error in one except line?
(a) Yes, if the exception types are enclosed in parentheses.
(b) No, it is not possible.
(c) Yes, if the exception types are enclosed in square brackets.
(d) Yes, if the exception types are enclosed in curly braces.
Answer: (a)
Question. Python syntax is case-sensitive.
(a) True
(b) False
Answer: (a)
Question. A ___________ error does not cause the program to abort, but produces incorrect results.
(a) syntax
(b) runtime
(c) logical
Answer: (c)
Question. ________ is interpreted.
(a) Python
(b) C++
(c) Ada
(d) Pascal
Answer: (a)
Question. Which of the following statements is true?
(a) Python 3 is a newer version, but it is backward compatible with Python 2.
(b) Python 3 is a newer version, but it is not backward compatible with Python 2.
(c) A Python 2 program can always run on a Python 3 interpreter.
(d) A Python 3 program can always run on a Python 2 interpreter.
Answer: (b)
Question. A Python line comment begins with ________.
(a) //
(b) /
(c) #
(d) $$
Answer: (c)
Question. What is a correct syntax to output "Hello World" in Python?
(a) print("Hello World")
(b) echo("Hello World");
(c) echo "Hello World"
(d) p("Hello World")
Answer: (a)
Question. ________ is an object-oriented programming language.
(a) Java
(b) C++
(c) Python
(d) All the above
Answer: (d)
Question. How do you insert comments in Python code?
(a) #This is a comment
(b) /This is a comment/
(c) //This is a comment
(d) //This is a comment#
Answer: (a)
Question. Which of the following is not a keyword?
(a) eval
(b) assert
(c) nonlocal
(d) pass
Answer: (a)
Question. What is the output of the following code?
xx = 25
if False:
xx = 75
def var_test():
if True:
xx = 35
print(var_test())
(a) 25
(b) 75
(c) 35
(d) None
Answer: (d)
Question. Which of the following is not a keyword?
(a) open
(b) lambda
(c) is
(d) except
Answer: (a)
Question. Select the correct output of the following code.
x = 15
x = "Python"
print(x)
(a) Python
(b) 15
(c) Blank
(d) Error
Answer: (a)
Question. All keywords available in Python are in
(a) Uppercase
(b) Lowercase
(c) Both uppercase and lowercase
(d) CamelCase
Answer: (c)
Question. Is Python case sensitive when dealing with identifiers?
(a) Yes
(b) None of the above
(c) No
(d) machine dependent
Answer: (a)
Question. Which of the following is not a variable?
(a) in
(b) on
(c) it
(d) __init__
Answer: (a)
Question. Which of the following are Python reserved words (keywords):
(a) default
(b) and
(c) goto
(d) class
Answer: (d)
Question. All keywords in Python are in _________
(a) Lower case
(b) Upper case
(c) None of the mentioned
(d) Capitalized
Answer: (c)
Question. From the execution of the statements n = 300, m = n how many objects and references will be created?
(a) Two objects, two references
(b) One object, two references
(c) Two objects, one reference
(d) One object, one reference
Answer: (b)
Question. What is the output of the following code?
var1 = 15
var2 = 25
var3 = "30"
print(var1 + var2 + var3)
(a) 70
(b) 63
(c) 152530
(d) TypeError: unsupported operand type(s) for +: 'int' and 'str'
Answer: (d)
Question. What Python built-in function returns the unique number assigned to an object:
(a) refnum()
(b) id()
(c) ref()
(d) identity()
Answer: (b)
Question. Which of the following is valid ?
(a) _var = 'python'
(b) __var = 'python'
(c) _name_ = 'python'
(d) All the above
Answer: (d)
Question. In Python, a variable may be assigned a value of one type, but later it can assigned a value of a different type:
(a) True
(b) False
Answer: (a)
Question. What is the maximum possible length of an identifier or an attribute ?
(a) 32
(b) 64
(c) 73
(d) Any length
Answer: (d)
Question. How to swap two variables in one line ?
(a) x = y
(b) x ^= y ^= x ^= y
(c) x, y = y, x
(d) (x ^= y), (y ^= x), (x ^= y)
Answer: (c)
Question. What is the maximum possible length of an identifier?
(a) 31 characters
(b) 63 characters
(c) 79 characters
(d) None of the above
Answer: (d)
Question. What is the output of the following code?
def var_test():
b = 63
return b
print(var_test())
(a) 0
(b) 63
(c) Error
(d) None
Answer: (b)
Question. Which of the following is an invalid statement?
(a) num = 1,000,000
(b) x y z = 1 2 3
(c) x,y,z = 1, 2, 3
(d) x_y_z = 1,000,000
Answer: (b)
Question. Which of the following cannot be a variable ?
(a) _name_
(b) def
(c) at
(d) on
Answer: (b)
Question. Which of the following cannot be a variable?
(a) __init__
(b) in
(c) it
(d) on
Answer: (b)
Question. Why are local variable names beginning with an underscore discouraged?
(a) they are used to indicate a private variables of a class
(b) they confuse the interpreter
(c) they are used to indicate global variables
(d) they slow down execution
Answer: (a)
Question. Which of the following is not a keyword?
(a) pass
(b) class
(c) max
(d) def
Answer: (c)
Question. Which of the following are valid Python variable names:
(a) ver1.3
(b) return
(c) home_address
(d) 4square
Answer: (c)
Question. What is the output of the following code?
xx = 50
def var_test():
xx = 100
return xx
print(var_test())
(a) 50
(b) 100
(c) Error
(d) None
Answer: (b)
Question. What is the output of the following code?
a = 75
def var_test():
return a
print(var_test())
(a) 75
(b) 0
(c) Error
(d) None
Answer: (a)
Question. What is the output of the following code?
def var_test():
xx = 99
return xx
var_test()
print(xx)
(a) 0
(b) 70
(c) Error
(d) None
Answer: (c)
Question. Which of the following is an invalid variable?
(a) odd_num_1
(b) 1_odd_num
(c) num
Answer: (b)
Question. What is the output of the following code?
var_test = "Jhons" * 3 * 2
print(var_test)
(a) JhonsJhonsJhonsJhons
(b) Jhons
(c) JhonsJhonsJhonsJhonsJhonsJhons
(d) Syntax Error
Answer: (c)
Question. In Python, a variable must be declared before it is assigned a value:
(a) True
(b) False
Answer: (b)
Question. What is the output of the following code?
xx = 15
def var_test():
xx = 25
var_test()
print(xx)
(a) 15
(b) 25
(c) Error
(d) None
Answer: (a)
| CBSE Class 11 Computer Science Advanced Scripting MCQs |
| CBSE Class 11 Computer Science Animation Tool MCQs Set 02 |
| CBSE Class 11 Computer Science Animation Tool MCQs Set 01 |
| CBSE Class 11 Computer Science Basic Ubuntu Linux Commands MCQs |
| CBSE Class 11 Computer Science Boolean Algebra MCQs |
| CBSE Class 9 Computer Science Computer Components MCQs Set 01 |
| CBSE Class 11 Computer Science Computer Hardware MCQs |
| CBSE Class 11 Computer Science Computer Organisation MCQs |
| CBSE Class 11 Computer Science Conditional Statement MCQs |
| CBSE Class 11 Computer Science Creating Animation Using Synfig MCQs |
| CBSE Class 11 Computer Science Current Trends and Technologies MCQs |
| CBSE Class 11 Computer Science Dictionary in Python MCQs |
| CBSE Class 11 Computer Science Forms and Reports MCQs |
| CBSE Class 11 Computer Science Fundamentals of Computer MCQs |
| CBSE Class 9 Computer Science Introduction to Computers MCQs Set 02 |
| CBSE Class 11 Computer Science Introduction To Database Management System MCQs |
| CBSE Class 11 Computer Science Introduction To Layers MCQs |
| CBSE Class 11 Computer Science Introduction To Multimedia MCQs Set 02 |
| CBSE Class 11 Computer Science Introduction To Multimedia MCQs Set 01 |
| CBSE Class 11 Computer Science List Manipulation MCQs Set 03 |
| CBSE Class 11 Computer Science List Manipulation MCQs Set 02 |
| CBSE Class 11 Computer Science List Manipulation MCQs Set 01 |
| CBSE Class 11 Computer Science Python Fundamentals MCQs |
| Python Variables and Data Types MCQs with Answers Set 01 |
| CBSE Class 11 Computer Science Random Function MCQs |
| CBSE Class 11 Computer Science Retrieve Data Using Queries MCQs |
| CBSE Class 11 Computer Science Society Law and Ethics MCQs |
| CBSE Class 11 Computer Science Software and Operating System MCQs |
| CBSE Class 11 Computer Science String and Function MCQs |
| CBSE Class 11 Computer Science Using Pictures In Synfig MCQs |
| CBSE Class 11 Computer Science Vim Editor and Basic Scripting MCQs Set 02 |
| CBSE Class 11 Computer Science Vim Editor and Basic Scripting MCQs Set 01 |
| CBSE Class 11 Computer Science Working With Table MCQs |
MCQs for Python Revision Computer Science Class 11
Students can use these MCQs for Python Revision to quickly test their knowledge of the chapter. These multiple-choice questions have been designed as per the latest syllabus for Class 11 Computer Science released by CBSE. Our expert teachers suggest that you should practice daily and solving these objective questions of Python Revision to understand the important concepts and better marks in your school tests.
Python Revision NCERT Based Objective Questions
Our expert teachers have designed these Computer Science MCQs based on the official NCERT book for Class 11. We have identified all questions from the most important topics that are always asked in exams. After solving these, please compare your choices with our provided answers. For better understanding of Python Revision, you should also refer to our NCERT solutions for Class 11 Computer Science created by our team.
Online Practice and Revision for Python Revision Computer Science
To prepare for your exams you should also take the Class 11 Computer Science MCQ Test for this chapter on our website. This will help you improve your speed and accuracy and its also free for you. Regular revision of these Computer Science topics will make you an expert in all important chapters of your course.
You can get most exhaustive CBSE Class 11 Computer Science Python Revision MCQs Set 02 for free on StudiesToday.com. These MCQs for Class 11 Computer Science are updated for the 2025-26 academic session as per CBSE examination standards.
Yes, our CBSE Class 11 Computer Science Python Revision MCQs Set 02 include the latest type of questions, such as Assertion-Reasoning and Case-based MCQs. 50% of the CBSE paper is now competency-based.
By solving our CBSE Class 11 Computer Science Python Revision MCQs Set 02, 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.
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.
Yes, you can also access online interactive tests for CBSE Class 11 Computer Science Python Revision MCQs Set 02 on StudiesToday.com as they provide instant answers and score to help you track your progress in Computer Science.