Python: Functions and Parameters
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Karen Koelm
Used 120+ 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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Data Engineering y BigQuery V1
Quiz
•
12th Grade
15 questions
Chapter 3: Storage devices and media (Part 2):
Quiz
•
10th - 11th Grade
13 questions
Nhập môn HTML
Quiz
•
6th - 9th Grade
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
10 questions
Quiz 9 (15.09.2021)
Quiz
•
1st - 12th Grade
10 questions
Windows 10 Basics
Quiz
•
9th - 12th Grade
15 questions
Databases
Quiz
•
11th Grade
10 questions
Programação Front End - CSS avançado
Quiz
•
11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
