
Списки в Python
Authored by Yuliya Brovko
Information Technology (IT)
10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Який модуль необхідно імпортувати для роботи з випадковими числами в Python?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Який з наступних рядків коду правильно додає випадкове число від -10 до 10 до списку spysok?
spysok.add(random.integer(-10,10))
spysok.append(random.randint(-10,10))
spysok.insert(random.range(-10,10))
spysok.put(random.number(-10,10))
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Для чого використовується конструкція spysok=[] у Python?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Що означає range(10) у циклі for i in range(10):?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Яку початкову умову зазвичай встановлюють для змінної s перед обчисленням суми елементів списку?
s=-1
s=0
s=10
s=1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Яка умова використовується для перевірки, чи є елемент списку spysok[nomer] додатнім?
if spysok[nomer] == 0:
if spysok[nomer] > 0:
f spysok[nomer] < 0:
if spysok[nomer] >= 0:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Уявіть, що список spysok містить [2, -3, 0]. Яким буде список після виконання циклу, що змінює знак кожного елемента?
[-2, -3, 0]
[2, 3, 0]
[-2, 3, 0]
[0, -3, 2]
Access all questions and much more by creating a free account
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?