Exam 6: Value-Returning functions and Modules
Exam 1: Introduction to Computers and Programming35 Questions
Exam 2: Input, Processing, and Output35 Questions
Exam 3: Simple functions34 Questions
Exam 4: Decision Structures and Boolean Logic35 Questions
Exam 5: Repetition Structures35 Questions
Exam 6: Value-Returning functions and Modules35 Questions
Exam 7: files and Exceptions35 Questions
Exam 8: Lists and Tuples35 Questions
Exam 9: More About Strings35 Questions
Exam 10: Dictionaries and Sets35 Questions
Exam 11: Classes and Object-Oriented Programming35 Questions
Exam 12: Inheritance35 Questions
Exam 13: Recursion35 Questions
Exam 14: GUI Programming35 Questions
Select questions type
In a value-returning function, the value of the expression that follows the key word _____ will be sent back to the part of the program that called the function.
(Multiple Choice)
4.8/5
(35)
The Python standard library's _____ module contains numerous functions that can be used in mathematical calculations.
(Multiple Choice)
4.7/5
(39)
In Python, a module's file name should end in _______________.
(Short Answer)
4.8/5
(48)
The math function, ceil(x), returns the smallest integer that is greater than or equal to x.
(True/False)
4.9/5
(36)
In Python, one can have a list of variables on the left side of the assignment operator.
(True/False)
4.8/5
(33)
The approach of _______________ makes the program easier to understand, test, and maintain.
(Short Answer)
4.8/5
(29)
A value-returning function has a(n) _______________ statement that returns a value back to the part of the program that called it.
(Short Answer)
4.9/5
(35)
One of the drawbacks of a modularized program is that the only structure we could use is sequence structure.
(True/False)
5.0/5
(40)
Python comes with _____ functions that have been already prewritten for the programmer.
(Multiple Choice)
4.9/5
(32)
A value-returning function is like a simple function except that when it finishes it returns a value back to the called part of the program.
(True/False)
4.8/5
(38)
Boolean functions are useful for simplifying complex conditions that are tested in decision and repetition structures.
(True/False)
4.9/5
(35)
The return values of the trigonometric functions in Python are in _______________.
(Short Answer)
4.8/5
(40)
What type of value is returned by the functions random and uniform?
(Multiple Choice)
4.8/5
(39)
What is the result of the following statement? x = random.randint(5, 15) * 2
(Multiple Choice)
4.8/5
(47)
Showing 21 - 35 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)