
C++: вложенные циклы
Authored by Лада Торчик
Mathematics
University
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Сколько чисел выведет следующий фрагмент программы?
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 6; j++) {
cout << i + j << " ";
}
}
5
6
30
60
2.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Сколько строк чисел выведет следующий фрагмент программы?
for (int i = 5; i < 15; i++) {
for (int j = 0; j < 40; j++) {
cout << i + j << " ";
}
cout << endl;
}
10
400
410
1
3.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Сколько строк чисел выведет следующий фрагмент программы?
for (int i = 0; i < 17; i++) {
for (int j = 0; j < 1; j++) {
cout << i + j << " ";
}
}
17
1
18
34
4.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Сколько символов * (звёздочек) выведет следующий фрагмент программы?
for (int i = 3; i < 14; i++) {
for (int j = 4; j < 9; j++) {
cout << "*";
}
cout << endl;
}
5
55
11
126
5.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Сколько столбцов из символов * (звёздочек) выведет следующий фрагмент программы?
for (int i = 1; i < 12; i++) {
for (int j = -1; j < 7; j++) {
cout << "*";
}
cout << endl;
}
8
11
88
7
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?