Question: Question 8 (1 point) A data type consisting of data members and operations on those members which can be used by a programmer without knowing
Question 8 (1 point)

A data type consisting of data members and operations on those members which can be used by a programmer without knowing the implementation details of the data type is called
Question 8 options:
| an abstract definition type | |
| an available data type | |
| an abstract data type | |
| a primitive data type |
Save
Question 9 (1 point)

Developing an ADT means that the user of your class does not have to know the details about how the class is implemented. This is known as
Question 9 options:
| interface | |
| implementation | |
| testing and debugging | |
| information hiding |
Save
Question 10 (1 point)

A function may return a structure.
Question 10 options:
| True | |
| False |
Save
Question 11 (1 point)

Given the following class definition and the following member function header, which is the correct way to output the private data? class Person { public: void outputPerson(ostream& out); private: int age; float weight; int id; }; void Person::outputPerson(ostream& out) { //what goes here? }
Question 11 options:
| out | |
| out | |
| out | |
| outputPerson(person); |
Save
Question 12 (1 point)

Given the following class, what would be the best declaration for a mutator function that allows the user of the class to change the age? class Wine { public: Wine(); int getAge(); float getCost(); private: int age; float cost; }
Question 12 options:
| int getAge(int newAge); | |
| Wine(); | |
| void setAge(); | |
| void setAge(int newAge); |
Save
Question 13 (1 point)

Given the following strucure definitions, what is the correct way to print the person's birth year? struct DateType { int day; int month; int year; } struct PersonType { int age; float weight; DateType birthday; } PersonType person;
Question 13 options:
| cout | |
| cout | |
| cout | |
| cout |
Save
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
