Test and Quiz Information -- COM1101 Winter 2001
Updated March 6, 2001 for Final Exam
Professor Futrelle
College of Computer Science, Northeastern U., Boston, MA
Quiz 2 results you'll need to study for the Midterm.
Note that Quiz #2 and the Midterm Exam were delayed a week -- see below.
Quiz #1, to be given Wednesday, January 24th.
Here are four items of information taken directly from the quiz:
- This is a closed-book, no calculators test, duration 20 minutes.
- Please write your answers on the this sheet ....
- This quiz focuses on I/O, strings and array basics as well as the basic of classes.
- When you are asked to write code (in C++), you should omit preambles such as
includes, namespace and main(), unless specifically asked to include them.
Only write out the specific items requested.
The best advice I can give you about this quiz is this: If you know the material well
and work quickly, you can finish it. So practice writing out answers efficiently.
Even if you don't finish, try to work briefly on
every different part of it, so we can give you at least some extra credit, rather than
the zero points we have to give for any item you skip completely.
There are some differences between
this list and the Syllabus. The topic list below takes precedence.
The sections you need to know for this quiz are:
- The basics in Chaps. 1-5 and 7.
- The C++ Standard string class: Sec. 10.3
- Arrays, Secs. 9.1 and 9.2.
- Sorting: pgs. 573-578, including Display 9.13.
- Binary search: Look briefly at 747-749 and especially Display 12.8 on pg. 756.
- Chap. 6 through pg. 334 on classes.
Here is some further information that will guide you in studying for Quiz #1:
All the questions on the quiz will involve writing "code snippets" -- single statements
or small loops or small function definitions. From the basics chapters, you need to know
most of the material there, for example, how to declare variables, define and call functions,
use for and while loops, I/O operations for cout, cin and files.
You should also know how
to position files for reading and writing (from your Lab 2).
For arrays, you need to know array declarations and initialization, e.g., the {....}
notation. You need to understand that arrays use zero-based indexing, as well as how
to define and call functions that have array arguments.
For strings, you should know the basics,
including the functions in Display 10.11, but not including the insert(),
remove() or
the various find() functions.
The most recent topic is introductory material on classes. You need to know how to define
a class with public and private member variables and functions of various types. (Don't
forget that semicolon!). You should know how to define a member function outside the
body of the class definition using the "::" syntax discussed in Sec. 6.2.
You also need to know how to access a member, for setting or obtaining its value, using
the "dot" notation: ".".
New Date: Quiz #2, will now be given Wednesday,
February 7th.
This will not be a as difficult a quiz as Quiz #1. It will focus on aspects of
the language that you have used in Lab #4. Below are the particular sections of
the book and the material which you should be prepared for on the Quiz.
-
The basics in Chaps. 1-5 and 7. You must always be ready to answer questions
on the basics of the language -- especially on things you (and others) had
difficulties with in the past.
-
The basics of classes and Abstract Data Types in Secs. 6.2 and 6.3.
In particular, I'll ask you to write out two different internal structures
for an ADT that behave in the same way externally. You won't have to make
these up; I'll tell you how they are to behave and the basic difference
in the internals.
-
Arrays, Secs. 9.1 and 9.2, and especially Sec. 9.4 on
arrays of objects and arrays within
classes (just as we had an array of Car objects in the class Simulation).
I may ask again how to declare functions with array arguments and what
the difference is between passing an entire array versus passing a single
element of an array.
-
Separate compilation: Given a single, simple file, break it up into three files:
the proper interface, implementation and application files. Sec. 8.2.
-
Extra credit: A brief question on using new and constructors for class creation,
with assignment to the properly typed variables.
New Date:
The Midterm Exam will now be given Wednesday, February 14thth.