Part 1
Part 2
Part 3
Part 4
Part 5
100

T/F Recursive Functions are less efficient than iterative algorithms

true

100

A problem can be solved with recursion if it can be broken down into ____ problems

smaller

100

bases are also called ___

superclasses

100

when there are several classes that have many common data attributes, it is better to write a(n) _____ to hold all the general data

superclass

100

___ allows a new class to inherit the members of the class it extends

inheritance

200

What defines the depth of recursion

the number of times the function calls itself

200

function a calls for function b, which calls for function c, which calls function a. This is called ____ recursion.

indirect

200

what is the correct syntax for defining a class dining which inherits from class furniture?

class dining(furniture):

200

in the following line of code, what is the name of the base class? class male(human)

human

200

what is another name for the accessor methods

getters

300

t/f recursion is never required to solve a problem

true

300

If determining the base case is a first step in designing recursive function, what should be the second step?

determine a way to use recursion in order to solve the problem in all circumstances which cannot be solved without recursion.

300

which method can you use to determine whether an object is an instance of a class

isinstance

300

in the following line of code, what is the name of the subclass? class rose(flower)

rose

300

what is another name for the mutator methods

setters

400

what is referred to as the base case

at least one case which the problem can be solved without recursion

400

what is the first step that needs to be taken in order to design a recursive function

identify at least one case which the problem can be solved without recursion.

400

of the two classes cola and soda, which would most likely be the sub class?

cola

400

what does a subclass inherit from a superclass

attributes and methods

400

what is the combining of data and single code in a single object known as

encapsulation

500

the base case is a case in which the problem can be solved without ______

recursion

500

what is the relationship called in which one object is a specialized version of another object? 

is a

500

in an inheritance relationship, what is a specialized class called?

subclass, child class

500

what gives a program the ability to call the correct method depending upon the type of object that is used to call it

polymorphism

500

what are the procedures that an object performs called

methods