Practice CBSE Class 11 Computer Science Python Revision MCQs Set B 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 A |
| CBSE Class 11 Computer Science Animation Tool MCQs Set B |
| 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 A |
| 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 B |
| 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 A |
| CBSE Class 11 Computer Science Introduction To Multimedia MCQs Set B |
| CBSE Class 11 Computer Science List Manipulation MCQs Set A |
| CBSE Class 11 Computer Science List Manipulation MCQs Set B |
| CBSE Class 11 Computer Science List Manipulation MCQs Set C |
| CBSE Class 11 Computer Science Python Fundamentals MCQs |
| Python Variables and Data Types MCQs with Answers |
| 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 A |
| CBSE Class 11 Computer Science Vim Editor and Basic Scripting MCQs Set B |
| CBSE Class 11 Computer Science Working With Table MCQs |
Important Practice Resources for Class 11 Computer Science
MCQs for Python Revision Computer Science Class 11
Expert teachers of studiestoday have referred to NCERT book for Class 11 Computer Science to develop the Computer Science Class 11 MCQs. If you download MCQs with answers for the above chapter you will get higher and better marks in Class 11 test and exams in the current year as you will be able to have stronger understanding of all concepts. Daily Multiple Choice Questions practice of Computer Science will help students to have stronger understanding of all concepts and also make them expert on all critical topics. After solving the questions given in the MCQs which have been developed as per latest books also refer to the NCERT solutions for Class 11 Computer Science. We have also provided lot of MCQ questions for Class 11 Computer Science so that you can solve questions relating to all topics given in each chapter. After solving these you should also refer to Class 11 Computer Science MCQ Test for the same chapter.
You can download the CBSE MCQs for Class 11 Computer Science Python Revision for latest session from StudiesToday.com
Yes, the MCQs issued by CBSE for Class 11 Computer Science Python Revision have been made available here for latest academic session
You can find CBSE Class 11 Computer Science Python Revision MCQs on educational websites like studiestoday.com, online tutoring platforms, and in sample question papers provided on this website.
To prepare for Python Revision MCQs, refer to the concepts links provided by our teachers and download sample papers for free.
Yes, there are many online resources that we have provided on studiestoday.com available such as practice worksheets, question papers, and online tests for learning MCQs for Class 11 Computer Science Python Revision
