
unit 4 : loops
Authored by Abhishek Pandey
Computers
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
10 questions
Què en saps de GSuite?
Quiz
•
University - Professi...
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
10 questions
Information systems concepts
Quiz
•
University
8 questions
Overview of IT
Quiz
•
6th Grade - University
10 questions
Kampyuter Tarmoqlari Bo'yicha Test
Quiz
•
8th Grade - University
10 questions
Web-II-Loop and Function
Quiz
•
University
11 questions
Workshop_1
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