
С++: циклы + одномерные массивы

Quiz
•
Mathematics
•
University
•
Medium
Лада Торчик
Used 3+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Сколько действий выполнит следующий цикл:
for (int i = -1; i < 10; i++) {...}
10
11
бесконечный цикл
9
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Сколько действий выполнит следующий цикл:
for (int i = 7; i <= 14; ++i) {...}
7
8
14
бесконечный цикл
3.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Сколько действий выполнит следующий цикл:
for (int i = 0; i < 10; i += 3) {...}
3
4
10
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Сколько элементов в заданном ниже массиве:
int arr[10] = {1, 2, 3};
10
3
0
100
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Чему равен элемент заданного массива с индексом 2:
int arr[10] = {1, 2, 3};
3
2
1
такого элемента нет в массиве
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Чему равен элемент заданного массива с индексом 5:
int arr[10] = {1, 2, 3};
3
ошибка
мусор или 0
5
7.
MULTIPLE CHOICE QUESTION
1 min • 15 pts
Ниже представлена программа, заполняющая массив из 10 элементов. Чему будет равен последний элемент такого массива?
int arr[10]; for (int i = 0; i < 10; i++) { arr[i] = 10 - i; }
1
10
9
2
8.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Какой индекс имеет элемент, равный 10 в приведенном ниже массиве?
int a[10] = {1, 2, 3, -4, -5, -6, 10, 9, 23, -11};
6
5
10
7
9.
MULTIPLE SELECT QUESTION
1 min • 20 pts
На каких из приведенных ниже вариантах входных данных программа для поиска максимума в массиве будет работать НЕправильно?
int max = 0; for (int i = 0; i < n; i++) {
if (arr[i] > max) {
max = arr[i];
}
}
cout << max;
5
1 2 3 4 5
1
0
1
-1
10
1 -2 3 -4 10 -9 8 7 -6 11
4
-4 -11 -100 -1
Similar Resources on Wayground
14 questions
Find Slope and X and Y Intercepts

Quiz
•
9th Grade - University
10 questions
Q3 Física

Quiz
•
7th Grade - University
12 questions
Fourier Transform Basics-1

Quiz
•
University
10 questions
ARRAY

Quiz
•
University
10 questions
Examen de diagnóstico Ecuaciones Diferenciales

Quiz
•
University
10 questions
C++ 算術運算子

Quiz
•
11th Grade - University
10 questions
Foundations of Algebra Final Review

Quiz
•
9th Grade - University
12 questions
Find the Y Intercept from a Line

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade