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 __________ constant is a name that references a value that cannot be changed while the program runs.
(Multiple Choice)
4.9/5
(79)
One reason to store graphics functions in a module is so that you can import the module into any program that needs to use those functions.
(True/False)
4.8/5
(65)
Whic of the following will assign a random integer in the range of 1 through 50 to the variable number?
(Multiple Choice)
4.8/5
(83)
Unfortunately,there is no way to store and call on functions when using turtle graphics.
(True/False)
4.9/5
(81)
To assign a value to a global variable in a function,the global variable must be first declared in the function.
(True/False)
4.8/5
(75)
Unlike other languages,in Python the number of values a function can return is limited to one.
(True/False)
4.9/5
(71)
The first line in a function definition is known as the function
(Multiple Choice)
4.8/5
(67)
One reason not to use global variables is that it makes a program hard to debug.
(True/False)
4.8/5
(69)
What will be the output after the following code is executed?

(Multiple Choice)
4.8/5
(65)
The top-down design breaks down the overall task of a program into a series of __________.
(Short Answer)
4.8/5
(71)
What will be the output after the following code is executed?

(Multiple Choice)
4.8/5
(83)
Python comes with __________ functions that have already been prewritten for the programmer.
(Multiple Choice)
4.8/5
(68)
To refer to a function in a module,Python uses ___________ notation.
(Short Answer)
4.9/5
(87)
A(n)__________ chart is a visual representation of the relationships between functions.
(Short Answer)
4.7/5
(71)
A value-returning function has a(n)___________ statement that sends a value back to the part of the program that called it.
(Short Answer)
4.9/5
(74)
It is recommended that programmers avoid using __________ variables in a program whenever possible.
(Multiple Choice)
4.8/5
(89)
The function header marks the beginning of the function definition.
(True/False)
4.8/5
(75)
Showing 41 - 60 of 66
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)