Python Functions Quiz

Python Functions Quiz

12th Grade

14 Qs

quiz-placeholder

Similar activities

Thinking Ahead

Thinking Ahead

12th Grade

10 Qs

Python User Defined Functions

Python User Defined Functions

12th Grade

14 Qs

XII - CS - Lesson 7 - Function - Quiz 2

XII - CS - Lesson 7 - Function - Quiz 2

12th Grade

10 Qs

Quiz on Python Functions

Quiz on Python Functions

12th Grade

11 Qs

XII - CS - Lesson 7 - Function - Quiz 1

XII - CS - Lesson 7 - Function - Quiz 1

12th Grade

10 Qs

Python functions

Python functions

12th Grade

11 Qs

CodeHS 2.8 Functions to 2.12 User Input Review

CodeHS 2.8 Functions to 2.12 User Input Review

9th - 12th Grade

10 Qs

MS Excel VLookup

MS Excel VLookup

9th - 12th Grade

10 Qs

Python Functions Quiz

Python Functions Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Vanissa Obina

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in Python?

A data structure

A block of code that runs when called

A built-in library

A type of variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do you call the data passed into a function?

Arguments

Variables

Expressions

Constants

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a function in Python?

function myFunction()

def myFunction():

create myFunction()

define myFunction:

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used to denote arbitrary arguments in a function?

#

*

&

%

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the return statement in a function?

To return a value from the function

To define a function

To end the function

To call another function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the pass statement do in a function?

Calls another function

Indicates an empty function definition

Terminates the function

Returns a value

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a lambda function?

A type of loop

A small anonymous function

A built-in data type

A method for recursion

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?