
Control Structures Quiz

Quiz
•
Computers
•
Professional Development
•
Medium
Shabana Pirjade
Used 1+ times
FREE Resource
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a decision control structure used for?
To repeat a block of code
To alter the flow of execution
To store data
To define variables
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a loop control structure?
for
while
do-while
if-else
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'break' statement do in a loop?
Pauses the loop
Exits the loop
Restarts the loop
Continues to the next iteration
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which control structure allows for multiple conditions to be checked?
for
if
while
switch-case
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'else' statement in an if-else structure?
To declare a variable
To define a loop
To execute code if the condition is false
To execute code if the condition is true
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a nested if-else statement, what is true about the inner if?
It executes only if the outer if is true
It can only execute if the outer if is false
It cannot contain else statements
It can execute independently of the outer if
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for a conditional operator in C?
condition ? true_case : false_case
if(condition) true_case else false_case
switch(condition) case true_case : case false_case
for(condition; true_case; false_case)
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
United Overview Quiz

Quiz
•
Professional Development
33 questions
Update and document OS

Quiz
•
Professional Development
30 questions
Data Structures and Algorithm

Quiz
•
11th Grade - Professi...
25 questions
IT support level-1 (MCQ-2)

Quiz
•
Professional Development
25 questions
A+ - 13C - Troubleshoot Windows OS Problems

Quiz
•
Professional Development
25 questions
C second module quiz

Quiz
•
Professional Development
25 questions
C module 1 second quiz

Quiz
•
Professional Development
23 questions
EXAM PREP ITS PYTHON DAY1

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade