
ÔN TẬP HK2 L3 K10

Quiz
•
Computers
•
10th Grade
•
Medium

Tú Trinh
Used 4+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hoàn thiện chương trình tính tích các phần tử dương trong danh sách A.
>>> S = (…)
>>> for i in range(len(A)):
(…)
S = S * A[i]
>>> print(S)
1, if A[i] > 0:.
0, if A[i] > 0:.
1, if A[i] >= 0.
0, if A[i] > 0.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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)
Duyệt từng phần tử trong A.
Tính tổng các phần tử trong A.
Tính tổng các phần tử không âm trong A.
Tính tổng các phần tử dương trong A
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh xoá một phần tử của một danh sách A có chỉ số i là:
list.del(i).
A. del(i).
del A[i].
A. del[i].
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào để duyệt từng phần tử của danh sách?
for.
while – for.
for kết hợp với lệnh range().
while kết hợp với lệnh range().
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho arr = [‘xuan’, ‘hạ’, 1. 4, ‘đông’, ‘3’, 4.5, 7]. Đâu là giá trị của arr[3]?
đông.
hạ.
3.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là gì?
A = [2, 3, 5, "python", 6]
A.append(4)
A.append(2)
A.append("x")
del(A[2])
print(len(A))
5
6
7
8
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Danh sách A sẽ như thế nào sau các lệnh sau?
>>> A = [2, 3, 5, 6]
>>> A. append(4)
>>> del (A[2])
2, 3, 4, 5, 6, 4.
2, 3, 4, 5, 6.
2, 4, 5, 6.
2, 3, 6, 4.
Create a free account and access millions of resources
Similar Resources on Wayground
27 questions
TIN 10 KNTT ÔN TẬP GK2 BÀI 24-25

Quiz
•
10th Grade
30 questions
Tin đúng sai

Quiz
•
10th Grade
28 questions
ôn thi cuối kì 2

Quiz
•
10th Grade
25 questions
CSS

Quiz
•
9th Grade - University
33 questions
HTML5 и CSS

Quiz
•
8th - 11th Grade
25 questions
Python for Absolute Beginners

Quiz
•
8th - 12th Grade
25 questions
HTML QUIZ #4

Quiz
•
10th Grade
25 questions
ÔN TẬP GIỮA KỲ 2 TIN 10 KNTT

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade