Search Header Logo

自定義函數

Authored by Jimmy Leong

Information Technology (IT)

10th Grade

Used 3+ times

自定義函數
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

我們本節課的主題是甚麼?

自定義函數

判斷指令

循環語句

以上皆非

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

自定義函數的用途主要是??

重複執行相同的動作

輸出文字

輸入整數

減少重複代碼

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

下列哪個是正確的函數定義語法?

function my_func(): print("Hello")

def my_func(): print("Hello")

define my_func(): print("Hello")

func my_func(): print("Hello")

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

左方代碼輸出結果是甚麼?

20, 20

20, 10

10, 10

10, 20

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

以下哪個函數定義是正確的?

def sum(a, b, c,):

return a + b + c

def sum(a b c):

return a + b + c

def sum(a, b, c):

return a + b + c

def sum a, b, c:

return a + b + c

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?