Which of the following loops will always run at least once?
C++ Loops

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
ELIZABETH DIERKER
Used 57+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
while
do...while
for
froot
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many times is "yoyo" printed when the following code executes?
for(int i = 1; i < 7; i += 2)
cout<<"yoyo";
0
2
3
4
infinitely many times
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many times is "stop" printed when the following code executes?
int i =1;
while( i <= 9){
cout<<"stop";
i++;
}
0
9
10
11
infinitely many times
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the final value of sum?
0
20
12
30
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is an infinite loop?
for(int i = 0; i>0; i++);
while(false){cout<<"hi";}
for(int i =7; i<15; i--);
int x = 1;
while(x){break;}
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the final value of d?
int d;
for (d = 1; d < 567; d *= 10);
1
100
10
1000
10000
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
True or false? A continue statement stops a loop from executing.
True
False
Create a free account and access millions of resources
Similar Resources on Quizizz
14 questions
C++ - Loops and Random Numbers

Quiz
•
9th - 12th Grade
10 questions
Kuis Percabangan dan Perulangan

Quiz
•
10th Grade
18 questions
PH kelas 10 Bab 1

Quiz
•
9th - 12th Grade
13 questions
9-Cpp-1

Quiz
•
9th Grade
10 questions
С++ цикл for

Quiz
•
6th - 9th Grade
12 questions
Массивы C++

Quiz
•
10th - 11th Grade
12 questions
Bab 1.4.2 - Operator Hubungan dan Operator Logikal dlm Struktur

Quiz
•
9th - 12th Grade
15 questions
C++ SHS B1-B2

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University