CBSE Class 11 Computer Science Python Revision MCQs Set D

Practice CBSE Class 11 Computer Science Python Revision MCQs Set D 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. In which year was the Python language developed?
(a) 1995
(b) 1972
(c) 1981
(d) 1989
Answer: D

Question. Who developed the Python language?
(a) Zim Den
(b) Guido van Rossum
(c) Niene Stom
(d) Wick van Rossum
Answer: B

Question. How many keywords are there in python 3.7?
(a) 32
(b) 33
(c) 31
(d) 30
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 is output for \( - \min(\text{"hello world"}) \)
(a) e
(b) a blank space character
(c) w
(d) hello world
Answer: B

Question. How to output the string “May the odds favor you” in Python?
(a) print(“May the odds favor you”)
(b) echo(“May the odds favor you”)
(c) System.out(“May the odds favor you”)
(d) printf(“May the odds favor you”)
Answer: A

Question. In which year was the Python 3.0 version developed?
(a) 2005
(b) 2000
(c) 2010
(d) 2008
Answer: D

Question. Which character is used in Python to make a single line comment?
(a) /
(b) //
(c) #
(d) ?
Answer: C

Question. Python is often described as a:
(a) Batteries excluded language
(b) Gear included language
(c) Batteries included language
(d) Gear excluded language
Answer: C

Question. What do we use to define a block of code in Python language?
(a) Indentation
(b) Key
(c) Brackets
(d) None of these
Answer: A

Question. Mathematical operations can be performed on a string in Python? State whether true or false:
(a) False
(b) True
Answer: A

Question. Which one of the following is not a python’s predefined data type?
(a) List
(b) Dictionary
(c) Tuple
(d) Class
Answer: D

Question. Which of the following has more precedence?
(a) +
(b) ()
(c) /
(d) –
Answer: B

Question. In which language is Python written?
(a) English
(b) PHP
(c) C
(d) All of the above
Answer: C

Question. Do we need to compile a program before execution in Python?
(a) No
(b) Yes
Answer: A

Question. How to convert the uppercase letters in the string to lowercase in Python?
(a) lowercase()
(b) capilaize()
(c) lower()
(d) toLower()
Answer: C

Question. How to capitalize only the first letter of a sentence in Python?
(a) uppercase() method
(b) capitalize() method
(c) upper() method
(d) None of the above
Answer: B

Question. How to convert the lowercase letters in the string to uppercase in Python?
(a) uppercase()
(b) toUpper()
(c) capitalize()
(d) upper()
Answer: D

Question. How to check whether all the characters in a string is printable?
(a) print() method
(b) printable() method
(c) isprintable() method
(d) echo() method
Answer: C

Question. How to swap case in Python i.e. lowercase to uppercase and vice versa?
(a) casefold() method
(b) case() method
(c) convert() method
(d) swapcase() method
Answer: D

Question. In the Python statement \( x = a + 5 - b \):
a and b are ________
a + 5 - b is ________

(a) terms, a group
(b) operators, a statement
(c) operands, an expression
(d) operands, an equation
Answer: C

Question. Which is the correct operator for power(\( xy \))?
(a) \( X \wedge y \)
(b) \( X ** y \)
(c) \( X \wedge\wedge y \)
(d) None of the mentioned
Answer: B

Question. What is the output of the following addition (+) operator
a = [10, 20]
b = a
b += [30, 40]
print(a)
print(b)

(a) [10, 20, 30, 40]
[10, 20, 30, 40]
(b) [10, 20]
[10, 20, 30, 40]
(c) [10, 20, 10, 20]
[10, 20, 30, 40]
(d) [10, 20]
[30, 40]
Answer: A

Question. Which function overloads the >> operator?
(a) more()
(b) gt()
(c) ge()
(d) None of the above
Answer: D

Question. What is the value of the expression \( 100 / 25 \)?
(a) 4
(b) 4.0
(c) 0
(d) 25
Answer: B

Question. Which one of these is floor division?
(a) //
(b) /
(c) %
(d) None of the above
Answer: A

Question. What is the output of the following assignment operator
a = 10
b = a -= 2
print(b)

(a) 8
(b) 10
(c) Syntax Error
(d) No error but no output too
Answer: C

Question. Which operator is overloaded by the or() function?
(a) ||
(b) |
(c) //
(d) /
Answer: B
Explanation: or() function overloads the bitwise OR operator “|”.

Question. Should you use the == operator to determine whether objects of type float are equal?
(a) Nope, not a good idea.
(b) Sure! Go for it.
Answer: A

Question. What is the order of precedence in python?
i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction

(a) ii,i,iii,iv,v,vi
(b) ii,i,iv,iii,v,vi
(c) i,ii,iii,iv,vi,v
(d) i,ii,iii,iv,v,vi
Answer: D

Question. What is the output of the following code
x = 6
y = 2
print(x ** y)
print(x // y)

(a) 66
0
(b) 36
0
(c) 66
3
(d) 36
3
Answer: D

Question. What is the output of the following program :
i = 0
while i < 3:
 print i
 i++
 print i+1

(a) 0 2 1 3 2 4
(b) 0 1 2 3 4 5
(c) Error
(d) 1 0 2 4 3 5
Answer: C

Question. Suppose the following statements are executed:
a = 100
b = 200
What is the value of the expression a and b?

(a) True
(b) 0
(c) False
(d) 200
(e) 100
Answer: D

Question. Operators with the same precedence are evaluated in which manner?
(a) Left to Right
(b) Right to Left
(c) Can’t say
(d) None of the mentioned
Answer: A

Question. Which of the following operators has the highest precedence?
(a) not
(b) &
(c) *
(d) +
Answer: C

Question. Given a function that does not return any value, what value is shown when executed at the shell?
(a) int
(b) bool
(c) void
(d) None
Answer: D

Question. The function sqrt() from the math module computes the square root of a number. Will the highlighted line of code raise an exception?
x = -100
from math import sqrt
x > 0 and sqrt(x)

(a) Yes
(b) No
(c) void
(d) None
Answer: B

Question. Which one of the following has the same precedence level?
(a) Addition and Subtraction
(b) Multiplication, Division and Addition
(c) Multiplication, Division, Addition and Subtraction
(d) Addition and Multiplication
Answer: A

Question. What is the output of the following code
print(bool(0), bool(3.14159), bool(-3), bool(1.0+1j))

(a) True True False True
(b) False True True True
(c) True True False True
(d) False True False True
Answer: B

Question. What is the output of the expression print(-18 // 4)
(a) -4
(b) -5
(c) 4
(d) 5
Answer: B

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.

Where can I download latest CBSE MCQs for Class 11 Computer Science Python Revision

You can download the CBSE MCQs for Class 11 Computer Science Python Revision for latest session from StudiesToday.com

Are the Class 11 Computer Science Python Revision MCQs available for the latest session

Yes, the MCQs issued by CBSE for Class 11 Computer Science Python Revision have been made available here for latest academic session

Where can I find CBSE Class 11 Computer Science Python Revision MCQs online?

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.

How can I prepare for Python Revision Class 11 MCQs?

To prepare for Python Revision MCQs, refer to the concepts links provided by our teachers and download sample papers for free.

Are there any online resources for CBSE Class 11 Computer Science Python Revision?

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