Python Functions

Python Functions

12th Grade

10 Qs

quiz-placeholder

Similar activities

Game Quizizz

Game Quizizz

KG - Professional Development

8 Qs

Criminal law vocab review AND preview!

Criminal law vocab review AND preview!

9th - 12th Grade

11 Qs

Python Lambda

Python Lambda

12th Grade

10 Qs

Cognitive Approach to Depression

Cognitive Approach to Depression

12th Grade

10 Qs

Express Course Quiz

Express Course Quiz

12th Grade

10 Qs

AS Media - Language Quiz 1

AS Media - Language Quiz 1

11th Grade - University

15 Qs

Coding Review

Coding Review

9th - 12th Grade

15 Qs

Inquiries, Investigations, and Immersion Quiz 1

Inquiries, Investigations, and Immersion Quiz 1

12th Grade

15 Qs

Python Functions

Python Functions

Assessment

Quiz

Other

12th Grade

Medium

Created by

Amy Austin

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to define a function in Python?

func

def

function

Func

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you pass an unknown number of arguments to a function?

**kwargs

*args

&args

##kwargs

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used before a parameter name to denote it accepts an arbitrary number of keyword arguments?

*

&

**

##

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the default parameter value of the country in the given function example?

India

Sweden

Brazil

Norway

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a function return if it does not have a return statement?

0

None

False

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What statement is used in function definitions to do nothing?

break

pass

continue

none

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are arguments separated in a function call?

With a slash (/)

With a comma (,)

With a colon (:)

With a semicolon (;)

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?