
TEST - LẶP FOR - TIN 10
Authored by Thìn Lê
Computers
10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong NNLT Python, cấu trúc câu lệnh lặp nào sau đây đúng?
for <biến đếm> in range([giá trị đầu], <giá trị cuối>): <lệnh>
for <biến đếm> in ([giá trị đầu], <giá trị cuối>, [bước nhảy]): <lệnh>
for <biến đếm> to range(<giá trị đầu>… <giá trị cuối>): <lệnh>
for <biến đếm> into range([giá trị đầu], <giá trị cuối>): <lệnh>
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong NNLT Python, câu lệnh nào sau đây đúng khi in ra màn hình các số tự nhiên từ 0..10 trên 1 dòng?
for i in range(9): print(i,end='' ")
for i in range(10): print(i,end='' ")
for i in range(11): print(i,end='' ")
for i in range(12): print(i,end='' "')
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho đoạn chương trình sau:
s=0
for i in range(5): s=s+i
Sau khi thực hiện, giá trị của s bằng bao nhiêu?
5
10
0
15
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu lệnh sau cho kết quả là gì?
for i in range(5): print(i,end="")
1234
12345
01234
012345
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu lệnh sau cho kết quả là gì?
for i in range(10):
____if i%2==0: print(i,end='')
02468
13579
2468
246810
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Câu lệnh sau cho kết quả là gì?
for i in range(10):
____if i%2==1: print(i,end='')
02468
13579
246810
1357
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Kết quả của đoạn code sau là gì?
for i in range(1, 6): print(i, end=" ")
0 1 2 3 4 5
1 2 3 4 5 6
1 2 3 4 5
0 1 2 3 4
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
10 questions
Sistema Operativo Android
Quiz
•
9th - 12th Grade
10 questions
Staff CPD Internet Safety and AI Quizizz
Quiz
•
10th Grade
10 questions
Operation System
Quiz
•
10th - 12th Grade
11 questions
P7 - Estructura de control decisión
Quiz
•
1st - 10th Grade
15 questions
Bài 22-Kiểu dữ liệu danh sách
Quiz
•
10th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
11 questions
Programming basics
Quiz
•
10th - 11th Grade
9 questions
Измерение информации
Quiz
•
8th - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade