Functions and Methods Review

Functions and Methods Review

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

N5 CS SDD - Testing and Errors Quiz

N5 CS SDD - Testing and Errors Quiz

12th Grade

10 Qs

Code.org Unit 5 Vocab Quiz 1

Code.org Unit 5 Vocab Quiz 1

9th - 12th Grade

10 Qs

Block Programming - Quiz 4 -  Batch 3

Block Programming - Quiz 4 - Batch 3

2nd - 9th Grade

10 Qs

WK 9 variable

WK 9 variable

12th Grade

10 Qs

HTML & Java

HTML & Java

9th Grade

12 Qs

Python Variables

Python Variables

7th - 12th Grade

10 Qs

Python - Flow control

Python - Flow control

11th Grade

10 Qs

Python If Statements - and or not

Python If Statements - and or not

11th Grade

10 Qs

Functions and Methods Review

Functions and Methods Review

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Paula Hamel

Used 4+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code snippet shows the body of the function highlighted?

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code snippet shows the function's argument?

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code snippet highlights the function header?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code snippet highlights the function name?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which highlights a reserved word that identifies the results that will be passed back to the caller of the function?

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the details of the function. What identifies the part of the code that executes whenever the function is called?

def

get_first_name

:

Indent

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the details of the function. What identifies the part of the code that ends the header of the function?

:

Indent

def

get_first_name

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the details of the function. What code would be used to call this function in other parts of code?

def

get_first_name()

:

Indent