
Python Functions

Quiz
•
Other
•
12th Grade
•
Medium
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
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
Similar Resources on Wayground
10 questions
Cognitive Approach to Depression

Quiz
•
12th Grade
10 questions
Express Course Quiz

Quiz
•
12th Grade
15 questions
Trial Procedures

Quiz
•
9th - 12th Grade
15 questions
2D Arrays

Quiz
•
9th - 12th Grade
10 questions
*Relation And Function*

Quiz
•
12th Grade
14 questions
Command Terms Quizizz

Quiz
•
9th Grade - University
15 questions
Bisnis Digital Quiz

Quiz
•
12th Grade
15 questions
Understanding Procedure and Exposition Texts

Quiz
•
12th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade