NEW
Font size
WorksheetsPF selection statement
Total questions: 5
Worksheet time: 3mins
Identify which is NOT the type of selection control structure
if-else
nested if
do while
switch case
choose the syntax for an 'if' statement
if(condition)
if condition
condition if
if {condition}
choose the correct syntax to write condition based on the statement below
"if sum is equal to 32 and total is equal to 2"
if (sum==32) || (total==2)
if (sum==32) && (total==2)
if (sum=32) || (total=2)
if (sum=32) && (total=2)
identify the value of 'y' after the switch statement in figure is executed
0
1
5
4
"if sum is less or equal to 25 and average is equal to 45"
The sentence is the condition statement in a selection control structure. Identify the CORRECT statement to write the condition statement in C++
if (sum <= 25) || (average == 45)
if (sum <= 25) && (average == 45)
if (sum = 25) && (average = 45)
if (sum < 25) || (average = 45)
