211: Programming For IS 1 --- Lecture Dec. 3
Review for Final
The final exam will consist of a written part only and will be taken in
class on Friday, Dec. 10 from 8:00-10:00AM.
The final exam will cover Chapters 1-5 of text and all the lectures
except Lecture on Dec.1. However, emphasis will be on material covered
since Midterm, i.e., functions, arrays, strings, pointers.
The exam will consists of some multiple choice questions, questions
involving short answers, i.e., a name, a definition, a few lines of
C++ code, and code for short functions.
To review for the midterm look over lecture notes, text and
programming assignments 1-6. Listed below are important topics which
you should know for the midterm.
LOOK OVER REVIEW FOR MIDTERM -- LECTURE NOV. 1
FUNCTIONS
Modular design and functions
User-defined functions
Function header: provides data interface for function
void function
Actual arguments vs. formal parameters
Value vs. reference parameters
Function prototypes
Scoping out variables and constants
You should be familiar with functions discussed in
lecture, e.g.,
ProgramPurpose()
Square()
RepeatSymbol()
GetData()
Hypotenuse()
DisplayResults()
Average()
Cube()
SumCubes()
Recursion and recursive functions
Be familiar with recursive functions discussed in class, e.g.,
Factorial()
ChangeBase()
ReverseString()
ARRAYS
One-dimensional arrays
Declaration of a one-dimensional array
Direct access of array elements
Input to an array
Displaying an array
Implementing lists using arrays
Implementing a list using an array
Input of a list
Displaying a list
Passing arrays as functions
Be familiar with the functions involving arrays discussed in class, e.g.,
Searching Lists
Sorting Lists
Insertion Sort
Bubble Sort
STRINGS
Declaring a string
Inputting and displaying strings
Inputting strings with whitespace: using cin.getline()
Inputting mixed string and numeric data: using ignore()
List of strings
Inputting a list of strings until null string is encountered
POINTERS
Definition of a pointer
Declaring a pointer variable object
Accessing contents of the location pointed to by pointer
Pass by reference using pointers
GOOD LUCK!