5 Questions
Selection statements execute a set of instructions only if a conditional expression is true and skip them if it is ______.
false
There are ______ selection statements in C.
two
The syntax of the if statement is: if(conditional expression) { Body of if… } ______ { Body of else… }
else
The if statement requires the use of ______ around the conditional expression.
parenthesis
The else part is ______.
optional
Test your knowledge on selection statements in C programming with this quiz. Learn about the if statement and switch statement, and understand how they work through the use of flowcharts. Sharpen your skills in conditional expressions and improve your programming abilities.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free