CSCI 159: exam practice questions

These are just meant as a way to get some practice answering exam-style questions with pen/paper. I'd encourage students to attempt them with minimal references to their notes, but for the final exam you will be permitted one double-sided sheet of notes.

Note that I pretty much assume the basics of variables, constants, functions/parameters, computation, cin/cout, loops, and if/else are understood fundamentals by this point, so these will be required background for most questions. Most of the exam questions thus also have a focus on one of the more advanced topics from the latter half of the term.

There is one question on each side of the page.

After you've attempted the question, a good way to evaluate your answer while also getting additional practice is to coding and compiling/running the answer you came up with.