
Butula TVC CICT II Quiz on Control Structures Quiz

Quiz
•
Other
•
University
•
Hard
Andrew Wakoli
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the primary purpose of control structures in programming?
To execute statements in a random order
To enable decision making and repetition
To store data temporarily
To compile the program
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is NOT a type of control structure in C?
Function structures
Repetition structures
Selection structures
Sequence structures
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What does the 'if' statement do in a program?
Terminates the program
Repeats a block of code multiple times
Executes a block of code only if a condition is true
Executes a block of code unconditionally
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
In a switch statement, what happens when a 'break' statement is encountered?
The switch statement is exited
The program continues to the next line of code
The flow of control jumps to the next case
The program terminates immediately
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which loop structure guarantees that the loop body will execute at least once?
For loop
Do...while loop
Nested loop
While loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the purpose of the 'continue' statement in a loop?
To restart the loop from the beginning
To exit the loop immediately
To terminate the program
To skip the current iteration and continue with the next
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is a characteristic of a nested if statement?
It cannot be used with else statements
It must always return a value
It can contain another if statement inside it
It can only contain one condition
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
IOT Quiz

Quiz
•
University
12 questions
JAVA FUNDAMENTALS

Quiz
•
University
15 questions
C Quiz

Quiz
•
University
15 questions
C programming and Arduino Basics

Quiz
•
University
15 questions
Scratch Programming Quiz

Quiz
•
8th Grade - University
10 questions
C++ set4

Quiz
•
University
10 questions
1. Renal Physiology

Quiz
•
University
10 questions
Java Quiz

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade