What keyword is used to define a function in Python?

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
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
Express Course Quiz

Quiz
•
12th Grade
13 questions
Python Fundamentals and Programming

Quiz
•
11th - 12th Grade
15 questions
AS Media - Language Quiz 1

Quiz
•
11th Grade - University
15 questions
JS 1

Quiz
•
12th Grade
15 questions
Inquiries, Investigations, and Immersion Quiz 1

Quiz
•
12th Grade
8 questions
I&S : IB Command Terms

Quiz
•
5th Grade - Professio...
10 questions
PARIS

Quiz
•
9th Grade - Professio...
10 questions
Python Lambda

Quiz
•
12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade