
Массив в C++
Authored by Gulzina Nagibova
Computers
1st Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как объявить массив в C++?
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]
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?