
Основы одномерных массивов в C++
Quiz
•
Information Technology (IT)
•
8th Grade
•
Practice Problem
•
Hard
Нурай Сердалыкызы
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как объявить одномерный массив в C++?
int myArray[10];
float myArray[10];
int myArray = new int[10];
int[] myArray;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как правильно объявить массив из 10 целых чисел?
int arr(10);
int arr[10];
int arr = new int[10];
array<int> arr(10);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как инициализировать массив целых чисел в C++?
int arr[] = {1, 2, 3, 4, 5};
int arr(5) = {1, 2, 3, 4, 5};
int arr[5] = new int[5]{1, 2, 3, 4, 5};
int arr = {1, 2, 3, 4, 5};
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Найди ошибку в этом коде:
int arr[5];
for (int i = 1; i <= 5; i++) {
cin >> arr[i]; }
Неверный тип данных
Индекс массива начинается с 1
Цикл считывает только положительные элементы
Ошибок нет
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как проверить, является ли число четным в массиве?
Число / 2 == 1
Число + 2 == 0
Число % 2 != 0
Используйте условие: число % 2 == 0.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как проверить, является ли число нечетным в массиве?
Используйте условие: число % 2 == 0.
Проверьте, если число делится на 3.
Используйте условие: число < 0.
Используйте условие: число % 2 != 0.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как изменить значение элемента массива?
Используйте синтаксис arr[index] = новое_значение;
Замените элемент массива с помощью функции map;
Удалите элемент массива и добавьте новый с помощью метода splice;
Используйте метод push для изменения значения элемента массива;
Create a free account and access millions of resources
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?
Similar Resources on Wayground
10 questions
Ch2變數與運算式-綜合演練選擇題
Quiz
•
6th - 8th Grade
15 questions
scratch
Quiz
•
6th - 8th Grade
10 questions
Викторина по языку Python
Quiz
•
6th - 8th Grade
12 questions
Ulangkaji ASK
Quiz
•
6th - 8th Grade
10 questions
Quiz sobre la evolución de las computadoras
Quiz
•
4th Grade - University
8 questions
LATIHAN PENGUKUHAN (RBT TINGKATAN : 2.2 SISTEM MEKANIKAL)
Quiz
•
8th Grade
15 questions
5-sinf. Kompyuter va Internet Asoslari
Quiz
•
5th Grade - University
15 questions
6-sinfl. Ofis dasturlari va Scratch
Quiz
•
6th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
15 questions
scatter plots and trend lines
Quiz
•
8th Grade
20 questions
Solving Systems of Equations by Graphing
Quiz
•
8th Grade
20 questions
Christmas Song Emojis
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
