Multiple Choice Question

Quiz Guidelines

 

QID: 
340
Question: 

Which of the following statements are true?

Select 3 options 

A. The condition expression in an if statement can contain method calls. 
B. If a and b are of type boolean, the expression (a = b) can be used as the condition expression of an if statement. 
C. An if statement can have either an 'if' clause or an 'else' clause. 
D. The statement : if (false) ; else ; is illegal. 
E. Only expressions which evaluate to a boolean value can be used as the condition in an if statement. 

Q&A Set: