
tin cuối hk2
Authored by Tony Vinh
Arts
10th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
46 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để thêm phần tử vào cuối danh sách ta dùng hàm nào?
append()
pop()
clear()
remove()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây xóa toàn bộ danh sách?
clear()
exit()
remove()
del()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả khi thực hiện chương trình sau?
>>> A = [1, 2, 3, 5]
>>> A. insert(2, 4)
>>> print(A)
1,2,3,4.
1,2,3,4,5.
1,2,4,3,5.
1,2,4,5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xâu "1234%^^%TFRESDRG" có độ dài bằng bao nhiêu?
16
15
17
18
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh sau có lỗi thuộc loại nào?
123ab = {1,2,3)
print(123ab)
Lỗi cú pháp
Lỗi ngoại lệ
Lỗi khác
Không có lỗi
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử chương trình có lệnh nhập dữ liệu sau:
n = int(input("Nhập số nguyên n: "))
Khi chúng ta nhập 1.5 thì chương trình có lỗi ngoại lệ nào?
SyntaxError.
TypeError.
ValueError.
IndexError.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi dòng lệnh thụt vào không thẳng hàng chương trình đưa ra mã lỗi ngoại lệ nào?
ZeroDivisionError.
IndentationError.
TypeError.
SyntaxError.
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?