bài 26

bài 26

10th Grade

15 Qs

quiz-placeholder

Similar activities

Python bài 10

Python bài 10

9th - 12th Grade

10 Qs

Tin 9 Bài 8. Hàm SUMIF

Tin 9 Bài 8. Hàm SUMIF

9th Grade - University

10 Qs

Quiz di Coding su Python

Quiz di Coding su Python

9th - 12th Grade

10 Qs

variabel c++

variabel c++

10th Grade

20 Qs

Funções, Tuplas e dicionário (Hadrian/Francisco)

Funções, Tuplas e dicionário (Hadrian/Francisco)

10th Grade - University

20 Qs

Մաքուր կոդ

Մաքուր կոդ

9th - 12th Grade

10 Qs

Pemrograman Python untuk Kelas X SMK

Pemrograman Python untuk Kelas X SMK

10th Grade

10 Qs

Вопросы по Python

Вопросы по Python

10th Grade

15 Qs

bài 26

bài 26

Assessment

Quiz

Information Technology (IT)

10th Grade

Medium

Created by

Thiên Trần

Used 9+ times

FREE Resource

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):

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?