
KT 15P _ TIN 10 -HK2
Authored by Doan Hoa
Education
9th - 12th Grade
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
20 questions
SBMPTN TKPA
Quiz
•
12th Grade
17 questions
Spreadsheet PH 1 Sm 2
Quiz
•
10th Grade
25 questions
ULANGAN HARIAN 1 SEJARAH 2022 HINDU-BUDHA
Quiz
•
10th Grade
20 questions
Bài 2, GDCD 11
Quiz
•
11th Grade
20 questions
Proces
Quiz
•
12th Grade
16 questions
Scholars Bowl JV (Round 3)
Quiz
•
9th - 10th Grade
20 questions
Google Sheet Formulas Functions
Quiz
•
11th - 12th Grade
20 questions
GDCD 12 bài 3
Quiz
•
12th 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