CS 111 Quiz 3 Study Guide
The quiz will be held IN RECITATION (lab) on Wednesday, March 31 (except in the evening section, in which the quiz will be held in the lecture hall).
The quiz will be closed-book.
YOU MUST BRING PHOTO ID to the quiz. (Either your Queens College student ID, or some other photo ID such as a driver's licence or passport.) While taking the quiz, you must have your photo ID out on your desk. During the exam, a proctor will walk around the room checking ID's. Be ready to show the proctor the name on page 1 of your quiz, so that the proctor can compare it to the name on your photo ID.
The quiz will consist of three problems. In two of these problems, you will be given a program and told to write the program's output. (One of these will involve nested loops and the other will involve a multi-function program with global variables, local variables, value parameters, and reference parameters.) In the third, you will be asked to write a program consisting of a function and a main program calling that function.
For the quiz, you will be expected to know all the topics covered in all the tutorials up to this point, especially assignment 5.
You will be asked to write a program consisting of both a main function and at least one other function which will take both a value parameter and a reference parameter. Make sure you understand the difference between value parameters and reference parameters. The function you write will also contain at least one loop -- possibly nested, possibly not. (It will be up to you to figure out whether a nested loop is needed or not.)
One of output problems will require you to understand parameter passing (including the difference between value parameters and reference parameters), return values of functions, and scope of variables (global variables vs. local variables and parameters).
You will also be expected to understand all previously-covered topics.
To prepare for the quiz, the most important thing you will need is experience writing similar programs. Do the practice problems for assignment 5, and do as much of the homework as you can also. You will also need to spend addtional time studying about parameters, scope of variables, etc., as these topics are not covered exhaustively in the homework or practice problems.
Back to: