
Câu hỏi về danh sách và lệnh Python
Authored by Thy Ka
English
Professional Development
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
98 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ngoài việc kết hợp lệnh for và range để duyệt phần tử trong danh sách, có thể sử dụng câu lệnh nào khác?
int.
while.
in range.
in.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử A = ['a', 'b', 'c', 'd', 2, 3, 4]. Các biểu thức sau trả về giá trị đúng hay sai?
True, False.
True, False.
False, True.
False, False.
3.
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?
True.
False.
Không xác định.
Câu lệnh bị lỗi.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây xoá toàn bộ danh sách?
clear().
exit().
remove().
del().
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào sau đây là sai?
Sau khi thực hiện lệnh clear(), danh sách gốc trở thành rỗng.
Lệnh remove () có chức năng xoá một phần tử có giá trị cho trước.
Lệnh remove() xoá tất cả các phần tử có giá trị cho trước trong list.
Clear() có tác dụng xoá toàn bộ các danh sách.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Số phát biểu đúng là:
1). Sau khi thực hiện lệnh clear(), các phần tử trả về giá trị 0.
2). Lệnh remove trả về giá trị False nếu không có trong danh sách.
3). remove() có tác dụng xoá một phần tử có giá trị cho trước trong list.
4). Lệnh remove() có tác dụng xoá một phần tử ở vị trí cho trước.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sau khi thực hiện các câu lệnh sau, mảng A như thế nào?
[1, 2, 3, 4].
[2,
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
101 questions
ÔN TẬP T.ANH (2)
Quiz
•
Professional Development
93 questions
Kiến thức mạng máy tính
Quiz
•
Professional Development
100 questions
part2-week1
Quiz
•
Professional Development
95 questions
(TOCGTI) Test 1 - Passage 1
Quiz
•
Professional Development
100 questions
Câu 201 - 300
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for English
15 questions
LOTE_SPN2 5WEEK3 Day 2 Itinerary
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
42 questions
LOTE_SPN2 5WEEK2 Day 4 We They Actividad 3
Quiz
•
Professional Development
6 questions
Copy of G5_U6_L3_22-23
Lesson
•
KG - Professional Dev...
20 questions
Employability Skills
Quiz
•
Professional Development