Functions Lecture Review

Functions Lecture Review

Assessment

Flashcard

Computers

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

FLASHCARD QUESTION

Front

what are the two parts of a function?

Back

function definition, function call

2.

FLASHCARD QUESTION

Front

what are the function's parameter(s)?

Media Image

Back

a, b

3.

FLASHCARD QUESTION

Front

which are the function's argument(s)?

Media Image

Back

3, 5

4.

FLASHCARD QUESTION

Front

which is a valid function call for add_numbers? Options: add_numbers(), add_numbers(10), add_numbers(b=10, a=50), add_numbrs(3, 5)

Media Image

Back

add_numbers(b=10, a=50)

5.

FLASHCARD QUESTION

Front

what will print? Options: Hello First \n Hello Second, Hello \n Hello First, Hello Second \n Hello First, Hello \n First

Media Image

Back

Hello Second \n Hello First

6.

FLASHCARD QUESTION

Front

if this is the header of my function, which of the following function calls would NOT be acceptable? Options: add_item("banana"), add_item("banana", 2), add_item(item_name="banana", quantity=2), add_item()

Media Image

Back

add_item()

7.

FLASHCARD QUESTION

Front

which line(s) of code would actually PRINT out the answer

Media Image

Back

print(addition(6,7))

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?

Discover more resources for Computers