CS 1044
Review Topics for Final Exam
Chapters covered: 1 - 14
Format: Multiple choice, true-false, matching. Bring a #2 pencil to use with the opscan.
There will be 65 questions.
Most important topics:
1. definitions set apart between two blue lines
2. basic components of a computer and tasks each carries out;
3. 3 basic structures of programming languages; source vs. object code; low-level
vs. high-level languages; compilers
4. simple data types (int, float, char) and how they are represented, i.e., stored, in the
computer; arithmetic errors due to limits of representation; typedef; ennumeration
types
5. arithmetic expressions, precedence among operations, type coercion and type
casting
6. file stream output including formatted output using the manipulators setw and
setprecision; insertion operator <<
7. file stream input including use of input stream functions: get, open, close, eof,
put, peek, putback; extraction operator >>
8. Boolean expressions, relational and logical operators -- including precedence,
short-circuit evaluation
9. blocks, nested if statements, switch statement, loop constructs (while, do-while,
for;), designing while loops, types of loops (count-controlled, sentinel-controlled,
eof-controlled, flag-controlled, event-controlled), break and continue statements
10. C++ standard functions; void functions, value-returning functions, value vs.
reference parameters, formal vs. actual parameters, function invocation and
execution, prototype, local vs. global variables, scope of identifiers, side effect
11. arrays (1 and 2 dimensional): declaring, initialization, accessing elements,
processing all elements, passing single elements and whole arrays as parameters
12. strings: declaration, initialization, manipulation using library routines (len, cmp,
cpy, cat)
13. structures: declaration, initialization, accessing members, arrays of structures,
parameter passing
Things you should be prepared to do:
• read C++ code and determine what task the code is doing,
• trace the execution of a segment of code or function and answer questions about
the values of variables at various points in the code during execution or show output produced