C++ Loops

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
ELIZABETH DIERKER
Used 58+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Le basi C++

Quiz
•
11th Grade
14 questions
C ++ For Loop

Quiz
•
9th - 12th Grade
10 questions
Xб_сор

Quiz
•
9th - 12th Grade
12 questions
Praca klasowa C++

Quiz
•
12th Grade
15 questions
AP Computer Science A Review 1

Quiz
•
10th - 12th Grade
14 questions
Cấu trúc rẽ nhánh

Quiz
•
11th Grade
10 questions
C#

Quiz
•
11th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade