Python Quiz on functions
Quiz
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Medium
Ridhaan Mishra
Used 3+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function?
piece of code.
a type of variable.
a block of code which runs when it is called.
a block of code which runs automatically when we test our code.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following function?
14
1
4
1,2
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a function?
def function():
print('hi')
def function()
print('hi')
make function():
print('hi')
define function():
print('hi')
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the function?
Hello World!
Bye!
Hello World!
Hello World!
Bye!
Bye!
Hello World! Bye!
Hello World!
Hello World! Bye!
Hello World! Bye!
5.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
___ function():
Fill in the blank.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
a triangle
fd(120)
rt(120)
Nothing
Error
7.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Rewrite this line of code correctly.
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
12 questions
Wee Word Intro
Quiz
•
7th - 12th Grade
10 questions
Asesmen Unit One dan Unit Two MIT APP INVENTOR
Quiz
•
8th Grade
10 questions
Abhyudaya coding class - Grade 7
Quiz
•
6th Grade - University
10 questions
Scratch
Quiz
•
7th - 9th Grade
10 questions
Selection Control Structure Quiz
Quiz
•
6th Grade - University
12 questions
Creating Webpages
Quiz
•
6th - 8th Grade
10 questions
For loop
Quiz
•
8th Grade
10 questions
Innovations of Technology
Quiz
•
7th - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
