Midterm Exam 2 - Study Guide
Resources and Online Notes
In addition to reviewing the material covered for the first midterm exam you should primarily focus on the material presented in chapter 3-4 and 9 of your textbook. You should also look over the following sections of Dale Haverstock's online notes:
You can also refer to the C/C++ Reference guide at http://cppreference.com/
or you may wish to go through thei Introduction, Basics of C++, and Control Structures parts of the online
tutorial available at http://www.cplusplus.com/doc/tutorial/
Topic List
Vocabulary - talking like a programmer....
Be able to answer questions such as a "What is", "Describe", "Explain", etc. or be able to write important
information about each of the following
- C++ String variable type
- Functions, what are they good for
- Functions, when should you write a function
- Function call
- Function declaration/prototype
- Function definition
- Function header
- Arguments in a function call
- Formal parameters of a function
- The
return statement
- Parameter passing
- Call by value,
call by reference,
call by const reference;
how each works, advantages, disadvantages,
advantage of const reference
- Return by value,
return by reference
- Putting functions in separate files -
what goes in what file
- Separate compilation, linking, header files
- make utility
- makefile including an understanding of targets and dependencies
Writing/Executing/Explaining Code - walking (coding) like a programmer...
You may be given a snipet of code to execute by hand and explain or
you may be asked to write code relating to the items below
- Declaring string variables
- Using string variables
- Writing a simple function, including the
declaration, definition, and a call of the function.
- Examples of call-by-value function parameters.
- Examples of call-by-reference function parameter.
- Examples of pass-by-value parameter passing.
- Examples of pass-by-reference parameter passing.
- Writing functions that return value through there return type
- Writing functions that can change values in the calling domain through pass by value reference
- Expected behavior of a make command