
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
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for English
44 questions
Would you rather...
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
12 questions
Mardi Gras Trivia
Quiz
•
Professional Development
14 questions
Valentine's Day Trivia!
Quiz
•
Professional Development
7 questions
Copy of G5_U5_L14_22-23
Lesson
•
KG - Professional Dev...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development