|
CMSC 250 |
Quiz #10 KEY |
Monday, Nov. 12, 2001 |
|
- [10 pnts.] A computer programmer writes 500 lines of computer code
in 16 days. Must there have been at least one day when the programmer wrote
30 or more lines of code? Why
| answer: |
| Size of the Domain = 500. (number of lines) |
| Size of the Co-Domain = 16. (which day) |
if
then a day with k+1 lines. |
if
then a day with 30 lines (or more) written. |
| or alternate answer: |
| k = number of days 30 or over lines were written (long days) |
| 29(16-k) = number of lines written on the short days |
| 464 - 29k = number of lines written on the short days |
 |
 |
 |
| Therefore there must have been at least 1 day when 30 or more lines of code
were written. |
| Grading: |
| 5 points for knowing to apply the pigeonhole principle (in either form). |
| 5 points for the algebra and proof. |
- [10 pnts.] Use the fact that
to simplify the
expression as far as possible.
answer:
| Grading: |
| 3 points for knowing how to bring the power to the front. |
| 3 points for substituting the fraction value for the log. |
| 2 points for the integer times 1 over the integer = 1. |
| 2 point for the flow/logic. |
- [10 pnts.] Prove or give a counter example. If
and
are functions and
is onto,
must both
and
be onto?
answer:
This statement is false.
Assume
,
and
.
Let
and
.
This would make
By this definition
is onto.
While
is not onto (since
is a member of
, but there is no
element in
that
maps to
).
| Grading: |
| 4 points for stating that it is false. |
| 6 points for the counter example. |
This document was generated using the
LaTeX2HTML translator Version 99.1 release (March 30, 1999)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -show_section_numbers -split 0 -no_navigation -no_footnode quiz10ans
The translation was initiated by Deep Saraf on 2001-11-14
Deep Saraf
2001-11-14