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
The gradual process of developing functions to solve each subproblem in a top-down design is known as what process?
Free
(Multiple Choice)
4.9/5
(46)
Correct Answer:
B
A black-box chart is a diagram that shows the relationships among a program's functions and the passage of data between them.
Free
(True/False)
4.7/5
(44)
Correct Answer:
False
In a case of infinite recursion, the Python virtual machine eventually runs out of memory resources to manage the process, so it halts execution with an error message.
Free
(True/False)
4.9/5
(42)
Correct Answer:
True
The assignment of roles and responsibilities to different actors in a program is also called responsibility-driven design.
(True/False)
4.8/5
(40)
A recursive function must contain at least one repetition statement.
(True/False)
4.8/5
(41)
Recursive functions tend to be more complicated than the corresponding loops.
(True/False)
4.9/5
(42)
Smart compilers exist that can optimize some recursive functions by translating them to iterative machine code.
(True/False)
4.9/5
(38)
What can often provide you with a pattern for designing the structure of a program?
(Multiple Choice)
4.8/5
(39)
What term describes a dictionary of functions keyed by command names?
(Multiple Choice)
4.8/5
(32)
Recursive functions are frequently used to design algorithms for computing values that have a recursive definition.
(True/False)
4.7/5
(30)
When a call returns or completes its execution, the memory for the stack frame is reallocated.
(True/False)
4.9/5
(33)
A method reference always uses an object, which can be denoted by a string followed by a dot and the method name.
(True/False)
4.8/5
(35)
What is the call stack used for in the Python virtual machine?
(Multiple Choice)
4.8/5
(40)
In bottom-up design, you decompose a complex problem into a set of simpler problems and solve these with different functions.
(True/False)
4.8/5
(41)
A Python function cannot under normal circumstances reference a module variable for its value.
(True/False)
4.8/5
(44)
What are the two different ways that default arguments can be provided to a function? (Choose two.)
(Multiple Choice)
4.8/5
(42)
In Python, functions are treated as first-class data objects. What does this mean?
(Multiple Choice)
4.8/5
(33)
An abstraction hides detail and thus allows a person to view many things as just one thing.
(True/False)
4.9/5
(29)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)