CS 111 Exam 2 Study Guide
- Exam format
The exam will be held IN LECTURE on Monday, May 8. It will consist of the following:
- Ten multiple choice questions.
- One code-writing problem.
- One output problem (in which you'll be asked to write everything displayed at the console by a given program or program segment).
YOU MUST BRING PHOTO ID to the exam. (Either your Queens College student ID, or some other photo ID such as a driver's license or passport.) While taking the exam, you must have your photo ID out on your desk. During the exam, one of the proctors will walk around the room checking ID's. Be ready to show the proctor the name on page 1 of your exam, so that the proctor can compare it to the name on your photo ID.
- Topics covered
The exam will cover all the topics covered in Assignment 1 up to Assignment 7, with emphasis on Assignments 5, 6, and 7.
Both the programming problem and the output problem will likely involve arrays and functions (with parameters that may be value parameters, reference parameters, or arrays passed by pointer value. Make sure you understand all these kinds of parameter passing. Make sure you understand the basics of how functions are used, including return values. Make sure you understand scope of variables (parameters vs. local variables vs. global variables.) Make sure you understand both the differences and the relationships amongs function headings, functions prototypes, and function calls. Make sure you understand how to declare arrays (one-dimensional arrays only) both as (non-parameter) variables (thereby creating the arrays) and as parameters (i.e. as pointers to arrays that have been passed as arguments).
Of course, you are also expected to be familiar with earlier material, e.g. loops.
To help you prepare, do both the practice problems and the assignmed problems for Assignment 7.
In addition to reading the tutorials and the textbook, you should review the examples accompanying the tutorials, plus the examples covered both in lecture and in recitation. Note that, on most topics, the textbook is somewhat more advanced than the tutorials, so it is recommended that you read the tutorials first.
- Revisions to this study guide
- No revisions yet.
Back to: