
Quiz 3
Authored by MA CPC
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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?