CS 225 Midterm Notes
This is a list of topics that may be covered on the midterm.. Read over
the course notes for more detailed topics. Read the parts of the book that
cover these topics for more examples. I won't ask about things in the book
that we haven't covered in class.
-
Data Types
integers, floats. chars. How are they the same, how are thet different?
-
Arrays
Definition, declaration, use ( how to get and store values), rules (all
the elements are the same size). counting (starts at 0), Chapter
4 has some information.
-
Strings
Array of characters, Nul character at the end, Nul is not NULL,
-
Pointers
Declaration, use, dereferencing, the name of an array is a pointer to an
array, pointer arithmetic, how to use to move along an array, know what
the line while(*dest++=*src++) ; means and how it works. There is
some information in Chapter 9.
-
Structs
Declaration and use, both the name.field and name->field
notation.
-
New and Delete
What do they do, how do you use them?
-
Expressions
Know the different operators ( <, >, >+, <=, != ) know the
logical operators ( !, &&, || ) How to combine them.
What is true and what is false?
-
Control structures
Know the form and use of if, do, while, for and switch statements.
Know what a break and continue are for.
-
Program structure
What is a global variable? What is a header file? What is a const
variable?