
Bài 20: Câu lệnh lặp for
Quiz
•
Computers
•
1st Grade
•
Practice Problem
•
Hard
Vũ Thị Lành
Used 2+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho các câu lệnh sau, hãy chỉ ra câu lệnh đúng
A. x = 0 for i in range(10): x = x + 1
B. x = 0 for i in range(10): x:= x + 1
C. x = 0 for i in range(10) x = x + 1
D. x:= 0 for i in range(10): x = x + 1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho các câu lệnh sau, hãy chỉ ra câu lệnh đúng
A. x = 0 for i in range(10): x = x + 1
B. x = 0 for i in range(10): x:= x + 1
C. x = 0 for i in range(10) x = x + 1
D. x:= 0 for i in range(10): x = x + 1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Biến chạy trong vòng lặp for i in range(
1.
2.
0.
Tất cả đều sai.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sau khi thực hiện đoạn chương trình trên giá trị của s là
1.
15.
6.
21.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi kết thúc câu lệnh trên lệnh có bao nhiêu chữ 'A' xuất hiện?
10 lần.
1 lần.
5 lần.
Không thực hiện.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn chương trình sau giải bài toán nào?
Tính tổng các số chia hết cho 3 hoặc 5 trong phạm vi từ 1 đến 100.
Tính tổng các số chia hết cho 3 hoặc 5 trong phạm vi từ 1 đến 101.
Tính tổng các số chia hết cho 3 và 5 trong phạm vi từ 1 đến 101.
Tính tổng các số chia hết cho 3 và 5 trong phạm vi từ 1 đến 100.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bạn An thực hiện đoạn chương trình sau nhưng chương trình báo lỗi. Theo em, bạn An sai ở dòng thứ mấy: numbers = [6, 5, 3, 8, 4, 2, 5, 4, 11] sum == 0 ## iterate over the list for val in numbers: sum = sum+val print("The sum is", sum)
A. 4.
B. 3.
C. 2.
D. 5.
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
17 questions
The Internet
Quiz
•
1st Grade
20 questions
Soal VLAN
Quiz
•
1st - 12th Grade
20 questions
Cuestionario Diagnostico
Quiz
•
1st Grade
19 questions
Python. Buscando errores
Quiz
•
1st - 2nd Grade
15 questions
5 клас Повторення розгалуження
Quiz
•
1st Grade
20 questions
Gr. 1 Basic Excel Quiz
Quiz
•
1st Grade
15 questions
Praca z rejestrem systemowym Windows
Quiz
•
1st - 5th Grade
15 questions
Computer Lab Rules
Quiz
•
KG - 8th Grade
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
Discover more resources for Computers
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
10 questions
Christmas/Winter
Quiz
•
KG - 2nd Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
1st - 3rd Grade
10 questions
Christmas Characters
Quiz
•
KG - 3rd Grade
10 questions
Exploring Christmas Math Word Problems
Interactive video
•
1st - 5th Grade
16 questions
Christmas 1st grade
Quiz
•
1st Grade
