
Циклы в C++

Quiz
•
Computers
•
8th Grade
•
Hard
Bakhytzhan Abylkhatov
Used 11+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Программирование C#

Quiz
•
1st - 10th Grade
17 questions
Programare cu C++ nivel incepatori 8

Quiz
•
6th - 8th Grade
10 questions
Programare cu C++ nivel medie 6

Quiz
•
6th - 8th Grade
16 questions
Hour_of_Code

Quiz
•
5th - 12th Grade
13 questions
Programare cu C++ incepatori 9

Quiz
•
6th - 8th Grade
16 questions
C++ Одномерные массивы. Заполнение и вывод.

Quiz
•
8th Grade
10 questions
Python-Code Right or Wrong

Quiz
•
7th - 8th Grade
17 questions
Алгоритмы ветвления

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade