Computer Science and Programming
Camden County College
Prof. Gregory Safko

Review: Exam 2


General Knowledge

1.Understand and be able to use control structures (Loops). Namely, the for, while, do-while and switch statements.

2. Understand and recognize nested loops.

3. Know the difference between pass-by-value and pass-by-reference.

4. Know that pass-by-value is the same as call-by-value.

5. Know that pass-by-reference is the same as call-by-reference.

6. Know under what circumstances a function of return type void can return data.

7. Know why it is important to modularize your programs.

8. Know and understand the difference between a stack data structure and a queue data structure.

9. Know what LIFO and FIFO stand for, and what data structure (see Question 8) they are associated with.

10. Know how to recognize a recursive function.

11. Know how to use the .at( ) method of data of type string, and know how to compare it to character data.

12. Know how to use the functions in the <cctype> library.

13. Know how to interpret and use the ASCII table (Page 715 of the Friedman book).

14. Know the difference between #define and const when declaring data that should not change.

15. Know the difference between character A and string A (i.e. 'A' vs. "A").

16. Know how to declare and populate arrays.

 


Back to the main course page