Midterm Topics
This is a list of the topics we have covered so far.
The midterm questions can come from any of these.
Read over the notes and review the readings mentioned in them (if any).
Study the example code.
This will be updated as we get closer to the midterm.
-
Variables
Know the four properties of a variable, name, type, location and contents.
Know the different data types, int, float char etc.
-
Control Flow
If statements with and without else.
For, while and do loops.
-
Functions
Functions can be used wherever a variable of the return type can be used.
Know the difference between pass by value and pass by reference (reference parameters).
-
Structs
Declaration and use, the name.field notation.
-
Expressions
Know the different operators ( <, >, >+, <=, != ) know the
logical operators ( !, &&, || ) How to combine them.
What is true and what is false?
-
Arrays
Now how to declare and use one and two dimensional arrays.
Array elements are all the same size.
Arrays cannot be expanded.