Operators, expressions and precedence PYQ part 2
PYQ PRACTICE SCOPE: Operators, expressions and precedence.
Concept ID: XI_U2_OPERATORS_EXPRESSIONS_PRECEDENCE.
Use only previous-year questions whose concept_ids include XI_U2_OPERATORS_EXPRESSIONS_PRECEDENCE.
Key things we'll cover
Operators, expressions and precedence
PYQ references used by all prompt types18 included0 excluded
Flagged questions are excluded from Study Notes, PPT, and Student Notes references until corrected in Paper Analyzer.
Included
ID 1474 · 2025 · 1 mark(s)
What will be the output of the following expression?
>> 10 - 3 * 2 + 1 * 8 % 2
(a) 0
(b) 14
(c) 4
(d) 8
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1478 · 2025 · 1 mark(s)
What is the result type of the expression:
12 / 3
(a) int
(b) float
(c) str
(d) bool
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1527 · 2025 · 1 mark(s)
Observe the given code and select the correct output.
t = (11, 22, 33) * 2
print(t)
(a) (11, 22, 33)
(b) (11, 22, 33, 11, 22, 33)
(c) [11, 22, 33, 11, 22, 33]
(d) Error
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1558 · 2025 · 1 mark(s)
What is the output of the expression 3 ** 2?
(a) 6
(b) 9
(c) 8
(d) 5
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1562 · 2025 · 1 mark(s)
Which of the following is a logical operator in Python?
a) +
b) and
c) %
d) //
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1564 · 2025 · 1 mark(s)
What is the output of the following code:
x = 5
print(x + "2")
(a) 7
(b) 52
(c) Error
(d) 10
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1087 · 2025 · 2 mark(s)
What will be the output of following statement:
(9>=8) and (not False) or (7<3)
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1088 · 2025 · 2 mark(s)
What will be the output of following statement:
2**3**2+10-2
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1168 · 2025 · 2 mark(s)
Write a program to input two numbers and swap them.
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1169 · 2025 · 2 mark(s)
Write a program to input a number and print its cube and also print original number.
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1273 · 2025 · 2 mark(s)
Evaluate the following expression:
(a) 4*2**5//10
(b) 10>2 and 20>200 or not 200<201
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1404 · 2025 · 2 mark(s)
(a) Write a Python program to accept a number and display whether the number is palindrome or not.
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1491 · 2025 · 2 mark(s)
(a) What is the purpose of the pass statement in Python?
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1492 · 2025 · 2 mark(s)
(b) What is the use of is operator in Python?
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1574 · 2025 · 2 mark(s)
Write a Python program to input two numbers and display their sum.
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1409 · 2025 · 3 mark(s)
(b) What is the difference between (9) and (9,)?
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1578 · 2025 · 3 mark(s)
Define operators in python. Explain relational and logical operators with example.
Python Basics and Data Concepts → Operators, expressions and precedence
Included
ID 1503 · 2025 · 4 mark(s)
What is the difference between an expression and a statement in Python?
Python Basics and Data Concepts → Operators, expressions and precedence