CS1411 - 160 - Programming Principles I, Spring 2005

Extra Credit Assignment for Programming II

Pick up to two of the following topics, for up to 10 points each (but not more than a total of 100 on your test)

Write a written answer of about 200-300 words per question

  • Pick either C-Strings or C++-strings, explain why you would use one over the other in new programming projects
  • Can you thing of a good use for pointers (other than dynamic arrays) ?
  • Explain why dynamic arrays are better than static arrays
  • What is a memory leak? Give a code example of one, and how it would need to be fixed.

Extra mandatory part:

To receive your credit, also answer the following question (about 2 sentences is enough):

Do you think a question in that format would be good for you to answer on the final exam? Or do you like multiple-choice better?

Deadline

Sumbit a paper version to me in class on thursday, April 14th (or earlier). If you can't come to class, put it in my mailbox in the CS department before class time. Emails will not be accepted. Late work will not be accepted.

Every sumbission has to be your own and individual work.

Questions?

If the instructions are unclear or you have any other questions, please email me