CBSE Class 11 Computer Science
Question 129 of 173
Data Handling — Question 18
Back to all questions 18
Question Question 14
Which of the following expressions will result in an error message being displayed when a program containing it is run?
(a) 2.0/4
(b) "3" + "Hello"
(c) 4 % 15
(d) int("5")/float("3")
(e) float("6"/"2")
Answer
(a) No Error
(b) No Error
(c) No Error
(d) No Error
(e) This will cause an error of unsupported operand types as using division operator on string types is not allowed in Python.