Python Quiz on functions

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Ridhaan Mishra
Used 3+ times
FREE Resource
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.
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of following code snippet:
10
24
7
1
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a recursive function?
A function that calls other function.
A function which calls itself.
Both A and B
None of the above
Similar Resources on Wayground
14 questions
Python Turtle - MCA Year 7

Quiz
•
7th Grade
11 questions
Quiz#2

Quiz
•
6th - 8th Grade
10 questions
Small basic

Quiz
•
6th - 7th Grade
11 questions
Python PRIMM Recap L1/L2

Quiz
•
6th Grade
10 questions
Python Basics

Quiz
•
8th - 10th Grade
10 questions
Python - Printing, Variables and Syntax

Quiz
•
8th Grade
11 questions
Python Basics Quiz

Quiz
•
8th Grade
10 questions
CS 50 Terminology

Quiz
•
6th - 10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade