Which keyword is used for functions?
PYTHON (Functions)

Quiz
•
Computers
•
6th Grade
•
Medium
Fazla Fairooz
Used 67+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
func
def
define
function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this program?
def addOne(number):
number += 1
return number
one = addOne(0)
two = addOne(one)
print(two)
0
1
2
3
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this program?
def hello():
print(“I am a beginner”)
hello()
hello()
I am a beginner
I am a beginner I am a beginner
Hello
Hello
Hello
I am a beginner
I am a beginner
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When a variable is inside of a function what do you call its scope?
Static
Local
Global
Boolean
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a function?
They are reusable pieces of programs.
They are required by the Python
They allow us to compile our program
They make the program larger
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is missing in the following code?
def sumA(count):
a = count+1
return a
print(a)
The initialization of variable a
A function call
The declaration of the global variable a
The print statement inside the function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program?
def printmessage(message, ntimes = 1):
print(message * ntimes)
printmessage(“Hello”)
printmessage(“Hello”, 5)
Hello
Hello Hello 5
Hello Hello
Hello
HelloHelloHelloHelloHello
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
CodeTigers Python 101

Quiz
•
KG - Professional Dev...
9 questions
Python Quiz (More Loops)

Quiz
•
KG - 6th Grade
10 questions
Wiz 3 Assessment Python

Quiz
•
6th - 8th Grade
15 questions
Milestone Exkul SMP SMA - Q5_2022_Basic Python Syntax

Quiz
•
6th - 8th Grade
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
11 questions
PYTHON "If" Statement

Quiz
•
6th Grade
10 questions
Python L1 Introduction to Python

Quiz
•
6th - 8th Grade
10 questions
Penggunaan Pernyataan Function (4.2.2)

Quiz
•
3rd Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
20 questions
Final Exam Vocabulary

Quiz
•
6th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
49 questions
How Well Do You Know Your 6th Grade Teachers?

Quiz
•
6th Grade
5 questions
Multiply Decimals

Lesson
•
5th - 6th Grade
10 questions
Adding and Subtracting Decimals

Quiz
•
6th Grade
33 questions
Mechanical Energy Transfer

Quiz
•
6th Grade