CISC105, Exam E01 Study Guide
Fall 2005 (Sections 022-025, Conrad)
What is covered
- Lecture Notes, 8/31 through 10/7
- Labs 0-3, Project 1
- Hanly and Koffman, Chapters 1-5, excluding:
- Chapter 4: switch
- Chapter 5: do while
- Andersen, Chapters 6, 7, 8
Partial List of C Topics from Hanly Koffman Reading (not necessarily complete)
- Chapter 1: (TBA)
- Chapter 2: Overview of C
- C Language Elements.
- Variable Declarations and Data Types.
- General Form of a C Program.
Arithmetic Expressions.
- Chapter 3. Top-Down Design with Functions.
- Library Functions (e.g. sqrt)
- Functions without Arguments.
- Functions with Input Arguments.
- Chapter 4. Selection Structures:
- If and Switch Statements.
- Control Structures.
Conditions.
- The if Statement.
If Statements with Compound Statements (i.e. when to use{ } and when not)
- Nested if Statements, and if/else if/else
- Excluded for E01: switch (will be on E02)
- Chapter 5. Repetition and Loop Statements.
- Repetition in Programs.
- while loops
- Computing a Sum or Product in a Loop.
- for loops
- nested Loops.
- Excluded for E01: do-while Statement, endfile loops (p. 242-243; will be on E02)
More topics:
fgets vs. scanf
fprintf vs. printf
boolean expressions, boolean operators
functions: calls, prototypes, definitions, return values
div and mod, operator precedence
nested if's
Number conversions: bin, hex, octal, decimal
Stages of Compiling: preprocessor, parsing, code generation, linking
Partial List of Unix Topics (Not Necessarily Complete)
- Unix Commands: cp, rm, mkdir, pwd, cd, mv, ls, ls -l, chmod, cat, more, make
- Compiling: CC, g++, use of the -o and -c switches
- What the public_html directory is used for and how it corresponds to addresses (URLs) of web pages
Review lab00, lab01, lab02, lab03, and project 1 too!