
BÀI TẬP VÒNG LẶP
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Xuân Đặng
Used 8+ times
FREE Resource
Enhance your content in a minute
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn lệnh sau:
for i in range(5):
print(i)
Trên màn hình i có các giá trị là:
0
1
2
3
4
5
0
1
2
3
4
1
2
3
4
5
1
2
3
4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn lệnh sau:
for i in range(1,5):
print(i)
Trên màn hình i có các giá trị là:
0
1
2
3
4
5
1
2
3
4
5
0
1
2
3
4
1
2
3
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vòng lặp While kết thúc khi nào?
Khi một điều kiện cho trước được thỏa mãn
Khi đủ số vòng lặp
Khi tìm được Output
Tất cả các phương án
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
cho đoạn chương trình sau:
s=0
for i in range(6):
s=s+i
Sau khi thực hiện đoạn chương trình trên giá trị của s là:
1
15
6
21
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình sau:
s=0
for i in range(1,7,2):
s=s+i
Sau khi thực hiện đoạn chương trình trên giá trị của s là:
9
15
6
21
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Tính tống S = 1 + 2 + 3 + … + n + … cho đến khi S>109. Điều kiện nào sau đây cho vòng lặp while là đúng:
while S>=109:
while S =109:
while S <=109:
while S !=109:
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
16 questions
Python programming
Quiz
•
6th - 12th Grade
14 questions
C++ - Loops and Random Numbers
Quiz
•
9th - 12th Grade
22 questions
Steve Jobs
Quiz
•
6th - 12th Grade
21 questions
HTML5 & CSS3 Refresher
Quiz
•
7th - 12th Grade
20 questions
iMovie App Quiz
Quiz
•
6th - 12th Grade
15 questions
Unbound Report Quiz
Quiz
•
9th - 12th Grade
18 questions
PC Component Identification
Quiz
•
6th - 12th Grade
20 questions
Technology Innovations
Quiz
•
5th - 12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
