\documentclass{USUexam}

\setheader{CS1400}{Computer Science I}{Final Exam}
\date{August 14, 2015}

\begin{document}


%\section*{Chapter 12}
\shortanswer{10}{Give an example of a literal value}
\shortanswer{10}{Is it better to write ++i or i++? Why?}
%\section*{Chapter 13}
\shortanswer{10}{What are the components of a function signature?}
\shortanswer{10}{When should you use a switch statement}
\shortanswer{10}{What is the purpose of a constructor?}
%\section*{Chapter 14}
\shortanswer{10}{When is it best to use a for loop?  When is a while loop better?}
\shortanswer{10}{Describe scope}
\shortanswer{10}{Write a loop that prints out every member of an array}
\shortanswer{10}{When should data members be public?  When should member functions be public?}
\newpage
Consider the \textbf{Person} class below:

\begin{verbatim}
class Person
{
  public:
    Person();
    void set(string newname, int newage);
    string getName();
    int getAge();
  private:
    string name;
    int age;
};
\end{verbatim}

\shortanswer{10}{Write an implementation of getAge()}

    
\end{document}
Add final exam for Summer 2015
Add final exam for Summer 2015
