
Module 6: Selection Structures
Authored by ROBERT JONAS SALAZAR TAN
Computers
University
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Having an if statement requires an else statement to follow.
True
False
Cannot be determined
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
A TRUE value can also be represented in programming as
0
1
Yes
No
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
A structure used to perform decision making and then branch the program flow based on the outcome of decision making.
Looping Structure
Selection Structure
Data Structure
Building Structure
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is/ are the proper syntax of an if statement?
if (expression)
statement;
if (expression) {
statement1;
statement2;
}
if (expression) { statement1; statement 2; }
All syntax are correct.
No syntax is correct.
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
The following code is evaluated:
if (1)
{
printf("Hello World");
}
What will happen when executed?
Nothing will happen
Syntax Error
Display "Hello World"
Display "Hello"
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
The following code is evaluated:
if (3)
{
printf("Hello World");
}
What will happen when executed?
Nothing will happen
Syntax Error
Display "Hello World"
Display "Hello"
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
In an if...else if...else statement, an expression is true, the rest will no longer be checked.
True
False
Cannot be determined
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?
Similar Resources on Wayground
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
10 questions
DBMS 1
Quiz
•
University
15 questions
ENGINEERING DATA ANALYSIS PRELIM
Quiz
•
University
12 questions
R variable Data Type and Flow Control Quiz
Quiz
•
University
10 questions
Day 10 - Networking & Security I - 1st Review of Day 9
Quiz
•
University
12 questions
Web Apps 02 - MeteorJS
Quiz
•
University
11 questions
Determining System Requirements
Quiz
•
University
10 questions
CC 105 - Quiz 2 FINAL TERM
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade