Search Header Logo

Cấu trúc lặp

Authored by nguyen ha

Information Technology (IT)

10th Grade

Cấu trúc lặp
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Câu lệnh lặp với số lần biết trước trong Python được biểu diễn dưới dạng

for biến chạy in range(m, n)

for biến chạy inside range(m, n)

for biến chạy in rang(m, n)

for biến chạy in range[m, n]

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Xét cấu trúc lặp với số lần biết trước được biểu diễn bằng Python, khi m = 0, ta có thể viết gọn hàm range(m, n) thành

range(m)

range(n)

range(0, m)

rang(m)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Để in ra màn hình các số tự nhiên từ 1 đến 45, ta dùng câu lệnh nào sau đây:

for stt in range(1, 45)

print (i)

for stt in range(1, 46)

print (i)

for stt in range (0, 45)

print (i)

for stt in range (0, 46)

print (i)

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Đoạn lệnh sau có mấy lỗi:

1

2

3

4

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Cấu trúc lặp với số lần lặp không biết trước được thể hiện bằng câu lệnh Python nào sau đây:

for biến chạy in range (m, n)

while <điều kiện>:

Nhóm lệnh

while <điều kiện>

Nhóm lệnh

while biến chạy:

Nhóm lệnh

Access all questions and much more by creating a free account

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

Already have an account?