Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

class studentType { public: void setData(string, double, int); private: string n

ID: 3661143 • Letter: C

Question

class studentType
{
public:
void setData(string, double, int);
private:
string name;
};

class studentType
{
public:
void setData(string, double, int);
void print() const;
private:
string name;
double gpa;
}

class studentType
{
public
void setData(string, double, int);
private
string name;
};

studentType class
{
public:
void setData(string, double, int);
private:
string name;
};

1.(TCO 1) Assume you have the following declaration:

char nameList[100];

Which of the following ranges is valid for the index of the array nameList?(Points : 4) 0 through 99
0 through 100
1 through 100
1 through 101

Explanation / Answer

1. A 2. A 3. D 4. B 5. A 6. C 7. B 8. B 9. B 10. C 11. A 12. D 13. C