Python Functions and Method

Quiz
•
Instructional Technology
•
10th - 12th Grade
•
Hard
Teaching Assistant Ivy
Used 28+ times
FREE Resource
15 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
What is called when a function is defined inside a class?
class
function
method
module
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the return statement is not used inside the function, the function will return:
None
0
Null
Arbitary value
5.
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
6.
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)
7.
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Programming in Robotics

Quiz
•
6th - 11th Grade
15 questions
Class 12 Review Questions

Quiz
•
12th Grade
18 questions
LO13_Lesson 9

Quiz
•
10th Grade
11 questions
Python Programming Quiz

Quiz
•
11th Grade
14 questions
Python Functions and Returns

Quiz
•
9th - 12th Grade
20 questions
Chapter 7-8 Review

Quiz
•
11th Grade
15 questions
Python Internship Quiz

Quiz
•
12th Grade - University
10 questions
Skill #2 - Flow Control with Decisions and Loops

Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade