
С++ циклы
Authored by HI, Guy
Computers
10th Grade
Used 22+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Отработает ли следующий код, если да то что выведет на экран, если нет то укажите ошибки:
#include<iostream>
using namespace std;
int main()
{
int i = 0;
do{
i++;
} while (i<0);
cout << i;
return 0;
}
0
1
Бесконечный цикл
Ошибка
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Отработает ли следующий код, если да то что выведет на экран, если нет то укажите ошибки:
#include<iostream>
using namespace std;
int main()
{
int ch = 1, k = 10, sum = 0;
while (ch < k)
sum += ch;
ch++;
cout << sum;
return 0;
}
55
50
Бесконечный цикл
Ошибка
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Отработает ли следующий код, если да то что выведет на экран, если нет то укажите ошибки:
#include<iostream>
using namespace std;
int main()
{
int i = 10;
for (i = 3; i<20; i++){
i++;
cout << "$";
}
return 0;
}
20 знаков
17 знаков
Ошибка
9 знаков
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Отработает ли следующий код, если да то что выведет на экран, если нет то укажите ошибки:
#include<iostream>
using namespace std;
int main()
{
int a;
for (a = 0; a<10; a++){
a += a;
}
cout << a;
return 0;
}
10
15
20
Ошибка
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Отработает ли следующий код, если да то что выведет на экран, если нет то укажите ошибки:
#include<iostream>
using namespace std;
int main()
{
int sum = 0;
for (int i = 0, j = 1; i<5; j++)
{
sum += j;
}
cout << sum;
return 0;
}
10
15
Ошибка
Бесконечный цикл
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Отработает ли следующий код, если да то что выведет на экран, если нет то укажите ошибки:
#include <iostream>
using namespace std;
int main()
{
int k = 0;
for (int i = 0; i<10; i++)
{
if (i % 2 == 0) continue;
k += i;
}
cout << k;
return 0;
}
25
45
20
Бесконечный цикл
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Отработает ли следующий код, если да то что выведет на экран, если нет то укажите ошибки:
#include <iostream>
using namespace std;
int main()
{
int y, x = 1, total = 0;
while (x <= 5)
{
x++;
y = x*x;
total += y;
}
cout << total;
return 0;
}
54
55
30
90
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
หน่วยที่ 2 เรื่อง ( Language C )
Quiz
•
9th - 12th Grade
17 questions
Algorytmy 8
Quiz
•
1st Grade - University
22 questions
одномерные массивы
Quiz
•
10th Grade
20 questions
Tin học 11 chương I
Quiz
•
1st - 12th Grade
17 questions
Project Stem Python Unit 1 Test Review
Quiz
•
9th - 12th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
15 questions
СОР_8 класс_раздел 1
Quiz
•
10th Grade - University
20 questions
UID uCertify Chapter 9 Test
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade