Python Functions

Quiz
•
Computers
•
12th Grade
•
Hard
S Verma
Used 149+ 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
pyplot in python class 12 (14/08/20)

Quiz
•
12th Grade
18 questions
Programming lesson 1 - Syntax

Quiz
•
9th Grade - University
22 questions
edhesive Unit 1 Vocabulary

Quiz
•
9th - 12th Grade
25 questions
Algorithms - python (GCSE)

Quiz
•
10th - 12th Grade
20 questions
Python String

Quiz
•
12th Grade
18 questions
Kiểu dữ liệu xâu kí tự trong Python

Quiz
•
10th Grade - University
18 questions
CMU Graphics Rectangles etc

Quiz
•
9th - 12th Grade
25 questions
TECH IQ CLASH

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade