
Одномерные массивы в 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
Как объявить одномерный массив в 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;
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Массивы в C++: ввод/вывод

Quiz
•
6th - 8th Grade
11 questions
Java Script 1.5. Объекты

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

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

Quiz
•
1st - 12th Grade
10 questions
Условный оператор. Вспомнить всё

Quiz
•
8th - 9th Grade
11 questions
Java1

Quiz
•
6th - 11th Grade
10 questions
Урок 4 C#

Quiz
•
8th Grade
15 questions
JS Talks, Quiz #5

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
16 questions
Clovis Unified Student Use of Technology

Quiz
•
4th - 8th Grade
11 questions
Technology Acceptable Use

Quiz
•
6th - 8th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
15 questions
Student Technology Agreement

Quiz
•
6th - 8th Grade
10 questions
Acceptable Use of Technology

Quiz
•
7th - 8th Grade