Test Index
CBSE Class 12 Computer Science 2025 Paper Compartment
© examsnet.com
Question : 3 of 37
Marks:
+1,
-0
What is the value of the following expression ?
3 + 3.00, 3**3.0
Solution:
Concept:Values separated by commas, without brackets, form a tuple. In arithmetic, if one operand is a
float, the result is a float.Explanation:First item: 3 + 3.00 = 6.0 (int + float gives float).Second item: 3**3.0 = = 27.0 (** is the power operator; the float exponent makes it a float).So the expression is the tuple(6.0, 27.0)Key point:
** is exponent, not multiplication, so 9.0 is wrong; the comma makes a tuple ( ), not a list [ ]; and the results are floats, not 6 and 27.Answer:Option D ((6.0, 27.0))© examsnet.com
Go to Question: