Search Header Logo

Review Python basic

Authored by Thanh Lê

Computers

University

Used 1+ times

Review Python basic
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

60 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cách nào sau đây là cách hợp lệ để bắt đầu định nghĩa hàm trong Python?

def some_function()

function some_function()

function some_function():

def some_function():

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Chương trình sau in ra kết quả gì?

8

5

21

18

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Chương trình sau in ra kết quả gì?

13

21

5

Không in gì

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Lệnh gọi hàm nào sau đây là đúng?

x=square( )

x=Square(4):

x=square(5)

print(square())

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, để khai báo hàm ta sử dụng từ khóa nào sau đây?

A. procedure

B. function

C. def

D. return

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh return dùng để?

Kết thúc vòng lặp

Trả lại giá trị

Kết thúc vòng lặp và trả lại giá trị

Kết thúc hàm và trả lại giá trị

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chương trình con là:

Một dãy lệnh mô tả một số thao tác nhất định;
Một dãy lệnh mô tả một số thao tác nhất định và có thể được gọi từ nhiều vị trí trong chương trình;
Một dãy lệnh;
Một số câu lệnh thực hiện một nhiệm vụ nào đó;

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?