Please answer each question fully, carefully and thoughtfully.
No credit will be given for unreadable answers, please write neatly.
Answer the questions in any order, but please number each answer.
Make sure that your name is on your test.
(10 points) What is an algorithm? Discuss how the algorithm is used
in the analysis and specification phase and in the implementation phase.
(5 points) What is a compiler and what does it do?
(5 points) What is a syntax error? Give an example of C++ code that
contains a syntax error.
(5 points) Programs must be documented. Given an example of C++ code
that is self documenting. Explain your example.
( 5 points) What is a variable? Give an example of how to declare a variable.
(5 points) Describe one of the problem solving techniques mentioned in
the book.
(10 points) Give the rules for constructing a valid variable name. Give an example of an invalid name that violates each rule, identify the problem. Give a valid variable name.
(12 points) Give the basic syntax of any C++ program
(3 pts) Describe the data type char.
(15 pts) Trace the execution of the following code: