Exam 5: Functions and Modules
Exam 1: Introduction to Computers and Programming36 Questions
Exam 2: Input, Processing, and Output35 Questions
Exam 3: Decision Structures and Boolean Logic35 Questions
Exam 4: Repetition Structures34 Questions
Exam 5: Functions and Modules69 Questions
Exam 6: Files and Exceptions34 Questions
Exam 7: Lists and Tuples35 Questions
Exam 8: More About Strings35 Questions
Exam 9: Dictionaries and Sets35 Questions
Exam 10: Classes and Object Oriented Programming35 Questions
Exam 11: Inheritance35 Questions
Exam 12: Recursion35 Questions
Exam 13: GUI Programming35 Questions
Select questions type
A(n) _____ constant is a global name that references a value that cannot be changed.
(Multiple Choice)
4.9/5
(35)
The hierarchy chart shows all the steps that are taken inside a function.
(True/False)
4.8/5
(42)
What type of function can be used to determine whether a number is even or odd?
(Multiple Choice)
4.9/5
(43)
In a flowchart, a function call is depicted by a(n) _______________ that has vertical bars.
(Short Answer)
4.7/5
(42)
What is the result of the following statement?
X = random.randint(5, 15) * 2
(Multiple Choice)
4.9/5
(41)
Python function names follow the same rules for naming variables.
(True/False)
4.8/5
(37)
The approach called _______________ is taking a large task and dividing it into several smaller tasks that are easily performed.
(Short Answer)
4.9/5
(35)
What does the following statement mean?
Num1, num2 = get_num()
(Multiple Choice)
4.7/5
(42)
Functions in the standard library are stored in files that are known as _______________.
(Short Answer)
4.8/5
(33)
In Python, there is no restriction on the name of a module file.
(True/False)
4.9/5
(44)
Arguments are passed by _______________ to the corresponding parameter variables in the function.
(Short Answer)
4.8/5
(33)
The math function, atan(x), returns one tangent of x in radians.
(True/False)
4.9/5
(32)
It is recommended that programmers should avoid using _____ variables in a program when possible.
(Multiple Choice)
4.8/5
(29)
The function header marks the beginning of the function definition.
(True/False)
4.8/5
(33)
The top-down design breaks down the overall task of the program into a series of _______________.
(Short Answer)
4.8/5
(38)
The function header begins with the keyword _______________ followed by the name of the function.
(Short Answer)
4.8/5
(32)
To assign a value to a global variable in a function, the global variable must first be declared in the function.
(True/False)
4.9/5
(32)
Showing 21 - 40 of 69
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)