Как объявить одномерный массив в C++?

Одномерные массивы в C++

Quiz
•
Computers
•
8th Grade
•
Hard
Janat Kassym
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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;
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Introduction to Arrays

Quiz
•
KG - University
10 questions
БЕЗОПАСНЫЙ ИНТЕРНЕТ

Quiz
•
8th Grade
13 questions
Python: процедуры и функции

Quiz
•
8th - 11th Grade
6 questions
Методы+Массивы

Quiz
•
8th Grade - University
10 questions
Python линейные алгоритмы

Quiz
•
8th Grade
10 questions
Programming

Quiz
•
1st - 10th Grade
10 questions
Основы Python

Quiz
•
8th Grade
14 questions
python.операторы ввода/вывода.переменные

Quiz
•
6th - 8th Grade
Popular Resources on Quizizz
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
Discover more resources for Computers
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
15 questions
Volume Prisms, Cylinders, Cones & Spheres

Quiz
•
8th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
25 questions
Argumentative Writing & Informational Text Vocabulary Review

Quiz
•
8th Grade
18 questions
Informational Text Vocabulary

Quiz
•
7th - 8th Grade