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
6 questions
Automation and CADCAM

Quiz
•
University
8 questions
H Plenary - Modular programming quick quiz

Quiz
•
10th Grade - University
10 questions
SOAL MODUL 4 : Pemahaman Looping dan Kondisional

Quiz
•
10th Grade - University
10 questions
Final Test Math Computations

Quiz
•
University
10 questions
Introduction to Computer Programming

Quiz
•
6th Grade - University
10 questions
Basics Of C Programming

Quiz
•
University
10 questions
CLASS 9 AI - VIVA 2024-25

Quiz
•
9th Grade - University
5 questions
Informatics Practices Quiz

Quiz
•
9th Grade - University
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
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University