Solved

What Is the Correct Syntax of an Assert Statement

Question 21

Multiple Choice

What is the correct syntax of an assert statement?


A) assert AssertionError : optionalErrorMessage
B) assert booleanExpression : optionalErrorMessage
C) assert stringExpression : optionalErrorMessage
D) assert booleanExpression = optionalErrorMessage

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions