q8 sol 0 - CSCI.1100 Computer Science I Quiz 8 November 9,...

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

View Full Document Right Arrow Icon
CSCI.1100 Computer Science I Quiz 8 November 9, 2009 Closed book, closed notes, no computers or calculators of any kind. Name: RCS login: Circle your lab section: (01 MTh 10:00) (02 MTh 12:00) (03 MTh 2:00) (04 MTh 4:00) (05 MTh 6:00) (06 MTh 10:00) (07 TF 10:00) (08 TF 12:00) (09 MTh 12:00) (10 TF 2:00) (11 MTh 4:00) 1. Which of the following is not true about Classes (1 point) A. They are divided into public and private sections B. They make it easier for a team to share code C. Two member functions can have the same name D. Most data is public and most methods are private D 2. Here is some code that defines the start of a class. #include <iostream> #include <string> #include <vector> #include “course.h” using namespace std; class section { private: course course_description; int section_number; vector <string> student_name; vector <char> student_grade; public: int number_of_students (); string get_student_name (int index); char get_student_grade (int index);
Background image of page 1

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

View Full DocumentRight Arrow Icon
... (a)
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.

Page1 / 4

q8 sol 0 - CSCI.1100 Computer Science I Quiz 8 November 9,...

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