Data Strct & Algorithm Analysis - Review Anwsers Please

Y

yogi_bear_79

I am stuck on a few open-book multiple choice questions for this
class. I have answers, but I can not back them up. Any insight would
be helpful, a link to read, or just hey dummy you are wrong. thanks


A(n) ______ is another way of writing a logarithmic equation.

a. exponetial equation
b. instruction function
c. time complexity (MY CHOICE)
d. linear equation
e. none of the above

The result of a logarithm is a(n)__________

a. instruction
b. exponent
c. base
d. variable (namely, n) (MY CHOICE)
e. none of the above

The public section of a class is also referred to as the _______

a. class interface
b. maintenance area
c. data member function
d. class implementation
e. none of the above (MY CHOICE)
 
T

Thomas J. Gritzan

yogi_bear_79 said:
I am stuck on a few open-book multiple choice questions for this
class. I have answers, but I can not back them up. Any insight would
be helpful, a link to read, or just hey dummy you are wrong. thanks


A(n) ______ is another way of writing a logarithmic equation.

c. time complexity (MY CHOICE)
Wrong.

The result of a logarithm is a(n)__________

d. variable (namely, n) (MY CHOICE)
Wrong.

The public section of a class is also referred to as the _______

e. none of the above (MY CHOICE)

Wrong.

I can't find a C++ question in this. Are you sure that you posted this
to the right newsgroup?
 
Y

yogi_bear_79

I can't find a C++ question in this. Are you sure that you posted this
to the right newsgroup?


Well the class is billed as an advanced C++ class. The book in
questions is "Data Strutcures and Algorithm Analysis in C++" ISBN:
0-321-44146-X
 
J

Juha Nieminen

yogi_bear_79 said:
A(n) ______ is another way of writing a logarithmic equation.

a. exponetial equation
b. instruction function
c. time complexity (MY CHOICE)
d. linear equation
e. none of the above

This almost sounds like a trick question to me. I think "a way of
writing a logarithmic equation" is too vague of an expression. I'm not
at all sure what is it really that it's trying to say. (OTOH, I'm not a
native speaker.)

I'd answer e.
The result of a logarithm is a(n)__________

a. instruction
b. exponent
c. base
d. variable (namely, n) (MY CHOICE)
e. none of the above

A logarithm is a function taking a real number as parameter (a
floating point number if we are talking about programming) and which
returns the same type of value.

Yet also this looks almost like a trick question. In theory you could
argue that the logarithm returns an exponent (because, for example,
log10(10^y) = y, which is the "exponent"), but that may be quite
far-fetched. I'd still answer e.
The public section of a class is also referred to as the _______

a. class interface
b. maintenance area
c. data member function
d. class implementation
e. none of the above (MY CHOICE)

a is the correct answer. (Just a question of terminology.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top