
TEST - LẶP FOR - TIN 10
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Thìn Lê
FREE Resource
Enhance your content in a minute
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
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
Already have an account?
Similar Resources on Wayground
11 questions
Creative iMedia: Strengths, Weaknesses and Improvements
Quiz
•
10th Grade
10 questions
CHƯƠNG TRÌNH CON BT1
Quiz
•
10th - 12th Grade
12 questions
BAI 25_TINHOC
Quiz
•
10th Grade
15 questions
Access 2013 - 4(consultas)
Quiz
•
10th Grade
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
10 questions
evaluasi Microsoft Excel
Quiz
•
10th Grade
15 questions
Ôn tập KTGK. Bài 17. Biến và lệnh gán
Quiz
•
10th Grade
15 questions
Mengenal Jendela dan Ikon Microsoft Excel
Quiz
•
7th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
