unit 4 : loops

Quiz
•
Computers
•
University
•
Easy
Abhishek Pandey
Used 3+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a loop structure in C?
for
do while
while
switch
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will the following loop run?
int i = 1;
while(i <= 5) {
printf("%d ", i);
i++;
}
1
2
5
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is best when the number of iterations is known?
for
while
do while
for each
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not an infinite loop?
for(;1;)
while(1)
do {} while(1);
for(i = 0; i < 10; i++)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the break statement do in a loop?
Skips one iteration
Terminates the loop
Goes to next loop
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the use of continue statement?
Exit the loop
Repeat the loop entirely
Skip rest of the code and continue to next iteration
Stop the program
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword transfers control to a labeled statement?
goto
break
continue
switch
Similar Resources on Wayground
11 questions
JavaScript

Quiz
•
University
10 questions
QUIZ 3

Quiz
•
University
10 questions
Array in C

Quiz
•
University
11 questions
ACM AI Pytorch Review

Quiz
•
University
10 questions
Java Programming

Quiz
•
University
10 questions
Session 2 | U

Quiz
•
University
7 questions
Lesson 2 Recap

Quiz
•
University
10 questions
Quiz 4

Quiz
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University