Search Header Logo

ÔN TIN GK 2

Authored by Le Nhung

Mathematics

University

Used 6+ times

ÔN TIN GK 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Câu 1: Trong Python, cú pháp câu lệnh lặp nào sau đây đúng:

A. for bien_chay in range(m,n):<lệnh>

B. for bien_chay in(m,n):<lệnh>

C. for bien_chay in range(m…n):<lệnh>

D. for bien_chay in range(m,n) <lệnh>

2.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Câu 2. Trong Python, cú pháp câu lệnh lặp nào sau đây đúng:

A. while<điều kiện> in <lệnh>

B. while<điều kiện> <lệnh>

C. while<điều kiện>: <lệnh>

D. while<điều kiện>in range: <lệnh>

3.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Câu 3. Trong Python, cú pháp câu lệnh lặp nào sau đây đúng:

A. for dem in range(1,5) print(‘Hello’)

B. for dem in range(1;5): print(‘Hello’)

C. for dem in range(1…5): print(‘Hello’)

D. for dem in range(1,5): print(‘Hello’)

4.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Câu 4. Câu lệnh sau cho kết quả là gì?

for i in range(10):

    if i%2==1: print(i,end='')

A. 02468                   

B. 13579                 

C. 246810            

D. 1357

5.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Câu 5. Trong Python cho đoạn lệnh sau:

i=3

while i<=9:

         print(i)

         i=i+3

Chọn đáp án là kết quả hiển thị trên màn hình?

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Câu 6. Trong Python, cho lệnh sau: for i in range(10): print(2*i)

Chọn đáp án là kết quả hiển thị trên màn hình?

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Media Image

Câu 7: Số lỗi có trong chương trình sau là:

A. 2

B. 3

C. 4

D. 5

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?