Search Header Logo

bài 26

Authored by Thiên Trần

Information Technology (IT)

10th Grade

Used 9+ times

bài 26
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

30 sec • 1 pt

Từ khóa nào dùng để khai báo hàm trong Python?

function
define
def
func

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu nào sau đây là một định nghĩa hàm hợp lệ trong Python?

function cong(a, b):
def cong(a, b):
cong = function(a, b):
define cong(a, b):

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Giá trị trả về của đoạn mã sau là bao nhiêu?

def tru(a, b):

return a - b

print(tru(10, 4))

6
-6
14
10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào sau đây dùng để gọi hàm có tên là `giai_thua`?

giai_thua
def giai_thua()
giai_thua()
run giai_thua()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Điều gì xảy ra nếu không có lệnh `return` trong hàm?

Hàm sẽ bị lỗi
Hàm sẽ trả về None
Hàm vẫn hoạt động nhưng không thể gọi
Hàm không thể in ra kết quả

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Kết quả của `luy_thua(3)` là gì?

def luy_thua(x):

return x * x

3
6
9
27

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đoạn mã nào sau đây định nghĩa hàm không có tham số?

def hien_thi(name):
def hien_thi():
def hien_thi(name, age):
def hien_thi(*args):

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?