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
15 questions
Python

Quiz
•
10th Grade
10 questions
Javascript Variables

Quiz
•
10th Grade
11 questions
Variables Python

Quiz
•
9th Grade
15 questions
THỬ THÁCH VỚI CHƯƠNG TRÌNH CON

Quiz
•
11th Grade
14 questions
Многомерность массивов

Quiz
•
10th Grade
10 questions
Ciência de Dados - Probabilidade e Variáveis Aleatórias II

Quiz
•
12th Grade
10 questions
Review Kotlin Day 1

Quiz
•
9th - 12th Grade
10 questions
Advanced Java Study Guide

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade