X_Пон_мас_ариф

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
И Град
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Задан массив констант А:
const a: array [1..5] of integer = (2, 15, 34, 87, 7);
Укажите значение элемента А[2].
2
7
15
34
87
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Что выполнит следующий фрагмент программы?
for var i := 1 to n do
write(a[i], ' ');
Ввод элементов массива в строку
Вывод элементов массива в строку
Вывод элементов массива в столбец (по одному в строку)
Вывод элементов массива в столбец (по одному в строку)
3.
FILL IN THE BLANK QUESTION
1 min • 3 pts
Дан фрагмент программы:
·
write (’Введите количество элементов массива:’);
read(n);
for var i:= 1 to n do
…
Введите вместо многоточия строку без пробелов, которая вводит с клавиатуры элементы массива b.
4.
FILL IN THE BLANK QUESTION
1 min • 4 pts
Задан массив x[1..n]. Вписать оператор вместо многоточия без пробелов,
чтобы найти сумму всех элементов массива в переменной s?
s := 0;
for var k := 1 to n do
...
5.
FILL IN THE BLANK QUESTION
1 min • 5 pts
Задан массив x[1..n]. Введите условие вместо многоточия без пробелов, чтобы найти сумму неположительных элементов массива в переменной s?
s := 0;
for var k := 1 to n do
if . . .
then
s := s + x[k];
6.
MULTIPLE CHOICE QUESTION
30 sec • 6 pts
Задан массив x[1..n]. Выберите условие, которое поставить вместо многоточия, чтобы
найти сумму четных элементов массива в переменной s?
s := 0;
for var j:=1 to n do
if ...
then s := s + x[j];
s mod 2 = 0
s div 2 = 0
x[j] mod 2 = 1
x[j] mod 2 = 0
x[j] div 2 = 0
7.
MULTIPLE CHOICE QUESTION
1 min • 7 pts
Задан массив x[1..n]. Выберите фрагмент программы, вычисляющий
произведение положительных элементов массива?
a := 0;
for var j:=1 to n do
if x[j]>0
then a := a + x[j];
a := 0;
for var j:=1 to n do
if x[j]>0
then a := a * x[j];
a := 1;
for var j:=1 to n do
if x[j]>0
then a := a * x[j];
a := 1;
for var j:=1 to n do
if x[j]>=0
then a := a * x[j];
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
JavaScript-01

Quiz
•
12th Grade
15 questions
JavaScript and Graphics

Quiz
•
9th - 12th Grade
14 questions
C++ Обобщение

Quiz
•
10th Grade
5 questions
Массивы. Описание. Заполнение

Quiz
•
9th Grade
12 questions
МАССИВЫ

Quiz
•
10th Grade
9 questions
Массивы

Quiz
•
9th Grade
10 questions
tin 8 bài 4

Quiz
•
6th - 9th Grade
8 questions
Массивы в Python. Часть 2

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th 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
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade