
tin hoc 10 2
Authored by Thảo Phương
Computers
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
44 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 14. Lệnh nào để duyệt từng phần tử của danh sách?
A. for.
B. while – for.
C. for kết hợp với lệnh range().
D. while kết hợp với lệnh range().
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 15. Lệnh xoá một phần tử của một danh sách A có chỉ số i là:
A. list.del(i).
B. A. del(i).
C. del A[i].
D. A. del[i].
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 16. Chương trình sau thực hiện công việc gì?
S = 0
for i in range(len(A)):
if A[i] > 0:
S = S + A[i]
print(S)
A. Duyệt từng phần tử trong A.
B. Tính tổng các phần tử trong A.
C. Tính tổng các phần tử không âm trong A.
D. Tính tổng các phần tử dương trong A.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 17. Toán tử nào dùng để kiểm tra một giá trị có nằm trong danh sách không?
A. in.
B. int.
C. range.
D. append.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 18. Kết quả của chương trình sau là gì?
A = [1, 2, 3, 4, 5, 6, 5]
for k in A:
print(k, end = " ")
A. 1 2 3 4 5 6
B. 1 2 3 4 5 6 5
C. 1 2 3 4 5
D. 2 3 4 5 6 5.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 19. 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?
A. int.
B. while.
C. in range.
D. in.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 20. Giả sử A = [‘a’, ‘b’, ‘c’, ‘d’, 2, 3, 4]. Các biểu thức sau trả về giá trị đúng hay sai?
6 in A; ‘a’ in A
A. True, False.
B. True, False.
C. False, True.
D. False, False.
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
48 questions
STARTER - 1D Array Test
Quiz
•
9th - 12th Grade
46 questions
TIN HOC LƠP 4 HK1
Quiz
•
1st Grade - University
40 questions
AP CSP Code.org Unit 5 Assessment 1 Review
Quiz
•
9th - 12th Grade
39 questions
Dremel Safety Quiz
Quiz
•
9th - 12th Grade
40 questions
Simulasi dan Komunikasi Digital X
Quiz
•
10th Grade
45 questions
Nesne Tabanlı Quiz 3
Quiz
•
10th Grade
40 questions
TIK kelas 7, Penilaian Tengah semester
Quiz
•
7th Grade - University
43 questions
Ôn Tập Kiểm Tra KHTN 7
Quiz
•
1st Grade - University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade