Кортежи Python

Quiz
•
Computers
•
9th Grade
•
Hard
Ekaterina Koroleva
Used 20+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Из скольких элементов состоит кортеж numbers?
numbers = (3, 5, 7, 9)
4
3
5
0
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Что будет выведено в результате выполнения следующего программного кода?
numbers = (0, 1, 3, 14, 2, 7, 9, 8, 10)
print(numbers)
('0', '1', '3', '14', '2', '7', '9', '8', '10')
[0, 1, 3, 14, 2, 7, 9, 8, 10]
0 1 3 14 2 7 9 8 10
(0, 1, 3, 14, 2, 7, 9, 8, 10)
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Могут ли кортежи в Python содержать значения разных типов данных?
да
нет
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Какие из приведенных ниже инструкций создают кортеж?
values = (1, 2, 3, 4, 5)
values = (1, 'dva', 3.0)
values = [1, 2, 3, 4, 5]
values = (1, )
values = (1)
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Что будет выведено в результате выполнения следующего кода?
colors = ('red', 'green', 'blue')
colors[0] = 'black'
print(colors)
('black', 'green', 'blue')
('red', 'green', 'blue')
произойдет ошибка во время выполнения программы
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Что будет выведено в результате выполнения следующего кода?
12
21
9
произойдет ошибка во время выполнения программы
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что будет выведено в результате выполнения следующего кода?
(1, [17, 3], 4)
(1, [2, 3], 4)
произойдет ошибка во время выполнения программы
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Списки Python

Quiz
•
9th Grade
10 questions
Типы данных, используемые в языке Python

Quiz
•
9th - 12th Grade
11 questions
Проверяем: Условие и Ardublock

Quiz
•
1st - 12th Grade
10 questions
Ввод вывод данных

Quiz
•
6th Grade - University
11 questions
Практикум - вводное тестирование

Quiz
•
9th Grade
10 questions
Модуль Turtle в Python

Quiz
•
9th Grade
10 questions
Операторы ввода и вывода

Quiz
•
8th - 11th Grade
11 questions
Java1

Quiz
•
6th - 11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade
14 questions
Points, Lines, Planes

Quiz
•
9th Grade