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
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
10 questions
APP LAB 2
Quiz
•
7th Grade
10 questions
6-sinf 3-chorak
Quiz
•
6th Grade
10 questions
Computer Basics (Software)
Quiz
•
8th Grade
10 questions
Grade 7 Quiz 4 - Python Variables
Quiz
•
7th Grade
12 questions
Digitech IPO Week 3
Quiz
•
7th Grade
13 questions
bts
Quiz
•
KG - Professional Dev...
12 questions
Python
Quiz
•
7th - 9th 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
