
Câu hỏi trắc nghiệm Python
Authored by Dư Lươ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
63 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Cho đoạn chương trình: j = 0 for i in range(5): j = j + i print(j) Sau khi thực hiện chương trình giá trị của biến j bằng bao nhiêu?
10.
12.
15.
14.
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Cho đoạn lệnh sau: for i in range(1,10,2): print(i) Trên màn hình i có các giá trị là
1,3,5,7,9.
1,2,3,4,5,6,7,8,9,10.
1,3,5,7,9,10.
1,3,5,7,10.
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Trong Python, đoạn chương trình sau đưa ra kết quả gì? for i in range(10, 0, -1): print(i, '')
10, 9, 8, 7, 6, 5, 4, 3, 2, 1.
Đưa ra 10 dấu cách.
1 2 3 4 5 6 7 8 9 10.
Không đưa ra kết quả gì.
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Lệnh nào in ra màn hình các giá trị sau? 11111 22222 33333 44444 55555
for i in range(1, 6): print(i, i, i, i, i).
for i in range(1, 6): print(str(i)*5).
for i in range(1, 5): print(str(i)*5).
for i in range(0, 5): print(str(i)*5).
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Đoạn chương trình sau giải bài toán nào? t = 0 for i in range(1, 101): if(i % 3 == 0 and i % 5 == 0): t = t + i print(t)
Tính tổng các số chia hết cho 3 hoặc 5 trong phạm vi từ 1 đến 100.
Tính tổng các số chia hết cho 3 hoặc 5 trong phạm vi từ 1 đến 101.
Tính tổng các số chia hết cho 3 và 5 trong phạm vi từ 1 đến 101.
Tính tổng các số chia hết cho 3 và 5 trong phạm vi từ 1 đến 100.
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Điều kiện trong câu lệnh while là biểu thức dạng dữ liệu gì?
str.
int.
bool.
float.
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Câu lệnh sau giải bài toán nào: while M != N: if M > N: M = M - N else: N = N - M
Tìm UCLN của M và N.
Tìm BCNN của M và N.
Tìm hiệu nhỏ nhất của M và N.
Tìm hiệu lớn nhất của M và N.
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
59 questions
Python CH1-3 Review
Quiz
•
8th Grade - Professio...
65 questions
All About ICT
Quiz
•
3rd Grade - University
68 questions
AP CSP AP Test Study
Quiz
•
9th - 12th Grade
66 questions
Weeks 1-6 Vocab
Quiz
•
9th - 12th Grade
68 questions
computer networking
Quiz
•
10th Grade
60 questions
ÔN GKII Tin 10
Quiz
•
10th Grade
66 questions
OCR Computer Science Paper 2
Quiz
•
10th Grade
65 questions
Kiểm tra kiến thức Python
Quiz
•
10th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade