Дан отрывок программы:
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++; }
Да
Нет
10 questions
C++ vs Python: A Quiz Introduction
Quiz
•
11th Grade - University
9 questions
Instructiuni Repetitive C++
Quiz
•
10th Grade
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
12 questions
Символьные строки, операции со строками - С++
Quiz
•
10th Grade
15 questions
ULANGAN HARIAN INFORMATIKA 5
Quiz
•
11th Grade
12 questions
Java - arrays and String methods
Quiz
•
9th - 12th Grade
10 questions
Описание массива
Quiz
•
10th Grade
10 questions
Programming Basics
Quiz
•
11th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University