
PF selection statement
Authored by MUHAMMAD (PBU)
Information Technology (IT)
1st Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify which is NOT the type of selection control structure
if-else
nested if
do while
switch case
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
choose the syntax for an 'if' statement
if(condition)
if condition
condition if
if {condition}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
identify the value of 'y' after the switch statement in figure is executed
0
1
5
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
"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)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?