Python Functions
Quiz
•
Computers
•
12th Grade
•
Hard
S Verma
Used 156+ times
FREE Resource
Enhance your content in a minute
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used for function?*
define
fun
def
function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following items are present in the function header?
function name
parameter list
return value
Both A and B
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the return statement is not used inside the function, the function will return:
0
None
Null
Arbitary value
4.
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
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following function headers is correct?*
def fun(a = 2, b = 3, c)
def fun(a = 2, b, c = 3)
def fun(a, b = 2, c = 3)
def fun(a, b, c = 3, d)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which part of memory does the system store the parameter and local variables of a function call?
heap
stack
Uninitialized data segment
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is a function declared in Python?*
def function function_name():
declare function function_name():
def function_name():
declare function_name():
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
18 questions
STEM Fundamentals
Quiz
•
9th - 12th Grade
20 questions
Computer parts
Quiz
•
1st - 12th Grade
20 questions
Database Management Tools
Quiz
•
9th - 12th Grade
20 questions
DATA VISUALIZATION_B
Quiz
•
9th - 12th Grade
20 questions
QUIZ 3 SAM
Quiz
•
12th Grade
20 questions
System and network support and management
Quiz
•
11th Grade - Professi...
20 questions
Business Letter Test Review
Quiz
•
9th - 12th Grade
20 questions
Linux Directory Structures
Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Computers
8 questions
Veterans Day Quiz
Quiz
•
12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
15 questions
Identify Triangle Congruence Criteria
Quiz
•
9th - 12th Grade
23 questions
Similar Figures
Quiz
•
9th - 12th Grade
