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
View or download the dedicated Python Revision MCQ resource below. Practicing these 50 objective questions regularly builds familiarity with standard exam patterns and helps secure higher marks in final Computer Science evaluations.
Question. What is the maximum possible length of an identifier?
a) 31 characters
b) 63 characters
c) 79 characters
d) none of the mentioned
Answer : D
Question. Which of the following is an invalid variable?
a) my_string_1
b) 1st_string
c) foo
d) _
Answer : B
Question. What is the output of this expression, 3*1**3?
a) 27
b) 9
c) 3
d) 1
Answer : C
Question. Which of the following words cannot be a variable in python language?
a) _val
b) val
c) try
d) _try_
Answer : C
Question. In which data type, indexing is not valid?
a) List
b)String
c) Dictionary
d) None of the above
Answer : C
Question. If x=3.123, then int(x) will give ?
a) 1
b) 0
c) 1
d) 3
Answer : D
Question. Identify tuple from the following-
a) [3]
b) {1, 2, 3}
c) (1, 2, 3, 4)
d) None of the Above
Answer : C
Question. Which of the following is an escape sequence for a newline character ?
a) \a
b) \t
c) \n
d) \b
Answer : C
Question. Which of the following functions print the output to the console ?
a) Output( )
b) Print( )
c) Echo( )
d) print( )
Answer : D
Question. To convert the read value through input( ) into a floating point number, ……….( ) is used.
a) floating
b) float
c) int
d) integer
Answer : B
Question. Which symbol denotes the python prompt?
a) >>>
b) #
c) ”’
d) //
Answer : A
Question. Which of the following keywords is not reversed keyword in python?
a) None
b) class
c) goto
d) and
Answer : C
Question. Which values are used by the functions to communicate information back to the caller?
a) local
b) global
c) random
d) return
Answer : D
Question. Who developed the Python language?
a) Zim Den
b)Wick van Rossum
c) Guido van Rossum
d) Niene Stom
Answer : C
Question. Which is the correct operator for power(xy)?
a) X^y
b) X**y
c) X^^y
d) None of the mentioned
Answer : B
Question. A function in Python begins with which keyword?
a) void
b) return
c) def
d) int
Answer : C
Question. Which of the following option is not a core data type in the python language?
a) Dictionary
b) Lists
c) Class
d) All of the above
Answer : C
Question. Select the correct example of complex datatype in Python
a) 3 + 2j
b) -100j
c) 5j
d) All of the above are correct
Answer : D
Question. In order to store values in terms of key and value we use that core data type in python?
a) List
b) Class
c) Dictionary
d) Tuple
Answer : C
Question. Data items having fixed value are called ………. .
a) Identifiers
b) functions
c) Keywords
d) literals
Answer : D
Question. Escape sequences are treated as ………. .
a) strings
b) characters
c) integers
d) none of these
Answer : B
Question. Which of the following is/are expression(s) ?
a) a+b-5
b) a
c) -5
d) 0
Answer : A
Question. To convert the read value through input( ) into integer type, ……….( ) is used.
a) floating
b) float
c) int
d) integer
Answer : C
Question. Which of the following is a valid string literal?
a) “PythonMcq”
b) ‘PythonMcq’
c) ”’PythonMcq”’
d) All of these
Answer : C
Question. Functions that do not return any value are known as
a) fruitful functions
b) void functions
c) library functions
d) user-defined functions
Answer : B
Question. Which one of the following is the correct extension of the Python file?
a) .py
b) .python
c) .p
d) None of these
Answer : A
Question. What do we use to define a block of code in Python language?
a) Key
b) Brackets
c) Indentation
d) None of these
Answer : C
Question. Which of the following statements assigns the value 25 to the variable x in Python:
a) x ← 25
b) x = 25
c) x := 25
d) int x = 25
Answer : B
Question. Correct way to declare a variable x of float data type in python:
a) x = 2.5
b) float x = 2.5
c) float(2.5)
d) All of the above
Answer : A
Question. Names given to different parts of a Python program are ………. .
a) Identifiers
b) functions
c) Keywords
d) literals
Answer : A
Question. Which of the following value is not legal in an octal value ?
a) 7
b) 8
c) 11
d) 0
Answer : B
Question. The input( ) returns the value as ………. type.
a) integer
b) string
c) floating point
d) none of these
Answer : B
Question. Which line of code produces an error?
a) “PythonMcq” + “12”
b) ‘PythonMcq’ + 16
c) 3 + 7
d) ‘PythonMcq’ + “21”
Answer : B
Question. A variable created or defined within a function body is classified as-
a) local
b) global
c) instance
d) build-in
Answer : A
Question. Which of the following cannot be a variable?
a) __init__
b) in
c) it
d) on
Answer : B
Question. What is the answer to this expression, 22 % 3 is?
a) 7
b) 0
c) 1
d) 5
Answer : C
Question. Which one of the following is the correct way of declaring and initializing a variable, x with the value 7?
a) int x
x=7
b) int x=7
c) x=7
d) declare x=7
Answer : C
Question. How can we create an empty list in python?
a) list=()
b) null
c) list
d) list=[]
Answer : D
Question. Special meaning words of Pythons, fixed for specific functionality are called ………. .
a) Identifiers
b) functions
c) Keywords
d) literals
Answer : C
Question. Which of the following is an escape sequence for a tab character ?
a) \a
b) \t
c) \n
d) \b
Answer : B
Question. The lines beginning with a certain character, and which are ignored by a compiler and not executed, are called ……….
a) operators
b) operands
c) functions
d) comments
Answer : D
Question. The default separator character of print( ) is ……….
a) tab
b) space
c) newline
d) dot
Answer : B
Question. How many keywords present in the python programming language?
a) 32
b) 61
c) 33
d) 27
Answer : C
Question. Name the statement that sends back a value from a function.
a) print
b) return
c) input
d) none
Answer : B
Question. In which year was the Python language developed?
a) 1991
b) 1989
c) 1981
d) 1973
Answer : A
Question. Which character is used in Python to make a single line comment?
a) /
b) //
c) #
d) !
Answer : C
Question. l = [ 4, 8, 9, 2.6, 5 ] is a type of which data type in python?
a) List
b) Tuple
c) Set
d) None of these
Answer : A
Question. Which of the following are valid identifiers ?
a) my name
b) _myname
c) 2myname
d) my-name
Answer : B
Question. To print a line a text without ending it with a newline, ………. argument is used with print( )
a) sep
b) newline
c) end
d) next
Answer : C
Question. Which one of these is floor division?
a) /
b) //
c) %
d) None of the mentioned
Answer : B
Question. Which statement is true from following-
a) List is mutable & Tuple is immutable
b) List is immutable & Tuple is mutable
c) Both are Mutable.
d) Both are Immutable
Answer : A
Question. Select the reserved keyword in Python.
a) else
b) import
c) print
d) all of these
Answer : D
Question. Which of the following declarations is incorrect?
a) _x = 2
b) ____x = 3
c) __xyz__ = 5
d) None of these
Answer : D
Question. Which of the following is not a legal integer type value in Python ?
a) Decimal
b) Octal
c) Hexadecimal
d) Roman
Answer : D
Question. Python is____
a) High-Level
b) Interpreted
c) Object-Oriented
d) All Of The Above
Answer : D
Question. Python passes parameters by reference.
a) True
b) False
Answer : B
Question. More than one value(s) can be returned by a function in Python.
a) True
b) False
Answer : A
Question. Parameters specified within a pair of parentheses in the function definition are the actual parameters or non-formal parameters.
a) True
b) False
Answer : B
Question. Value returning functions should be generally called from inside of an expression.
a) True
b) False
Answer : A
Question. A function in Python is used by invoking it via a function call.
a) True
b) False
Answer : A
Question. The variable declared inside a function is called a global variable.
a) True
b) False
Answer : B
Question. A local variable having the same name as that of a global variable hides the global variable in its function.
a) True
b) False
Answer : A
Question. Once a function is defined, it may be called only once from many different places in a program.
a) True
b) False
Answer : B
Python Revision Objective Questions & Solutions for Class 11 Computer Science
Class 11 Computer Science Python Revision Objective Test Questions
Explore reliable practice questions for Python Revision tailored for Class 11 Computer Science learners. Use these multiple-choice formats to evaluate preparedness and strengthen problem-solving skills.
NCERT-Aligned Objective Questions and Solutions
Cross-reference your completed choices with comprehensive NCERT solutions for Class 11 Computer Science to ensure absolute clarity across all sub-topics in this chapter.
Next Steps in Your Exam Preparation
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
You can get most exhaustive CBSE Class 11 Computer Science Python Revision MCQs Set 01 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.
Yes, our CBSE Class 11 Computer Science Python Revision MCQs Set 01 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 01, 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 01 on StudiesToday.com as they provide instant answers and score to help you track your progress in Computer Science.