Search Header Logo

Câu hỏi về Python

Authored by Nguyen Dung

Science

University

Used 3+ 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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, từ khóa nào dùng để định nghĩa hàm?

func

define

def

function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nào dùng để lặp qua một dãy trong Python?

repeat

for

while

loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào trả về số phần tử của danh sách?

length()

count()

len()

size()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong vòng lặp for, hàm range(5) trả về?

[1, 2, 3, 4, 5]

[0, 1, 2, 3, 4]

[0, 1, 2, 3, 4, 5]

[1, 2, 3, 4]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào để thoát khỏi vòng lặp ngay lập tức?

stop

end

break

quit

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào bỏ qua phần còn lại của vòng lặp và sang vòng tiếp theo?

pass

skip

continue

next

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của len('Python') là?

5

6

7

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?

Discover more resources for Science