Как объявить массив в C++?

Массив в C++

Quiz
•
Computers
•
1st Grade
•
Medium
Gulzina Nagibova
Used 2+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int myArray[5];
int myArray{};
array myArray[5];
int myArray{5};
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как инициализировать массив в C++?
int arr[5] = {1, 2, 3, 4, 5, 0};
int arr[] = {1, 2, 3, 4, 5};
int arr[5] = {1, 2, 3, 4};
int arr[5] = {1, 2, 3, 4, 5};
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как получить доступ к элементу массива по индексу в C++?
array.at(index)
array.get(index)
array[index]
array(index)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как получить доступ к первому элементу массива в C++?
arrayName.getElement(1)
arrayName[0]
arrayName.at(0)
arrayName.firstElement()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как получить доступ к последнему элементу массива в C++?
arrayName.back()
arrayName[-1]
arrayName[size-1]
arrayName.end()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как изменить значение элемента массива по индексу в C++?
array.set(index, new_value);
array.at(index) = new_value;
array.insert(index, new_value);
array[index] = new_value;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
массив sport cодержит следующие элементы: basketball, football, baseball, tennis, hockey. Вытащите элемент tennis
sport[2]
sport[3]
sport[1]
sport[tennis]
Similar Resources on Quizizz
10 questions
Одномерные массивы

Quiz
•
1st - 10th Grade
10 questions
C# lesson10

Quiz
•
1st - 10th Grade
11 questions
Java Script 1.5. Объекты

Quiz
•
1st - 12th Grade
10 questions
9 сынып python

Quiz
•
1st Grade
8 questions
JS Talks, Quiz #4

Quiz
•
1st - 12th Grade
6 questions
String

Quiz
•
1st - 3rd Grade
10 questions
Одномерные массивы целых чисел

Quiz
•
KG - 5th Grade
11 questions
JS: вспомнить все

Quiz
•
1st Grade
Popular Resources on Quizizz
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
19 questions
Math Review

Quiz
•
3rd Grade
45 questions
7th Grade Math EOG Review

Quiz
•
7th Grade
Discover more resources for Computers
12 questions
Summer Trivia

Quiz
•
1st - 5th Grade
20 questions
Telling Time to the Hour and Half hour

Quiz
•
1st Grade
15 questions
Disney Trivia

Quiz
•
KG - 5th Grade
15 questions
spelling

Quiz
•
1st - 2nd Grade
12 questions
Pixar Movies!

Quiz
•
KG - 5th Grade
15 questions
goods and services

Quiz
•
1st Grade
15 questions
Addition and Subtraction

Quiz
•
1st Grade
20 questions
Summer

Quiz
•
KG - University