Để thêm phần tử vào cuối danh sách ta dùng hàm nào?

tin cuối hk2

Quiz
•
Arts
•
10th Grade
•
Medium
Tony Vinh
Used 4+ times
FREE Resource
46 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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.
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
Art 1 Final Exam Review - 1st Semester

Quiz
•
9th - 12th Grade
46 questions
AM Bhs. Arab 2024

Quiz
•
9th - 12th Grade
45 questions
P5 9. Alat dan Teknik Pahat

Quiz
•
9th Grade - University
50 questions
SOAL TEORI A (KONTES BIG BIKE)

Quiz
•
1st Grade - Professio...
50 questions
Bài 15 lớp 10 CD

Quiz
•
9th - 12th Grade
45 questions
Ssuw

Quiz
•
10th Grade
50 questions
trafo

Quiz
•
1st Grade - University
41 questions
Craft & Design Final

Quiz
•
10th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade