
Cấu trúc lặp (phần 1)
Authored by Huynh Nga
Computers
3rd Grade - University
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vòng lặp for 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
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chọn đáp án đúng nhất khi nói về các phần tử trong hàm range:
Cùng kiểu dữ liệu với nhau
Có thể khác kiểu dữ liệu nhau
Chỉ cần khác với kiểu dữ liệu giá trị đầu
Bắt buộc phải cùng kiểu dữ liệu số nguyên
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đối tượng dưới đây thuộc kiểu dữ liệu nào?
L = [1, 23, 'hello', 1]
list
int
float
bool
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hãy cho biết giá trị của đoạn chương trình sau:
colors=['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet']
print(colors[2])
orange
indigo
blue
yellow
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Vòng lặp nào trả về kết quả dưới đây?
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5
for i in range(1,6): print(i, i, i , i, i)
for i in range(1,5): print(str(i) * 5)
for i in range(0,6): print(i, i, i, i, i)
for i in range(0,5): print(str(i) * 5)
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Điền phần còn thiếu trong dấu ba chấm ... trong đoạn code để được output dưới đây:
55555
44444
33333
22222
11111
for i in range(5, 0, ...):
print(str(i)*5)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chọn phương án đúng nhất.
Lệnh lặp for được sử dụng khi:
Lặp với số lần chưa biết trước
Lặp với số lần có thể biết trước
Lặp với số lần biết trước
Lặp với số lần không bao giờ biết trước
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
10 questions
LOGO LOP 4
Quiz
•
4th - 5th Grade
10 questions
Ôn lại Paint 5
Quiz
•
1st - 5th Grade
9 questions
TIN HỌC- LỚP 4- ôn HK
Quiz
•
4th Grade
10 questions
Scratch 2 quiz!
Quiz
•
4th Grade
15 questions
THQT_Khoi7_Chude1_L2
Quiz
•
6th - 8th Grade
10 questions
Cybersecurity Quiz
Quiz
•
12th Grade
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU
Quiz
•
1st - 12th Grade
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Navigating Digital Citizenship and Online Safety
Interactive video
•
6th - 10th Grade
10 questions
Practice Typing
Quiz
•
8th Grade
20 questions
Computer / Internet Companies
Quiz
•
9th Grade
10 questions
Exploring the Basics of Google Sheets
Interactive video
•
9th Grade
10 questions
Exponent Rules
Quiz
•
9th - 12th Grade
20 questions
JavaScript - Karel
Quiz
•
9th - 10th Grade