
Циклы в C++
Authored by Bakhytzhan Abylkhatov
Computers
8th Grade
Used 14+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Какой цикл называется циклом с параметрами?
cycle
for
while
do while
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Программа должна вывести квадраты чисел от 5 до 15 (включительно).
Укажите недостающий фрагмент цикла for:
for(int i =5; ___; i++){
cout<<i*i<<" ";
}
i>15
i>=15
i<=15
i<15
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Сколько раз сработает следующий цикл?
int a = 4;
while (a<10){
cout<<a<<endl;
a++;
}
бесконечный цикл
5
7
6
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как исправить бесконечный цикл в коде?
Удалить все условия выхода из цикла.
Добавить cout и cin внутри тела цикла и удалить лишние переменные.
Увеличить количество итераций в цикле.
Проверить условия выхода и изменять значение счетчика внутри цикла.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой вывод будет после завершения цикла?
sum=0;
for(int i=10; i>7; i--) {
sum = sum + i;
}
cout<<"Сумма = "<<sum;
27
Сумма = 27
Сумма = 34
Сумма = 26
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Программа должна вывести все числа от 0 до 20(включительно), которые делятся на три без остатка. Найдите ошибку.
for (int = 0; i<21; i++) {
if (i%3=0) {
cout<<i<<" ";
}
cout<<i<<" ";
if (i%3=0)
i<21
Ошибок нет
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Какое последнее значение примет переменная x?
int x = 20;
while (x<10) {
cout<<x<<endl;
x--;
}
Программа не запустится
10
11
20
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
16 questions
Microcontrolere Noțiuni generale. Structura internă
Quiz
•
KG - 12th Grade
10 questions
Email Quiz - PWHS
Quiz
•
1st - 12th Grade
10 questions
Python линейные алгоритмы
Quiz
•
8th Grade
10 questions
Diagramas de Flujo
Quiz
•
7th - 10th Grade
10 questions
Cutting - Edge Technology
Quiz
•
7th - 10th Grade
12 questions
Повторення 6 клас
Quiz
•
6th - 8th Grade
14 questions
Diagrama de flujo, PSeInt, Arduino
Quiz
•
8th Grade
16 questions
Conditions
Quiz
•
8th - 10th 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
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
11 questions
Valentines Day
Quiz
•
6th - 8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
25 questions
7th Reading STAAR Vocabulary
Quiz
•
6th - 8th Grade
25 questions
Valentine's Day Trivia
Quiz
•
8th Grade