
Quiz on Selective Structures in Programming
Authored by NUR ENZAI
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the most basic selective statement?
while loop
for loop
if statement
switch statement
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the condition in an if statement is FALSE?
The statement is executed
The statement is skipped
The program terminates
The condition is re-evaluated
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In an if...else statement, what is executed if the condition is TRUE?
Statement B
Statement A
Both statements
None of the statements
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the switch...case statement?
To create loops
To define functions
To execute a single statement
To substitute for long if statements
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What must follow each case label in a switch statement?
exit
break
return
continue
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a nested if structure involve?
Multiple switch statements
An if statement within another if statement
A function within an if statement
A loop within an if statement
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for an if...else...if statement?
if condition 1, statement 1; else if condition 2, statement 3;
if condition 1, statement 1; else statement 2;
if condition 1, statement 1; else if condition 2, statement 2;
if condition 1, statement 1; if condition 2, statement 2;
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
20 questions
data structures1
Quiz
•
University
16 questions
Quiz on List and Tuples
Quiz
•
University
20 questions
Week 5: Test your understanding part 1
Quiz
•
University
15 questions
Digital Etiquette
Quiz
•
4th Grade - University
15 questions
Data Mining - Classification Mining
Quiz
•
University
20 questions
SMARTICUS
Quiz
•
University
15 questions
PROBLEM SOLVING USING R UNIT I MCQS
Quiz
•
University
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
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