Final Study Guide
CS 202: Programming Systems
#1) The
final will be comprehensive, covering C++, Java, and OOP. Don’t forget
debuggers and your data structures?!
For
C++, emphasis will be placed on single inheritance, dynamic memory. Dynamic
binding, static members, constant member functions, operator overloading, copy
constructors, and abstract classes. A great place to study is to review your
midterm!
For
debuggers, expect to be able
to answer general questions on debuggers.
For
Java, know the main differences between C++ and Java. Be able to take a
C++ program and indicate what changes you would make if it were solved in Java.
Understand how to do: inheritance, dynamic binding, abstract classes, and
create objects of classes.
For
OOP, expect to be able to solve
problems with a combination of is-a and has-a relationships.
#2) Focus will be placed on character strings,
pointers, structures, and how to build
and traverse various data structures (such as linked lists, binary search
trees, or arrays of linked lists) in both C++ and Java.
#3) Here are some sample study questions:
· Write the prototype statements for the += and + operators, used to concatenate two strings together.
· Implement the assignment operator
· Or, know the prototypes for the [], ++, = operators
· What is the prototype for the copy constructor
Return type, Argument List:, Overload as a Member:, Overload as a Const Member, Virtual keyword for Operators.
*** Make this Object Oriented! ***
*** Perform a deep copy of the data and show your memory allocation ***
*** Make sure to create a class for the data and the node ***
You want to represent software for the automobile dealers in our area: Chevrolet, Ford, and BMW. Chevy and Ford have Trucks, SUVs, Sedans, and Economy cars, BMW has Sedans and Luxury cars. All cars have a few things in common: fuel economy rating, number of passengers allowed, as well as other things. All types have a few things that are different – Luxury cars have a list of features that are built into the cars (heated seats, 8 airbags, etc.), whereas economy cars are striped down, with only a few features that can be added on (e.g., manual versus electric windows). A dealer can sell a car, get new cars in as inventory, or trade a car with a broker.