Expression evaluation question answer in Python
Que 1:Consider the following expression:
51 + 4 – 3 ** 3 // 19 – 3
Which of the following will be the correct output if the expression is evaluated?
a. 50
b. 51
c. 52
d. 53
Que 2. What will the following expression be evaluated in Python?
print(6 * 3 / 4 ** 2 // 5 – 8 )
(a) -10
(b) 8.0
(c) 10.0
(d) -8.0
Que 3. What will the following expression be evaluated in Python? [CBSE 2021]
2 * 3 + 4 ** 2 – 5 // 2
(a) 45
(b) 20
(c) 22
(d) 8
Que 4. What will the following expression be evaluated in Python? [CBSE 2021]
6 < 12 and not (20 > 15) or (10 > 5)
(a) True
(b) False
(c) and
(d) not
Que 5. What will the following expression be evaluated to in Python? [CBSE SQP 2022-23]
print(15.0 / 4 + (8 + 3.0))
(a) 14.75
(b) 14.0
(c) 15
(d) 15.5
Que 6. Evaluate the following expression and identify the correct answer. [CBSE SQP 2021-22]
16 – (4 + 2) * 5 + 2**3 * 4
(a) 54
(b) 46
(c) 18
(d) 32
Que 7. What will the following expression be evaluated in Python? [CBSE 2021]
10 > 5 and 7 > 12 or not 18 > 3
(a) True
(b) False
(c) or
(d) and
Que 8. Evaluate the following expression and identify the correct answer.
print ( round (100.0 / 4 + (3 + 2.55) , 1 ) )
(a) 30.0
(b) 30.55
(c) 30.6
(d) 31.0
Que 9. Choose one option from the following that will be the correct output after executing
the given python expression.
print(True or not True and False)
(a) True
(b) False
(c) or
(d) not
Que 10. What will be the output of the following python expression?
24/6%3 , 24//4//2 , 2**3**2
(a) (1.0, 12, 64)
(b) (1.0, 3, 512)
(c) (1, 12, 512)
(d) ERROR
Que 11. Choose one option from the following that will be the correct output after executing
the given python expression.
not 50 or 44 and 60 and ‘Python’
(a) True
(b) False
(c) 60
(d) Python
Que 12. What will the following expression be evaluated in Python?
print(25 // 4 + 3 ** 1 ** 2 * 2)
(a) 24
(b) 18
(c) 6
(d) 12
Que 13. What will the following expression be evaluated in Python?
not True and False or not True
(a) True
(b) False
(c) NONE
(d) NULL
Que 14. What will the following expression be evaluated in Python?
not False and False or True and True
(a) True
(b) False
(c) NONE
(d) NULL
Que 15. What will the following expression be evaluated in Python?
print(16 – ( 3 + 2 ) * 5 + 2 ** 3 * 4)
(a) 54
(b) 46
(c) 23
(d) 32