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
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
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
15 questions
Pemograman Dasar

Quiz
•
10th Grade
10 questions
Сpp 1_3

Quiz
•
9th - 12th Grade
14 questions
C++ - Loops and Random Numbers

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

Quiz
•
10th Grade
15 questions
ELEMENTE DE BAZA ALE LIMBAJULUI C++

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

Quiz
•
9th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade