
tin haodepzai
Quiz
•
Specialty
•
9th - 12th Grade
•
Easy
LQ Mobile
Used 1+ times
FREE Resource
48 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 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)
Tính tổng các phần tử trong A
Tính tổng các phần tử dương trong A
Duyệt từng phần tử trong A
Tính tổng các phần âm trong A
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để khởi tạo danh sách b có 5 phần tử 1, 2, 3, 4, 5 ta dùng cú pháp:
b = 1, 2, 3, 4, 5
b = (1, 2, 3, 4, 5)
b = [1, 2, 3, 4, 5]
b = [1,5]
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để kiểm tra một giá trị có nằm trong danh sách hay không, ta dùng cú pháp nào sau đây?
<danh sách> in <giá trị>
<giá trị> in <danh sách>
<giá trị> on <danh sách>
<giá trị> insert <danh sách>
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kết quả của chương trình sau là bao nhiêu?
>>> s = “123456”
>>> print(s[3])
‘4’
‘5’
‘3’
‘2’
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Lệnh nào sau đây dùng để tách xâu
join()
split()
copy()
remove()
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kết quả của các câu lệnh sau là gì?
s = "123456abcdde "
print(s.find("34"))
0.
2.
1.
3
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Đoạn chương trình sau sẽ in ra số nào? >>> def f(a,b):
t = a - b
return t*a*b
>>> f(5,2)
10
35.
30
20
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
51 questions
numbers 3-5-8-9-10
Quiz
•
1st Grade - University
50 questions
ÔN NGHỀ
Quiz
•
12th Grade
50 questions
USP Informatika Kelas XII 2023/2024
Quiz
•
12th Grade
43 questions
Bài sinh học 45 46
Quiz
•
11th Grade
43 questions
Câu hỏi về Cách mạng công nghiệp
Quiz
•
10th Grade
53 questions
TỔ CHỨC LÃNH THỔ NÔNG NGHIỆP
Quiz
•
10th Grade
45 questions
TES BAB 16
Quiz
•
9th - 12th Grade
50 questions
bài 29
Quiz
•
2nd Grade - University
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