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

Back

a, b

3.

FLASHCARD QUESTION

Front

which are the function's argument(s)?

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)

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

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

Back

add_item()

7.

FLASHCARD QUESTION

Front

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

Back

print(addition(6,7))

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?