Python Functions

Python Functions

Assessment

Flashcard

Computers

KG - 8th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

11 questions

Show all answers

1.

FLASHCARD QUESTION

Front

寫出執行有關子程序的指令。
Write the line of code that will call the function.

Back

draw_circle()

2.

FLASHCARD QUESTION

Front

寫出定義有關子程序的指令語句。
Write the line of code that will define the function, draw_coin

Back

def draw_coin():

3.

FLASHCARD QUESTION

Front

「執行」和「定義」哪一個應先編寫? Do you call or define a function first?

Back

定義

4.

FLASHCARD QUESTION

Front

正確重寫此行程式碼!
Rewrite this line of code correctly!

Back

def draw_heart():

5.

FLASHCARD QUESTION

Front

正確重寫此行程式碼!
Rewrite this line of code correctly!

Back

def draw_triangle():

6.

FLASHCARD QUESTION

Front

Rewrite this line of code correctly! (Hint: combine the words 'draw' and 'shape' into one word)

Back

def drawShape():

7.

FLASHCARD QUESTION

Front

在展示的程式碼中,定義了一個子程序。現在編寫程式碼來呼叫該子程序。 In the code given, a function was defined. Now write the code to call the function.

Back

make_dashed_line()

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?