Search Header Logo

BÀI 9 - TH CÂU LỆNH LẶP

Authored by Vũ Thúy

Computers

10th Grade

Used 1+ times

BÀI 9 - TH CÂU LỆNH 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

20 sec • 2 pts

Cho bài toán tính tổng s=1+2+3+...+n. Để giải bài toán trên ta có thể dùng:

Hàm toán học sqrt()

Cấu trúc rẽ nhánh.

Cấu trúc lặp.

Hàm ceil()

2.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Cấu trúc lặp với số lần biết trước là:

for in range(m,n)

for in range(m,n):

while <Điều kiện>:

for in range(n,m)

3.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Cho đoạn lệnh sau

for i in range(5):

print(i)

Trên màn hình i có các giá trị là:

0 1 2 3 4 5

1 2 3 4 5

1 2 3 4

0 1 2 3 4

4.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Cho đoạn chương trình sau:

s=0

for i in range(6):

s=s+i

print(s)

Sau khi thực hiện đoạn chương trình trên giá trị của s sẽ là:

16

15

1

21

5.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Cho đoạn chương trình sau

for i in range(1,10):

print(i)

Trong đoạn chương trình trên vòng lặp được thực hiện bao nhiêu lần:

11

10

9

8

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?