C++ Review Questions - Conditional Structures
Review C++ operators and conditional statements with questions on arithmetic, assignment, relational, and logical operators, if-else logic, and nested conditions.
if else-if
- What is the purpose of an
ifstatement? - What is the difference between
if-elseandelse-if? - What is a nested
ifstatement? - Why should higher grade thresholds be checked first?
- Can an
ifstatement exist inside anotherifstatement? - What happens when every condition in an
if-else-ifladder is false and no finalelseis provided?