Python Functions

Python Functions

Assessment

Flashcard

Computers

10th - 12th Grade

Practice Problem

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)

Media Image

Back

x=square(5)

2.

FLASHCARD QUESTION

Front

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

Media Image

Back

hi there

3.

FLASHCARD QUESTION

Front

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

Media Image

Back

nothing

4.

FLASHCARD QUESTION

Front

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

Media Image

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

Media Image

Back

4, 1, 2

6.

FLASHCARD QUESTION

Front

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

Media Image

Back

def square(x):

7.

FLASHCARD QUESTION

Front

Tells the interpreter that the code which follows is a function

Back

def

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?