Luyện tập Câu lệnh for

Luyện tập Câu lệnh for

10th Grade

15 Qs

quiz-placeholder

Similar activities

Document Formatting

Document Formatting

10th Grade

20 Qs

Quiz Administrasi Perkantoran

Quiz Administrasi Perkantoran

9th Grade - University

20 Qs

Ôn tập HKI Công nghệ - Khối 4

Ôn tập HKI Công nghệ - Khối 4

4th Grade - University

10 Qs

Uji Pemahaman Komputasi

Uji Pemahaman Komputasi

10th Grade

16 Qs

Latihan Microsoft Excel_1 Kelas X

Latihan Microsoft Excel_1 Kelas X

10th Grade

20 Qs

Komputer jaringan dan Internet

Komputer jaringan dan Internet

10th Grade

20 Qs

7A-KIỂM TRA THƯỜNG XUYÊN 2

7A-KIỂM TRA THƯỜNG XUYÊN 2

7th Grade - University

20 Qs

QUIS SISTEM KOMPUTER/OS/SISTEM OPERASI

QUIS SISTEM KOMPUTER/OS/SISTEM OPERASI

10th Grade

10 Qs

Luyện tập Câu lệnh for

Luyện tập Câu lệnh for

Assessment

Quiz

Information Technology (IT)

10th Grade

Practice Problem

Medium

Created by

TRANG LINH

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Bạn muốn in dòng chữ “Chúc mừng sinh nhật!” 10 lần. Câu lệnh for phù hợp là?

for i in range(1, 10): print("Chúc mừng sinh nhật!")

for i in range(10): print("Chúc mừng sinh nhật!")

for i in 10:

print("Chúc mừng sinh nhật!")

for print("Chúc mừng sinh nhật!") in range(10):

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Để in bảng cửu chương 9, từ 9x1 đến 9x10, bạn viết:

for i in range(1, 11): print(i * 9)

for i in range(1, 10): print(9 * i)

for i in range(11): print(9 x i)

for i = 1 to 10:

print(9 * i)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Trong hoạt động thể dục, nếu bạn nhảy dây 20 cái, ta dùng range thế nào?

range(1, 20)

range(1, 21)

range(20, 1)

range(0, 20, 2)

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Câu lệnh nào sau đây in ra các số chẵn từ 2 đến 10?

for i in range(2, 11, 2): print(i)

for i in range(2, 10): print(i)

for i in range(0, 10): print(i + 2)

for i in range(2, 11): if i % 2 == 0: print(i)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Khi dọn vệ sinh lớp học, bạn lau 4 cửa sổ. Lệnh for phù hợp:

for i in range(1, 4): print("Lau cửa sổ", i)

for i in range(4): print("Lau cửa sổ", i+1)

for i in range(5): print("Lau cửa sổ", i)

for i in range(1, 5): print("Lau cửa sổ")

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Đoạn lệnh sau có lỗi gì?

for i in range(1, 6)

print(i)

Thiếu dấu ":"

Sai indent

Dư khoảng trắng

Không lỗi

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Dùng for để in từ “Hello” 5 lần:

for i in range(0, 5): print("Hello")

for i in range(5): print(i)

for i in print("Hello")

print("Hello") * 5

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?