
Câu hỏi về mảng trong Python
Quiz
•
History
•
11th Grade
•
Practice Problem
•
Easy
Võ Khôi
Used 1+ times
FREE Resource
Enhance your content in a minute
72 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi sử dụng danh sách thay cho mảng trong Python, lợi ích chính là gì?
Danh sách không có giới hạn kích thước.
Danh sách linh hoạt hơn và có nhiều phương thức hỗ trợ.
Danh sách chỉ chứa các phần tử kiểu số nguyên.
Danh sách lưu trữ các phần tử không liên tục trong bộ nhớ.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong ví dụ array('f', [7.5, 5.0, 8.5, 4.5, 5.0]), kiểu của các phần tử trong mảng là gì?
Số nguyên
Chuỗi
Số thực
Boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào dùng để tính tổng các phần tử trong một mảng số thực mangThuc?
sum(mangThuc)
total(mangThuc)
average(mangThuc)
summation(mangThuc)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để truy cập một phần tử trong mảng hai chiều, cần phải biết:
Chỉ số hàng và cột của phần tử đó
Chỉ số hàng của phần tử đó
Chỉ số cột của phần tử đó
Kích thước của mảng
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, kiểu dữ liệu nào có thể được sử dụng để tạo mảng hai chiều?
Tuple
Dictionary
List
Set
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi khai báo mảng hai chiều int array[5][7], số phần tử tối đa mà mảng có thể lưu trữ là:
12
35
70
75
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, nếu muốn khởi tạo một mảng hai chiều với 3 hàng và 4 cột, mã nào là đúng?
matrix = [3][4]
matrix = [[0]*4]*3
matrix = [[4]*3]
matrix = [0*4][0*3]
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
75 questions
Ôn Sử
Quiz
•
9th - 12th Grade
71 questions
lsuuu
Quiz
•
11th Grade
69 questions
VỊ TRÍ VÀ TẦM QUAN TRỌNG CỦA BIỂN ĐÔNG
Quiz
•
11th Grade
74 questions
Câu hỏi về lịch sử Việt Nam
Quiz
•
11th Grade
75 questions
Câu hỏi về cách mạng tư sản
Quiz
•
11th Grade
77 questions
HSG BÀI 4- SU PHAT TRIEN CNXH
Quiz
•
11th Grade
70 questions
lịch sử 11
Quiz
•
11th Grade
67 questions
sử cuối kì II
Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for History
16 questions
Students of Civics Unit 2: The Constitution
Quiz
•
7th - 11th Grade
38 questions
1920s & 1930s Test Review
Quiz
•
11th Grade
6 questions
Day 27 USH Do Now - New Deal
Quiz
•
11th Grade
20 questions
Students of Civics Unit 6: The Legislative Branch
Quiz
•
7th - 11th Grade
6 questions
Day 26 USH Do Now - Life in the Depression
Quiz
•
11th Grade
26 questions
AP World Unit 3 Land Based Empires
Quiz
•
9th - 12th Grade
36 questions
Unit 6: Great Depression and New Deal
Quiz
•
11th Grade
54 questions
Progressive Movement and Reform Era Worksheet
Quiz
•
11th Grade
