What is the problem with IF statement?

Nguyễn Pháp

New member
What is the problem with IF statement?
A. Overlapping of conditions
B. No default value
C. The condition can be Boolean only
D. Restriction on number of ELSE statement
 
Answer: a
Explanation: The IF statement has a priority according to which conditions are being tested. Whenever it is found to be true, all the following ELSIF statements are skipped and the END IF is executed. Sometimes, it is possible that two conditions may overlap which can cause a change in output and we may not get the output as expected.
 

Tìm kiếm

Back
Top