|
|
Home | | Requirements | | Syllabus | | Assignments | | Lectures Topics for Exam1: This sheet is intended to help you prepare for the first exam in this course. The following topics have been covered in the first 5 weeks of the course. The exam will cover chapters 1 - 6 and 9 of the textbook, and all of the lectures through Thursday, 10/1/09. It will also cover labs 1 - 5 and projects 1 and 2. Each of the following topics may appear on the exam.
1. Problem solving techniques Divide, Conquer and Glue Abstraction Black box abstraction 2. Basic Syntax Form of C++ program Simple Data types: float, double, int, char Identifiers, Variables and Constants Assignment statements Arithmetic Expressions Precedence rules Associativity Type conversion and Type Casts Calling functions Using C++ libraries 3. Input and Output Filestreams, cin and cout insertion and extraction operators output formatting (setf, setprecision(), setw()) Interactive I/O get(), ignore() File input and output opening and closing files Stream fail states. 4. Conditional Statements Basic syntax Boolean (true/false) expressions Relational operators Logical operators Short circuiting Nested if 5. Switch Syntax Writing cases Using break statements 6. Loops while loops for loops do-while loops event-controlled loops count-controlled loops nested loops
Home | | Requirements | | Syllabus | | Assignments | | Lectures
Laurie King--LKing at holycross.edu
|