midtermA - CSCE 2014 Midterm Exam Fall 2009 Student Name...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CSCE 2014 – Midterm Exam Fall 2009 Student Name : Student UAID : Instructions : This is closed book exam. Students are allowed one 8.5x11 page of notes, but no calculators or other electronic devices. The exam has seven questions worth a total of 100 points, so schedule your time accordingly.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
const int MAXSTUDENTS = 100; class Group { public: ~Group(); Group(); bool FillInfo(char Filename[]); int GetNumStudents(); void GetNumStudents(int &Num); void Print() const; bool ChangeGPA(char Name[], float GPA); private: void SetNumStudents(int Num); string Names[MAXSTUDENTS]; float GPAS[MAXSTUDENTS]; int UAIDS[MAXSTUDENTS]; int NumStudents; }; Group RowingClub; [10 points] Which of the following calls uses correct C++ syntax? Assume you are in the main program and variables are declared as above. Correct / Incorrect : Print(RowingClub); Correct / Incorrect : int MyUAID = RowingClub.UAIDS[7]; Correct / Incorrect : bool Result = RowingClub.ChangeGPA("John", 3.5);
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 8

midtermA - CSCE 2014 Midterm Exam Fall 2009 Student Name...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online