Exam 6: Design With Functions
Exam 1: Introduction50 Questions
Exam 2: Software Development Data Types and Expressions50 Questions
Exam 3: Loops and Selection Statements50 Questions
Exam 4: Strings and Text Files50 Questions
Exam 5: Lists and Dictionaries50 Questions
Exam 6: Design With Functions50 Questions
Exam 7: Simple Graphics and Image Processing50 Questions
Exam 8: Graphical User Interrfaces50 Questions
Exam 9: Design With Classes50 Questions
Exam 10: Multithreading Networks and Client Server Programming50 Questions
Exam 11: Searching Sorting and Complexity Analysis51 Questions
Select questions type
What happens when a function tries to assign or change a value of a variable that has been defined at the module level?
(Multiple Choice)
4.9/5
(26)
What are two common methods by which functions serve as abstraction mechanisms? (Choose two.)
(Multiple Choice)
4.9/5
(35)
When you design an algorithm, it should be general enough to provide a solution to many problem instances, not just one or a few of them.
(True/False)
4.9/5
(32)
To get a better understanding of how recursion works, it is helpful to trace its calls.
(True/False)
4.7/5
(25)
In a recursive function, what is used to determine whether to stop or to continue with another recursive step?
(Multiple Choice)
4.7/5
(38)
It is possible to construct any algorithm using only Python's built-in operators and control statements.
(True/False)
4.9/5
(43)
Which of the following statements are accurate? (Choose two.)
(Multiple Choice)
4.9/5
(39)
In Python, what is the term that is used to describe the area of a program text in which an object name refers to a given value?
(Multiple Choice)
4.8/5
(31)
The amount of memory needed for a loop grows with the size of the problem's data set.
(True/False)
4.8/5
(40)
What higher-order function process applies a function to each value in a sequence and returns a new sequence of the results?
(Multiple Choice)
4.9/5
(34)
A program's namespace is the set of its variables and their values.
(True/False)
4.8/5
(36)
The Fibonacci sequence is a series of values that can be easily calculated with what kind of function?
(Multiple Choice)
4.8/5
(39)
In what higher-order function do you apply a predicate to each value within a list, and if the predicate returns true, the value is added to an object?
(Multiple Choice)
4.9/5
(40)
The assignment of roles and responsibilities to different actors in a program is known as what type of design?
(Multiple Choice)
4.8/5
(38)
What is the name for a diagram that shows the relationships among a program's functions and the passage of data between them?
(Multiple Choice)
4.9/5
(44)
The first five numbers of the Fibonacci sequence are 1 3 5 8 13.
(True/False)
4.9/5
(43)
Like with an infinite loop, an infinite recursion eventually halts execution with an error message.
(True/False)
4.8/5
(38)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)