tái cấu trúc cấu trúc cho trong Python

Quiz
•
Computers
•
11th Grade
•
Hard
THPT Th��nh
Used 38+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kết qủa của đoạn lệnh sau là gì?
x=sum(range(5))
print(x)
4
5
10
15
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Giá trị của a sau khi kết thúc vòng lặp là bao nhiêu:
a=0
for i in range(10,14): a=a+3
9
12
15
18
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Vòng lặp nào trả về kết quả dưới đây?
11111
22222
33333
44444
55555
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(1, 6):
print(str(i) * 5)
for i in range(0, 5):
print(str(i) * 5)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm range() để làm gì?
Tạo ra một dãy số liên tiếp, bắt đầu từ số 0
Tạo ra một dãy số liên tiếp, bắt đầu từ số 1
Dùng để sắp xếp một dãy số theo chiều tăng dần
Dùng để sắp xếp một dãy số theo chiều giảm dần
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp đầy đủ của hàm range()
range(start,stop,step)
range(start,step)
range(stop,step)
range(0,stop,step)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong hàm range, nếu không đặt khoảng cách giữa hai số thì Python sẽ hiểu mặc địch nó bằng:
1
0
2
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm range(101) sẽ tạo ra:
Một dãy số từ 0 đến 100
Một dãy số ngẫu nhiên 101
Một dãy số từ 1 đến 101
101 số ngẫu nhiên
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
XÂU KÍ TỰ

Quiz
•
9th - 12th Grade
10 questions
Bài 1-Thông tin và xử lí thông tin

Quiz
•
10th - 12th Grade
12 questions
Kiểm Tra Cuối Năm Môn Tin Học 5

Quiz
•
5th Grade - University
10 questions
Câu hỏi về thuật toán tìm kiếm tuần tự

Quiz
•
9th Grade - University
10 questions
Excel

Quiz
•
11th - 12th Grade
10 questions
Tập huấn trực tuyến CT Tư duy thời đại số

Quiz
•
1st Grade - Professio...
10 questions
BÀI 11A. SỬ DỤNG HÀM SUMIF

Quiz
•
9th Grade - University
10 questions
Bài 10A: Sử dụng hàm COUNTIF

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade