CIS 361 Midterm Exam Guide


Specifications:

The midterm exam will contain 8 questions. Half of them will be short answer, and half will be programming. For short answer questions, I am expecting approximately 1 paragraph (several sentences), or a few bullet points in response. Answers that are just a couple words will generally not recieve full credit. Coding questions may require you to write or fix a function, a small program, or a makefile. You will be allowed a single one-sided page of notes for this exam. This may be no bigger than a standard letter-sized piece of paper. You may use your own computer or the eos machines for the exam, but may only use the compiler (gcc), debugger (gdb), and a text editor of your choice.

Topics

Any topic covered in lecture prior to the midterm exam is valid material for the exam. The topic list below is not guaranteed to be comprehensive.

Sample questoins

  1. Write a function that finds both the highest and lowest values in an array. These values should be returned through function arguments.
  2. What is the difference between a float and a double? Why might I choose to use a double? Why might I choose to use a float instead?