The assert statement displays a message when the condition is FALSE.

Khánh Đoan

New member
The assert statement displays a message when the condition is FALSE.
A. True
B. False
 
Answer: a
Explanation: The assert statement does nothing if the condition specified is true. If it is false, only then the message which is specified by the user is displayed on the screen. It is basically used for the status check of the program whether it is running correctly or not.
 

Tìm kiếm

Back
Top