Practice CBSE Class 11 Computer Science Python Revision MCQs Set C 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. 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)
| 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
