Filters
Question type

Study Flashcards

When using functions that have default arguments, the required arguments must be provided and must be placed in the same positions as they are in the function definition's header.

A) True
B) False

Correct Answer

verifed

verified

For each call of a function, the Python virtual machine must allocate a small chunk of memory on the call stack, which is known by what term?


A) stack chunk
B) stack frame
C) data nibble
D) memory slice

E) B) and D)
F) A) and B)

Correct Answer

verifed

verified

Recursive solutions are often more natural and elegant than their iterative counterparts.

A) True
B) False

Correct Answer

verifed

verified

What type of error is raised when the Python virtual machine runs out of memory resources to manage a process?


A) runaway process error
B) out of memory error
C) input output error
D) stack overflow error

E) A) and B)
F) B) and C)

Correct Answer

verifed

verified

What makes up a Python program's namespace?


A) The combination of all included modules and their functions.
B) The set of all its variables and their values.
C) The defined methods of the program.
D) The main method of the program itself.

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

A function call expresses the idea of a process to the programmer, forcing him or her to wade through the complex code that realizes that idea.

A) True
B) False

Correct Answer

verifed

verified

What higher-order function takes a list of values and repeatedly applies a function to accumulate a single data value?


A) mapping
B) filtering
C) reducing
D) associating

E) A) and C)
F) A) and B)

Correct Answer

verifed

verified

The use of a common pool of data allows a program to grow easily as new data sources are added to the program.

A) True
B) False

Correct Answer

verifed

verified

The process of hiding a complex process by developing a mechanism to simplify or hide that process is known by what term?


A) simplification
B) obfuscation
C) abstraction
D) diffraction

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

What is the purpose of a higher-order function?


A) It separates the task of transforming data values from the logic of accumulating the results.
B) It is a mutator that can be utilized on functions to remove redundant patterns in code.
C) It allows the definition of specialized ordering logic for data sets.
D) It is a special function that ignores program scope and has access to localized variables.

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Showing 41 - 50 of 50

Related Exams

Show Answer