
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
63 questions
GCSE Computer Science - Computer Systems
Quiz
•
10th - 11th Grade
60 questions
Analisis Data
Quiz
•
5th Grade - University
68 questions
NGHỀ :D
Quiz
•
9th - 12th Grade
60 questions
ULANGAN AKHIR INFORMATIKA KELAS X TKJ FASE E
Quiz
•
10th Grade
59 questions
Year 8 - Term 2.2 Quiz
Quiz
•
8th Grade - University
60 questions
QUIZBEE TLE 7 INDUSTRIAL ARTS
Quiz
•
7th Grade - University
60 questions
REMIDI PEMROGRAMAN DASAR
Quiz
•
10th Grade
63 questions
Lý 1. nopro
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
14 questions
[AP CSP] JavaScript Programming Quiz
Quiz
•
9th - 12th Grade
10 questions
Understanding Computers and Computer Engineering
Interactive video
•
7th - 12th Grade
37 questions
Python - Tuples, Lists, and List Methods
Quiz
•
9th - 12th Grade