CSCI-e50a
Final Exam Review
Alix Marchandise-Franquet
this page is under construction, but you can already start studying
for the final...
Things you should do
- Read the lecture notes, your notes andthe section handouts
- Browse through Deitel & Deitel, pay more attenton to the
following chapters:
- Chapter 2: Control structures (if, else, while, for...)
- Chapter 3: Functions
- Chapter 6: Classes I
- Chapter 11: C++ Stream Input/Output
- Chapter 14: File Processing
- Chapter 17: The Preprocessor
- 17.2 #include
- 17.3 #define
- Look at your problem sets, the comments and solutions
- Look at the programs in the lecture notes
Things you should be able to do
- Any of the problems on the problems sets
- Any of the examples from lecture
- Explain the concepts listed in the review topics
Review Topics
- Good(?) news: the following are NOT on the final
- General C++ syntax
- Stepwise refinement
- Classes: public/private, member functions, objects
- Functions (unit4, part1, p1-13)
- Parameter passing by value (unit4, part1, p.1-4) and by reference (unit1, part1, p.7-8, p.13)
- Overloading
- Include (iostream, fstream, iomanip, ctype, math)
- Constants: const and #define
- Operator precedence (notes unit2, part2, p.9)
- If
- Boolean operators: AND (&&), OR (||), NOT (!) (notes unit2, part2, p.7-8)
- Loops: for, while (unit2, part2, p.5), do-while (unit3, part2, p.4)
(DD chap2)
- Recursion (unit4, part1, p.14-18, part2, p.1-4)
- Iteration vs. recursion
- Modulo (%)
- Formatting stuff: what we have seen in the iomanip lib: setw, setprecision, endl
- Keyboard input/output
- File input/output (eof, fstream, getting the input, writing to a file) (unit3, part2, p.10-13)
- Variables: (unit3, part1, p.1)
- enum (unit3, part1, p.4)
- Types: char, int, float, double
- Casting (unit3, part1, p.10)
- Char: character conversions etc... (unit3, part1, p.11-16)
- Switch (unit3, part1, p.18-19)
- Random numbers (unit3, part2, p.1-3) Warning: there was a typo in
the section handout, it has been fixed on the website...