Test Index
CBSE Class 12 Computer Science 2026 Paper Compartment
© examsnet.com
Question : 2 of 37
Marks:
+1,
-0
What will be the output of the following statement ?
print(18/3 == 18//3)
Solution:
Concept:
/ is true division (always gives a float); // is floor division (gives an int for int operands). == compares values, so 6.0 == 6 is True.Explanation:18/3 = 6.018//3 = 66.0 == 6 → TrueA comparison gives a Boolean value, so the output is True, not 1.Output:TrueAnswer:Option D (
True)© examsnet.com
Go to Question: