KT 15P _ TIN 10 -HK2
Quiz
•
Education
•
9th - 12th Grade
•
Practice Problem
•
Hard
Doan Hoa
Used 10+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Biến chạy i trong vòng lặp
for i in range(n)
tăng lên mấy đơn vị sau mỗi lần lặp?
1
2
tuỳ theo giá trị n
không tăng
2.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Câu lệnh for sau đây thực hiện bao nhiêu lần?
>>>for i in range(10):
x = x + 1
9
10
1
x lần
Answer explanation
range (n): thực hiện n lần (0-> n-1)
vậy nên:
range(10): thực hiện 10 lần (0-9)
3.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Trong câu lệnh lặp:
>>> k=0
>>> for k in range(10):
k = k + 2
>>> print(k)
Khi kết thúc câu lệnh trên, câu lệnh print(k) được thực hiện bao nhiêu lần?
1
10
9
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Trong câu lệnh lặp:
>>> k=0
>>> for k in range(10):
k = k + 2
print(k)
Khi kết thúc câu lệnh trên, câu lệnh print(k) được thực hiện bao nhiêu lần?
1
10
9
5
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Cho đoạn chương trình:
>>> k = 0
>>> for k in range(2,5):
k = k + i
>>> print(k)
Vòng lặp for thực hiện bao nhiêu lần?
5
4
3
2
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Cho biết kết quả khi chạy đoạn chương trình sau:
>>> s = 0
>>> for i in range(3):
s = s+i
>>>print(s)
0
3
6
đáp án khác
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Cho biết kết quả khi chạy đoạn chương trình sau:
>>> s = 0
>>> for i in range(3):
s = s+ 2 *i
>>>print(s)
6
12
2
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
20 questions
SIKLUS AKUNTANSI PERUSAHAAN JASA
Quiz
•
12th Grade
15 questions
Ôn tập thao tác Tinkdercad
Quiz
•
10th Grade - University
20 questions
SINH HOẠT LỚP TUẦN 14
Quiz
•
9th - 12th Grade
20 questions
COST AND REVENUE
Quiz
•
11th Grade
20 questions
UH TEKS BIOGRAFI KELAS X
Quiz
•
9th - 12th Grade
20 questions
RANGKING 1 LITERASI NUMERASI, BAHASA DAN SAINS UMUM
Quiz
•
9th - 12th Grade
20 questions
ANKEN
Quiz
•
11th Grade
15 questions
Programming basics
Quiz
•
12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd 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
