Как объявить одномерный массив в 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
Programming

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

Quiz
•
8th Grade
12 questions
Java Script 1.4. Массивы

Quiz
•
1st - 12th Grade
15 questions
Python - тест

Quiz
•
1st - 12th Grade
11 questions
Строки в с++

Quiz
•
8th Grade
10 questions
Introduction to Arrays

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

Quiz
•
8th Grade
15 questions
Большое Повторение C#

Quiz
•
5th Grade - University
Popular Resources on Quizizz
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
Discover more resources for Computers
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons

Quiz
•
8th Grade