Quiz 3
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
MA CPC
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int count = 0;
while(count < 5) {
cout << count << " ";
count++;
if(count == 3) continue;
}
0 1 2 3 4
0 1 2 4
0 1 3 4
0 1 2 4 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int i = 1;
for( ; i < 3; ) {
cout << i << " ";
i++;
}
1 2
1 2 3
error
0 1 2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for(int x = 0; x < 5; x++) {
if(x == 3) break;
cout << x << " ";
}
0 1 2
0 1 2 3
0 1 2 3 4
0 1 2 4 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int sum = 0;
for (int i = 1; i <= 5; i++) {
sum += i;
}
cout << sum;
15
14
5
Syntax error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int i = 0;
for (i; i <= 5; i++)
cout << i;
cout << i;
001122334455
0123456
0123450
0123456
0123456
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for (int i = 1; i <= 2; ++i) {
cout << i ;
for (int j = 1; j <= 3; ++j) {
cout << j ;
}
}
11232123
112233
123123
12123
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for(int i=0;i++<5;){
cout<<i<<" ";
}
1 2 3 4
0 1 2 3 4
1 2 3 4 5
0 1 2 3 4 5
Access all questions and much more by creating a free account
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
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
A level Computer Science In-fix post-fix Reverse polish
Quiz
•
10th Grade - University
10 questions
REVIEW AD KLS 9
Quiz
•
9th Grade - University
10 questions
Clustering_Pertemuan2_Quiz_Ceria
Quiz
•
University
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
6 - Изменение размеров и формы объектов
Quiz
•
University
10 questions
Machine Learning (Introduction)
Quiz
•
University
11 questions
Herramientas WEB
Quiz
•
6th Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
