
Ôn tập giữa kì 2_Tin10_THD_2

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Loan Trần
Used 2+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 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:
1, if A[i] < 0:
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Lệnh nào sau đây xoá toàn bộ danh sách?
clear()
exit()
remove()
del()
3.
MULTIPLE CHOICE QUESTION
1 min • 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.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Sau khi thực hiện các câu lệnh sau, danh sách A như thế nào?
>>> A = [1, 2, 3, 4, 5]
>>> A. remove(2)
>>> print(A)
[1, 2, 3, 4]
[1, 2, 3, 4, 5]
[2, 3, 4, 5]
[1, 3, 4, 5]
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Phần tử thứ bao nhiêu trong danh sách A bị xoá?
>>> A = [10, 20, 3, 30, 20, 30, 20, 6, 3, 2, 8, 9]
>>> A. remove(3)
>>> print(A)
2
9
3
8
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Toán tử nào dùng để kiểm tra một giá trị có nằm trong danh sách không?
in
range
int
append
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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 = " ")
1 2 3 4 5 6 5
1 2 3 4 5 6
1 2 3 4 5
2 3 4 5 6
Create a free account and access millions of resources
Similar Resources on Wayground
39 questions
THI TIN HỌC 11

Quiz
•
9th - 12th Grade
44 questions
Câu hỏi về xâu kí tự trong Python

Quiz
•
10th Grade - University
37 questions
Ôn Tập Giữa HK2 Tin 10 Phần 2

Quiz
•
10th Grade
40 questions
TIN HỌC 10 - ÔN TẬP CUỐI HỌC KÌ 2

Quiz
•
10th Grade
44 questions
Kiến thức về Python

Quiz
•
10th Grade
42 questions
ÔN TẬP PYTHON GKII - TIN HỌC 10

Quiz
•
10th Grade
35 questions
ĐỀ CƯƠNG THI GIỮA KỲ II TIN 10

Quiz
•
10th Grade
40 questions
tin gk2

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
CTEA Computer Vocab Terms #1

Quiz
•
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