Name the keyword used to define a function.
Python Function

Quiz
•
Computers
•
11th - 12th Grade
•
Hard
Sangita Panchal
Used 154+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
define
def
function
fu
2.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
def square(x) _______
print(x*x)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is not true about function?
It breaks the large program into small modules.
It avoids repetition.
It makes code reusable.
It makes the program unorganized.
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which statement is used to display the docstring?
print(welcome.__doc__)
print(__doc__)
print(welcome._doc_)
print(docstring)
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What is the value of Y?
Error
None
Alsan
Hello, Alsan Good Morning!
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which one is incorrect calling function statement?
add(4, c = 10, b = 5)
add(3, 4, c = 45)
add (b = 12, c = 10, 1)
add (5, 6, 7)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
Value inside function: 10
Value outside function: 20
Value inside function: 10
Value outside function: 10
Value inside function: 20
Value outside function: 10
Value inside function: 20
Value outside function: 20
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
Python Unit 3 Codehs

Quiz
•
9th - 12th Grade
10 questions
Python lists and tuples

Quiz
•
12th Grade
15 questions
PCEP Section 4D: Basics of Python Exception Handling

Quiz
•
12th Grade
15 questions
Python Built-in Functions

Quiz
•
11th - 12th Grade
10 questions
Python3

Quiz
•
4th Grade - University
10 questions
Code.org Unit 5 Vocab Quiz 1

Quiz
•
9th - 12th Grade
10 questions
Dial Caliper Exit Quiz

Quiz
•
9th - 12th Grade
16 questions
Python Review

Quiz
•
9th - 12th Grade
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
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

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

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University