
TEST - BÀI 22 KIỂU DỮ LIỆU DANH SÁCH
Authored by Thìn Lê
Computers
10th Grade
Used 3+ 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
Chọn phát biểu đúng khi nói về dữ liệu kiểu Danh sách(List) trong Python.
Dữ liệu kiểu Danh sách là tập hợp các phần tử và mọi phần tử có cùng một kiểu dữ liệu.
Dữ liệu kiểu Danh sách là tập hợp các phần tử và mỗi một phần tử trong Danh sách có thể có các kiểu dữ liệu khác nhau.
Dữ liệu kiểu Danh sách là tập hợp các phần tử và mọi phần tử có cùng một kiểu dữ liệu số nguyên.
Dữ liệu kiểu Danh sách là tập hợp các phần tử và mọi phần tử có cùng một kiểu dữ liệu số thực.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách khai báo biến Danh sách sau đây, cách nào sai?
ls = [1, 2, 3]
ls = []
ls = ['0', 1 , 'Tin học']
ls = list(3)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho khai báo Danh sách sau:
A = [3, 4, 5, 6, 7, 8, 9]
Để in giá trị phần tử thứ 2 của Danh sách A ra màn hình ta viết:
print(A[2])
print(A[1])
print(A[3])
print(A[0])
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức nào sau đây dùng để thêm phần tử vào list trong python?
abs()
link()
append()
add()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Danh sách A sẽ có các giá trị nào khi thực hiện các các lệnh?
>>> A = [2, 3, 5, 6]
>>> A. append(4)
>>> del (A[2])
2, 3, 4, 5, 6, 4.
2, 3, 4, 5, 6.
2, 4, 5, 6.
2, 3, 6, 4.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là gì?
5
6
7
8
Answer explanation
Hàm len() tính số phần tử trong danh sách A. Ban đầu số phần tử của A là 5 sau 3 lệnh append() và 1 lệnh del số phần tử là 5 + 3 -1 = 7.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho arr = [‘xuân’, ‘hạ’, 1. 4, ‘đông’, ‘3’, 4.5, 7].
Đâu là giá trị của arr[3]?
1.4
'đông'
'xuân'
'hạ'
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?
Similar Resources on Wayground
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU
Quiz
•
1st - 12th Grade
10 questions
Bài toán và thuật toán
Quiz
•
10th Grade
15 questions
Internet
Quiz
•
10th Grade
10 questions
TEST Bài 1_K10_Sách KNTT
Quiz
•
10th Grade
10 questions
Bài 21. Mạng thông tin toàn cầu Internet
Quiz
•
1st - 10th Grade
10 questions
KIỂM TRA TRẮC NGHIỆM TIN 10
Quiz
•
10th Grade
10 questions
Tìm hiểu thiết kế
Quiz
•
5th Grade - University
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
14 questions
[AP CSP] JavaScript Programming Quiz
Quiz
•
9th - 12th Grade
10 questions
Understanding Computers and Computer Engineering
Interactive video
•
7th - 12th Grade
37 questions
Python - Tuples, Lists, and List Methods
Quiz
•
9th - 12th Grade