πŸ”₯ LIVE πŸ‘©β€πŸ« Teachers: Host Live Tests  |  πŸŽ“ Students: Practice Class-wise Quizzes Go to Quiz Portal βž”

Computational Thinking and Programming-I Quiz 4

βž• Computational Thinking & Programming-I Quiz 4 β€” Python Operators (Class 11 CS)

Practice 20 CBSE Class 11 Computer Science (Code 083) MCQs on Python operators β€” arithmetic, relational, logical, assignment, augmented assignment, identity (is, is not), and membership (in, not in) operators.

Every expression below has been verified by actually running it in Python. Tap any question to reveal the answer with a clear explanation.

βž• Arithmeticβš–οΈ RelationalπŸ”— LogicalπŸ“₯ AssignmentπŸͺͺ IdentityπŸ”Ž Membership
Q1
βž• Arithmetic

Which of the following is an arithmetic operator in Python?

  1. and
  2. not
  3. +
  4. is
Show Answer & Explanation

βœ… Answer: (c) +

+ is an arithmetic operator, used for addition (and string/list concatenation). and, not, and is are logical/identity operators, not arithmetic ones.

Q2
βž• Arithmetic

What is the result of the expression 10 / 3 in Python?

  1. 3
  2. 3.333
  3. 3.0
  4. 4
Show Answer & Explanation

βœ… Answer: (b) 3.333

The / operator always performs true (floating-point) division in Python 3, so 10 / 3 gives 3.333… β€” not a whole number, even though both operands are integers.

Q3
βž• Arithmetic

Which operator is used for exponentiation in Python?

  1. **
  2. %
  3. /
  4. +
Show Answer & Explanation

βœ… Answer: (a) **

** is Python’s exponentiation operator β€” for example, 2 ** 3 gives 8 (2 raised to the power 3).

Q4
βž• Arithmetic

What is the result of the expression 8 // 3 in Python?

  1. 2
  2. 2.666
  3. 3
  4. 8
Show Answer & Explanation

βœ… Answer: (a) 2

// is the floor division operator β€” it divides and then rounds down to the nearest whole number, discarding the remainder. 8 Γ· 3 = 2.666…, floored to 2.

Q5
βš–οΈ Relational

Which of the following is a relational operator in Python?

  1. %
  2. and
  3. <
  4. or
Show Answer & Explanation

βœ… Answer: (c) <

< (less than) is a relational (comparison) operator, used to compare two values. % is arithmetic, while and/or are logical operators.

Q6
βš–οΈ Relational

What is the result of the expression 5 > 3 in Python?

  1. True
  2. False
  3. None
  4. Error
Show Answer & Explanation

βœ… Answer: (a) True

5 is indeed greater than 3, so this comparison evaluates to the boolean True.

Q7
βš–οΈ Relational

Which operator is used for checking if two values are equal in Python?

  1. !=
  2. >
  3. ==
  4. <
Show Answer & Explanation

βœ… Answer: (c) ==

== (double equals) checks equality between two values. A single = is only for assignment, and != checks the opposite β€” inequality.

Q8
πŸ”— Logical

Which operator is used to combine multiple conditions in Python?

  1. or
  2. and
  3. not
  4. is
Show Answer & Explanation

βœ… Answer: (b) and

Both and and or combine multiple conditions, but and is the operator that specifically requires all combined conditions to be true (whereas or only needs one). Given the single-answer format, and is the standard textbook example for this concept.

Q9
πŸ”— Logical

What is the result of the expression True and False in Python?

  1. True
  2. False
  3. None
  4. Error
Show Answer & Explanation

βœ… Answer: (b) False

and only returns True when both sides are true. Since one side is False here, the result is False.

Q10
πŸ“₯ Assignment

Which operator is used for assigning a value to a variable in Python?

  1. =
  2. ==
  3. +=
  4. *
Show Answer & Explanation

βœ… Answer: (a) =

A single = is the assignment operator, storing a value into a variable. == checks equality, and += is an augmented (combined) assignment operator.

Q11
πŸ“₯ Assignment

What is the result of the expression x += 3 if x is initially 5 in Python?

  1. 8
  2. 3
  3. 15
  4. Error
Show Answer & Explanation

βœ… Answer: (a) 8

x += 3 is shorthand for x = x + 3. Starting from 5, this gives 5 + 3 = 8.

Q12
πŸͺͺ Identity

Which operator is used to check if two objects are the same in Python?

  1. is
  2. ==
  3. !=
  4. or
Show Answer & Explanation

βœ… Answer: (a) is

is is the identity operator β€” it checks whether two variables point to the exact same object in memory, not just whether their values are equal (that’s what == checks).

Q13
πŸ”Ž Membership

What is the result of the expression 2 in [1, 2, 3] in Python?

  1. True
  2. False
  3. None
  4. Error
Show Answer & Explanation

βœ… Answer: (a) True

in checks membership β€” since 2 is present in the list [1, 2, 3], the expression evaluates to True.

Q14
πŸ”Ž Membership

Which operator is used to check if an element is not present in a collection in Python?

  1. not in
  2. in
  3. !=
  4. ==
Show Answer & Explanation

βœ… Answer: (a) not in

not in is the membership operator that checks for absence β€” it returns True if the value is not found in the collection.

Q15
πŸͺͺ Identity

What is the result of the expression 3 is not 4 in Python?

  1. True
  2. False
  3. None
  4. Error
Show Answer & Explanation

βœ… Answer: (a) True

is not checks that two objects are different. Since 3 and 4 are clearly not the same object, this evaluates to True.

Q16
βž• Arithmetic

What is the result of the expression 17 % 5 in Python?

  1. 3
  2. 2
  3. 5
  4. 3.4
Show Answer & Explanation

βœ… Answer: (b) 2

% is the modulus operator β€” it returns the remainder after division. 17 Γ· 5 = 3 remainder 2.

Q17
πŸ”— Logical

What is the result of the expression True or False in Python?

  1. True
  2. False
  3. None
  4. Error
Show Answer & Explanation

βœ… Answer: (a) True

or returns True if at least one side is true. Since one side here is True, the whole expression is True.

Q18
πŸ”— Logical

What is the result of the expression not True in Python?

  1. True
  2. False
  3. None
  4. Error
Show Answer & Explanation

βœ… Answer: (b) False

not flips a boolean value β€” not True gives False.

Q19
πŸ“₯ Assignment

What is the result of the expression x *= 2 if x is initially 6 in Python?

  1. 8
  2. 2
  3. 12
  4. 36
Show Answer & Explanation

βœ… Answer: (c) 12

x *= 2 is shorthand for x = x * 2. Starting from 6, this gives 6 Γ— 2 = 12.

Q20
πŸͺͺ Identity

If a = [1, 2] and b = [1, 2] (two separately created lists with the same values), what does a == b return, and what does a is b return?

  1. True and True
  2. False and False
  3. True and False
  4. False and True
Show Answer & Explanation

βœ… Answer: (c) True and False

a == b checks whether the values are equal β€” both lists contain [1, 2], so this is True. But a is b checks whether they’re the same object in memory β€” since they were created separately, this is False. This is a classic distinction tested in CBSE exams between equality and identity.

Jitendra Singh
βœ” Verified Educator

Jitendra Singh

Founder of CBSEPython.in

I help CBSE Class 9–12 students learn Python, Information Technology, Artificial Intelligence and Computer Science through easy notes, quizzes, MCQs and sample papers.

Read More About Me β†’