Exam 1 Topics
Below is a list of all the content that the exam can cover:
Variables
- Types
- Type casting
- Declaration
- Initialization
- Const
Evaluating expressions
- Mathematical operators
- Assignment
- Pre/post increment and pre/post decrement
Number representation
- Value ranges of signed/unsigned integers with n bits
Loops
Conditionals
- if, else if, else
- Relational operators
- Equality operators
- Logical operators
- Results from conditional operators
- What value the results from 4 == 5?
- What does it mean to be true/false?
- Short circuit evaluation
Arrays
- Declaration
- Initialization
- Indexing
- Accessing with loops
- Array sizing
- Array typing
Functions
- Parameters
- Arrays as parameters
- Return values
- Prototypes
Preprocessor
Be able to read and understand code
- Know what is or is not valid C code (code that can be compiled)
- Be able to know what output code will produce with a given input