Exam 6: Design With Functions

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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:
Verified

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:
Verified

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:
Verified

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)

Each box in a structure chart is labeled with a module name.

(True/False)
4.8/5
(45)

When a call returns or completes its execution, the memory for the stack frame is reallocated.

(True/False)
4.9/5
(33)

Where can the required arguments for a function be found?

(Multiple Choice)
4.8/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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)