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
15 questions
Python Internship Quiz

Quiz
•
12th Grade - University
18 questions
LO13 Lesson 6

Quiz
•
10th Grade
16 questions
Intro to Coding Week 4

Quiz
•
9th - 12th Grade
15 questions
Class 12 Review Questions

Quiz
•
12th Grade
18 questions
IINFO-31 ARRAYS

Quiz
•
11th Grade
20 questions
Python IF statements Part 4

Quiz
•
9th - 12th Grade
10 questions
Introduction to Functions 12 G

Quiz
•
12th Grade
10 questions
Tin 10 Bài 22-23

Quiz
•
10th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade