
quiz7
Authored by Khaled Abdellatif
Information Technology (IT)
1st Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for (int i = 0; i < 3; i++) {
cout << i << " ";
}
1 2 3 4
0 1 2
0 1 2 3
Erreur
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for (int i = 0; i < 5; i++) {
if (i % 2 == 0) {
cout << i << " ";
} }
0 2 4
1 3 5
0 1 2 3 4
Erreur
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for (int i = 0; i < 4; i++) {
if (i == 2) {
cout << "Deux" << endl; }
else { cout << i << endl; } }
0 1 Deux 3
0 Deux 2 3
Deux 1 2 3
0 1 2 3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 2; j++) {
cout << i << "," << j << " "; } }
0,0 0,1 1,0 1,1 2,0 2,1
0,0 1,0 2,0
0,1 1,1 2,1
Erreur
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int x = 0;
for (int i = 0; i < 4; i++) {
x += i; }
cout << x;
6
4
10
5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int somme = 0;
for (int i = 2; i <= 6; i += 2) {
somme += i; }
cout << somme;
6
8
12
14
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int a = 17;
int b = 5;
cout << a / b;
3
3.4
4
0
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?