CBSE Class 11 Computer Science Question 96 of 173

Data Handling — Question 25

Back to all questions
25
Question

Question 25

Evaluate and Justify:

(i) 22 / 17 = 37 / 47 + 88 /83

(ii) len('375')**2

Answer

(i) It produces an error as LHS value in this case is an expression that evaluates to a literal whereas LHS value should be a variable.

(ii) len('375')**2
 ⇒ 3 ** 2    [∵ len('375') = 3]
 ⇒ 9           [∵ 3 * 3 = 9]

Answer