
Одномерные массивы в C++
Authored by Janat Kassym
Computers
8th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как объявить одномерный массив в C++?
int arr();
int arr{};
int arr[size];
int arr[];
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Как инициализировать одномерный массив в C++?
int arr[] = {1, 2, 3, 4, 5};
int arr[] = {1, 2, 3, 4, 5};
int arr[5] = {1, 2, 3, 4, 5};
int arr(5) = {1, 2, 3, 4, 5};
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как получить доступ к элементу массива по индексу в C++?
array(index)
array.index
array{index}
array[index]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой цикл используется для перебора элементов одномерного массива в C++?
if
switch
while
for
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как объявить массив с 5 элементами типа int в C++?
int arr(5);
int arr{};
int arr[4];
int arr[5];
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как заполнить массив значениями 1, 2, 3, 4, 5 в C++?
int arr[5] = {1, 2, 3, 4, 5, 6};
int arr[5] = {1, 2, 3};
int arr[5] = {1, 2, 3, 4, 5};
int arr[5] = {5, 4, 3, 2, 1};
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как вывести все элементы массива на экран в C++?
for(int i = arraySize - 1; i >= 0; i--) { cout << array[i] << endl; }
while(i < arraySize) { cout << array[i] << endl; i++; }
for(int i = 0; i < arraySize; i++) { cout << array[i] << endl; }
cout << array << endl;
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?