
Bài 20: Câu lệnh lặp for
Quiz
•
Computers
•
1st Grade
•
Hard
Vũ Thị Lành
Used 2+ times
FREE Resource
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Ôn giữa kì 2
Quiz
•
1st Grade
25 questions
TIN HỌC 5 - SÁCH HDTH (ÔN HK2 NĂM 2023-2024)
Quiz
•
1st - 5th Grade
18 questions
Python Bài 1
Quiz
•
1st - 5th Grade
18 questions
Bài 5 Tin 4
Quiz
•
1st - 5th Grade
15 questions
Khối 4_Ôn tập HK1
Quiz
•
1st - 5th Grade
20 questions
Give kids a hand | Scratch Round 2
Quiz
•
1st - 7th Grade
20 questions
TIN HỌC 4 (ÔN HK2) HD
Quiz
•
1st - 5th Grade
15 questions
Tin học lớp 4
Quiz
•
1st Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
18 questions
D189 1st Grade OG 1c Concept 37-38
Quiz
•
1st Grade
20 questions
addition
Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences
Quiz
•
1st - 3rd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Exploring Force and Motion Concepts
Interactive video
•
1st - 5th Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade
5 questions
Sense and Response
Quiz
•
1st Grade