C++ Loops
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
ELIZABETH DIERKER
Used 59+ times
FREE Resource
Enhance your content in a minute
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following loops will always run at least once?
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
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
15 questions
Excel
Quiz
•
12th Grade
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
10 questions
Câu hỏi trắc nghiệm Tin Học 10 - Bài 10
Quiz
•
10th Grade
10 questions
UNIT 2.4 LOGIC
Quiz
•
10th Grade
12 questions
Основы алгебры логики
Quiz
•
10th Grade
17 questions
PSTS1 Informatika
Quiz
•
10th Grade
15 questions
TEST DE PENSAMIENTO LOGICO
Quiz
•
10th Grade
10 questions
Bài tập Tin học lớp 4
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
