Python Functions

Python Functions

Assessment

Flashcard

Computers

10th - 12th Grade

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

28 questions

Show all answers

1.

FLASHCARD QUESTION

Front

How do you correctly call this function? Options: def(1), x=square( ), defSquare(4), x=square(5)

Back

x=square(5)

2.

FLASHCARD QUESTION

Front

What will print? Options: nothing, sayHi(), an error message, hi there

Back

hi there

3.

FLASHCARD QUESTION

Front

What will print? Options: nothing, 5, 6, an error message

Back

nothing

4.

FLASHCARD QUESTION

Front

What will print? Options: nothing, 5, 6, an error message

Back

5

5.

FLASHCARD QUESTION

Front

Which of the following best describes the order in which these lines are processed in Python? Options: 4, 1, 2, 4, 2, 1, 1, 2, 3, 4, 3, 1, 2

Back

4, 1, 2

6.

FLASHCARD QUESTION

Front

Which statement is the function definition? Options: def square(x):, return a, a = pow(x,2)

Back

def square(x):

7.

FLASHCARD QUESTION

Front

Tells the interpreter that the code which follows is a function

Back

def

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?