C++ PROGRAMMING
Quiz
•
Computers
•
12th Grade
•
Medium
NUR GHANI
Used 51+ times
FREE Resource
Enhance your content
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output is produced by the following segment of code:
for(int i = 0; i < 10; i++)
cout << i << " ";
0 1 2 3 4 5 6 7 8 9 10
0 1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9
Infinite Loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output is produced by the following segment of code:
for(int i = 0; i <= 10; i++)
cout << i << " ";
0 1 2 3 4 5 6 7 8 9 10
0 1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9
Infinite Loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output is produced by the following segment of code:
for(int i = 1; i <= 10; i++)
cout << i << " ";
0 1 2 3 4 5 6 7 8 9 10
0 1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9
Infinite Loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output is produced by the following segment of code:
for(int fun = 20; fun > 1; fun -=3)
cout << fun << " ";
20 17 14 11 8 5 2 -1
20 17 14 11 8 5 2
17 14 11 8 5 2 -1
20 17 14 11 8 5
Infinite Loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output is produced by the following segment of code:
int start = 5;
int end = 20;
for(; start <= end; start +=2)
cout << start << " ";
5 7 9 11 13 15 17 19 21
7 9 11 13 15 17 19 20
7 9 11 13 15 17 19 21
5 7 9 11 13 15 17 19
Infinite Loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True/False: For Loops can never be an infinite loop.
True
False
Waluigi is my Spirit Animal
Mr. G didn't feel like deleting the two extra options
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will the shown for loop execute?
0
9
10
11
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Examen Excel Básico
Quiz
•
12th Grade
18 questions
linguaggio C++
Quiz
•
9th - 12th Grade
20 questions
UTS Genap Informatika Kelas IX
Quiz
•
9th Grade - University
20 questions
Design your website
Quiz
•
7th - 12th Grade
20 questions
2.3.1 Graph Traversal & Path Finding Algorithms
Quiz
•
12th Grade - University
20 questions
Disco duro
Quiz
•
9th - 12th Grade
21 questions
DDL dan DML
Quiz
•
12th Grade
20 questions
PSTS Administrasi Infrastruktur Jaringan Kelas XII TKJ
Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
