Python Functions

Quiz
•
Computers
•
12th Grade
•
Hard
S Verma
Used 142+ times
FREE Resource
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
Similar Resources on Wayground
20 questions
Quiz Pemrograman Phyton

Quiz
•
9th - 12th Grade
20 questions
LETS PLAY QUIZ - PYTHON CBSE CLASS XII

Quiz
•
11th - 12th Grade
20 questions
Understanding Functions in Programming

Quiz
•
9th Grade - University
20 questions
Data handling using pandas and Data visualization

Quiz
•
12th Grade
20 questions
Python Programming II CSE A

Quiz
•
12th Grade - University
20 questions
Python Programming Quiz

Quiz
•
10th Grade - University
19 questions
OCR GCSE Computer Science Subroutines

Quiz
•
12th Grade
23 questions
Python Review Questions

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade