CBSE Class 11 Computer Science
Question 73 of 106
Python Fundamentals — Question 2
Back to all questions 2
Question Question 2
How will Python evaluate the following expression ?
(i) 20 + 30 * 40
20 + 30 * 40
⇒ 20 + 1200
⇒ 1220
(ii) 20 - 30 + 40
20 - 30 + 40
⇒ -10 + 40
⇒ 30
(iii) (20 + 30) * 40
(20 + 30) * 40
⇒ 50 * 40
⇒ 2000
(iv) 15.0 / 4 + (8 + 3.0)
15.0 / 4 + (8 + 3.0)
⇒ 15.0 / 4 + 11.0
⇒ 3.75 + 11.0
⇒ 14.75