Дан отрывок программы:
int mass[5] {6, 7, 2, 9, 1};
cout << mass[3];
Что выведет программа?
Массивы C++
Quiz
•
Computers
•
10th - 11th Grade
•
Medium
Анна Масолова
Used 9+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Дан отрывок программы:
int mass[5] {6, 7, 2, 9, 1};
cout << mass[3];
Что выведет программа?
7
2
9
1
2.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Заполните пропуск:
... - это порядковый номер элемента в массиве.
Ответ запишите заглавными буквами.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Дан отрывок программы:
int mass[6] {6, 7, 2, 9, 1};
cout << mass[5];
Что выведет программа?
0
ошибка
9
1
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Как объявить массив целых чисел в C++?
array int[];
int[] array;
int array[];
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Выберите вариант, где цикл для перебора элементов массива, состоящего из 10 элементов, записан верно
for (int i = 1; i < 10; i++)
for (int i = 0; i < 10; i++)
for (int i = 0; i < 11; i++)
for (i = 0; i <= 10; i++)
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Как объявить массив с плавающей точкой в C++?
float array[];
array float[];
float[] array;
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Будет ли выведена ошибка при выполнении данного фрагмента программы?
int v = 0;
int mass[5] {1, 6, 3, 5, 9};
for (int i = 0; i < 5; i++){
if (mass[i+1] > mass[i])
v++; }
Да
Нет
7 questions
Arrays 2022/02/15
Quiz
•
10th Grade
10 questions
Программирование C#
Quiz
•
1st - 10th Grade
12 questions
Arrays Intro
Quiz
•
9th - 12th Grade
10 questions
C# lesson10
Quiz
•
1st - 10th Grade
16 questions
Программирование на Pascal
Quiz
•
10th Grade
16 questions
Loops
Quiz
•
5th - 12th Grade
15 questions
Area With Arrays
Quiz
•
10th - 12th Grade
15 questions
Array
Quiz
•
10th - 12th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
25 questions
Spanish preterite verbs (irregular/changed)
Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1
Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes
Quiz
•
9th - 12th Grade