Exam 5: Functions
Exam 1: Introduction to Computers and Programming39 Questions
Exam 2: Input, Processing, and Output40 Questions
Exam 3: Decision Structures and Boolean Logic40 Questions
Exam 4: Repetition Structures41 Questions
Exam 5: Functions66 Questions
Exam 6: Files and Exceptions40 Questions
Exam 7: Lists and Tuples40 Questions
Exam 8: More About Strings37 Questions
Exam 9: Dictionaries and Sets39 Questions
Exam 10: Classes and Object-Oriented Programming38 Questions
Exam 11: Inheritance36 Questions
Exam 12: Recursion35 Questions
Exam 13: Gui Programming42 Questions
Select questions type
A(n)__________ is any piece of data that is passed into a function when the function is called.
Free
(Multiple Choice)
4.8/5
(76)
Correct Answer:
B
A hierarchy chart shows all the steps that are taken inside a function.
Free
(True/False)
4.9/5
(75)
Correct Answer:
False
Python function names follow the same rules as those for naming variables.
Free
(True/False)
4.8/5
(66)
Correct Answer:
True
Functions that are in the standard library are stored in files that are known as __________.
(Short Answer)
4.9/5
(83)
A value-returning function is like a simple function except that when it finishes it returns a value back to the part of the program that called it.
(True/False)
4.8/5
(75)
The return values of the trigonometric functions in Python are in __________.
(Short Answer)
4.9/5
(74)
The __________ of a local variable is the function in which that variable is created.
(Multiple Choice)
4.7/5
(70)
The Python standard library's __________ module contains numerous functions that can be used in mathematical calculations.
(Multiple Choice)
4.9/5
(83)
The approach known as __________ makes a program easier to understand,test,and maintain.
(Short Answer)
4.8/5
(65)
A(n)__________ is a variable that receives an argument that is passed into a function.
(Multiple Choice)
5.0/5
(94)
In a value-returning function,the value of the expression that follows the keyword __________ will be sent back to the part of the program that called the function.
(Multiple Choice)
4.9/5
(75)
When a function is called by its name during the execution of a program,then it is
(Multiple Choice)
4.9/5
(91)
The Python library functions that are built into the Python __________ can be used by simply calling the required function.
(Multiple Choice)
4.8/5
(85)
What will be the output after the following code is executed?

(Multiple Choice)
4.9/5
(78)
In Python you can have a list of variables on the left side of the argument operator.
(True/False)
4.9/5
(66)
A set of statements that belong together as a group and contribute to the function definition is known as a
(Multiple Choice)
4.8/5
(76)
What will display after the following code is executed?
Def main():
Print("The answer is",magic(5))
Def magic(num):
Answer = num + 2 * 10
Return answer
Main()
(Multiple Choice)
4.8/5
(84)
Showing 1 - 20 of 66
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)