Test Index

CBSE Class 12 Computer Science 2025 Paper Compartment Get it on Google PlayDownload on the App Store

© examsnet.com
Question : 11 of 37
Marks: +1, -0
State whether the following statement is True or False.
In Python, the print() evaluates the expression before displaying it on the screen.
Solution:  
Explanation:
Python first evaluates every expression given to print() and then displays the resulting value.
>>> print(2 + 3 * 4)
14
The expression 2 + 3 * 4 is worked out to 14 first; the value, not the expression, is shown. The statement is true.
Answer:
Option A (True)
© examsnet.com
Advertisements
Go to Question: