Python Матрицы

Quiz
•
Computers
•
10th - 11th Grade
•
Medium
Юрий Романов
Used 15+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Какое из следующих значений элемента матрицы будет равным числу 6? Матрица А имеет такой вид:
A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
A[2][3]
A[2][1]
A[1][2]
A[3][2]
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Какое из следующих описаний матрицы вызовет ошибку в Python?
A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
B = [[3, 3, 3]
[4, 4, 4]
[5, 5, 5]]
C = [(1, 2, 4),
(5, 6, 7),
(8, 9, 10)]
D = [2, 3, 4,
3, 3, 3,
4, 5, 6]
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Что будет на выходе из следующего кода на Python?
A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
print(A[1])
[4, 5, 6]
[3, 6, 9]
[1, 4, 7]
[1, 2, 3]
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Что будет на выходе из следующего кода на Python?
A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
print ([A[row][1] for row in (0, 1, 2)])
[7, 8, 9]
[4, 5, 6]
[2, 5, 8]
[1, 4, 7]
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Что будет на выходе из следующего кода на Python?
A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
print([A[i][i] for i in range(len(A))])
[1, 5, 9]
[3, 5, 7]
[4, 5, 6]
[2, 5, 8]
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Что будет на выходе из следующего кода на Python?
l=[[1, 2, 3], [4, 5, 6]]
for i in range(len(l)):
for j in range(len(l[i])):
l[i][j]+=10
print(l)
No output
Error
[[1, 2, 3], [4, 5, 6]]
[[11, 12, 13], [14, 15, 16]]
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Что будет на выходе из следующего кода на Python?
r = [11, 12, 13, 14, 15, 16, 17, 18, 19]
A = [[0, 10, 20],
[30, 40, 50],
[60, 70, 80]]
for row in A:
for col in row:
r.append(col+10)
print(r)
[11, 12, 13, 14, 15, 16, 17, 18, 19, 10, 20, 30, 40, 50, 60, 70, 80, 90]
[10, 20, 30, 40, 50, 60, 70, 80, 90]
[11, 12, 13, 14, 15, 16, 17, 18, 19]
[0, 10, 20, 30, 40, 50, 60, 70, 80]
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
СИСТЕМЫ СЧИСЛЕНИЯ

Quiz
•
10th - 11th Grade
12 questions
Символьные строки, операции со строками - С++

Quiz
•
10th Grade
13 questions
Управление памятью в С++

Quiz
•
9th - 12th Grade
9 questions
тест экз 1 группа

Quiz
•
10th Grade
10 questions
Цикл с параметром

Quiz
•
9th - 12th Grade
15 questions
Unreal 2 модуль

Quiz
•
9th - 12th Grade
14 questions
ОГЭ информатика #1

Quiz
•
9th - 10th Grade
10 questions
5Г Тест по Информатики (30.01)

Quiz
•
10th 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
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