
TRẮC NGHIỆM TIN HỌC 11 EXAM 2
Authored by Bằng Thanh
Computers
KG
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để khai báo danh sách a rỗng, phương án nào sau đây đúng?
a ==[]
a= 0
a = []
a = [0]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để xóa phần tử thứ 2 trong danh sách a ta dùng lệnh:
del(a[2])
del(a[1])
remove(a[2])
remove(a[1])
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn lệnh sau:
a=[7,3,8,1,9]
a.remove(3)
Danh sách a thu được là:
[7,8,1,9]
[7,3,1,9]
[7,3,8,9]
Báo lỗi
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để xóa 2 phần tử đầu tiên trong danh sách a, phương án nào sau đây đúng?
del(a[1:1])
del(a[1:2])
del(a[0:1])
del(a[0:2])
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để xuất phần tử đầu tiên trong danh sách a, phương án nào sau đây đúng?
print(a[1])
print(a[0])
print(a0)
print(a1)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn lệnh sau:
a=[5,7,3,4,1]
a.insert(2,9)
Danh sách a thu được là:
[5,9,7,3,4,1]
[5,7,3,4,1,2,9]
[5,7,9,3,4,1]
[2,9,5,7,3,4,1]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử A = [5, 6, 7, 8, 9, 10, 11, 12]. Biểu thức sau trả về giá trị đúng hay sai?
(3 + 4 – 5 + 18 // 4) in A
True
Không xác định
False
Câu lệnh bị lỗi
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?