Quiz 2 Review

Read Chapters 5 - 6 and first part of Chapter 7.

Review Exercises at the end of Chapters 5 and 6 and 7.

Simple output statements with printf() and %d, %f, and %c format specifiers.

int (integer), char (character), float (single precision floating point / real), and double (double precision floating point / real) variables.

Simple integer arithmetic (addition, subtraction, multiplication, division, modulus) with int variables. Basic operator precedence and associativity rules given an operator precedence table.

Simple for, while, and do while loops.

Program input with scanf() and %d, %f, %lf, and %c format specifiers.

Decision making with simple if, if else, and switch statements.

Simple expressions using relational operators ( ==, !=, <, <=, >, >= ) and logical operators ( && and || ). Negation (!) of logical boolean expressions.

One dimensional arrays.

Range of valid index values for an array
Accessing array elements
Cycling through an array with a for loop