What is the correct syntax for using ASSERT statement?

What is the correct syntax for using ASSERT statement?
A. ASSERT condition [REPORT string] [SEVERITY name];
B. Condition [REPORT string] [SEVERITY name] ASSERT;
C. Condition [SEVERITY name] [REPORT string] ASSERT;
D. ASSERT condition [SEVERITY name] [REPORT string];
 
Answer: a
Explanation: The ASSERT statement is declared by using a Boolean condition before which a keyword ASSERT is used. After the condition, a keyword called REPORT is used and the string is specified which the user wants to display. The string to be displayed is followed by the severity of the error and its name.
 

Tìm kiếm

Back
Top