
Ôn tập giữa kì 2_Tin10_THD_2
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Loan Trần
Used 2+ times
FREE Resource
Enhance your content
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
43 questions
HTML
Quiz
•
8th - 10th Grade
40 questions
Prakarya Kelas XI - 2020
Quiz
•
11th Grade
37 questions
Tin 10
Quiz
•
10th Grade
40 questions
C Programming Midterm Review
Quiz
•
11th - 12th Grade
39 questions
HTML basic
Quiz
•
5th - 12th Grade
45 questions
Tin - 12 - ck1
Quiz
•
12th Grade
36 questions
Chapter 3 File Management
Quiz
•
9th - 12th Grade
35 questions
BAITAP
Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
18 questions
Artificial Intelligence and Machine Learning Quiz
Quiz
•
9th Grade
35 questions
Computer Terminology Exercise #1 ( Multiple Choice)
Quiz
•
9th Grade
20 questions
Computer Components Exercise #4 - CTEA
Quiz
•
9th - 12th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade