Search Header Logo

Câu hỏi về Python

Authored by nghiem trac

Computers

11th Grade

Used 5+ times

Câu hỏi về Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

48 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh for trong Python có cú pháp cơ bản nào sau đây?

for i = 0 to 5:

for i in range(n):

for i=0 in range():

for i range(n):

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Giá trị của biến i lần lượt là ba nhiêu trong lệnh for i in range(3):

1, 2, 3

0, 1, 2

0, 1, 2, 3

1, 2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh while trong Python được sử dụng khi:

Biết trước số lần lặp

Không cần điều kiện dừng

Không biết trước số lần lặp

Không cần sử dụng biến đếm

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Dòng lệnh sau đây sẽ in gì ra màn hình?

1 2 3 4 5

0 1 2 3 4

1 2 3 4

0 1 2 3 4 5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã sau là gì?

1 2 3 4 5

0 1 2 3 4

1 2 3 4

2 3 4 5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã sau là gì?

10

15

5

6

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã sau là gì?

1

2

Lỗi

Lặp vô hạn

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?