Python: Functions and Parameters
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Karen Koelm
Used 116+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the correct code to define a function?
def area ( ):
area ( )
def area:
def area ( )
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the correct way to call a function?
def distance ( ):
distance
distance ( )
distance ( ):
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
In the provided code, which variables have not been defined?
dist
d
rate
time
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
In the provided code, which values are parameters?
rate
5
time
8
d
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
In the provided code, which values are arguments?
rate
time
5
8
d
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What are the valid data types for the parameters/arguments of the pre-built function, math.sprt ( ) ?
integer
float
boolean
string
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct data type for the value of cat?
cat = input("How many cats do you have?")
string
integer
float
boolean
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
NHTW Programming
Quiz
•
9th Grade
10 questions
My Sql
Quiz
•
12th Grade
11 questions
CSS9_Q3M3L1_QUIZ5
Quiz
•
9th Grade
10 questions
Activity 1: How well do you know Java?
Quiz
•
9th Grade
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
12 questions
Wee Word Intro
Quiz
•
7th - 12th Grade
10 questions
Hour of Code
Quiz
•
2nd - 12th Grade
14 questions
TCP/IP & other protocols [A Level]
Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
