Services
Discover
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Problem Solving with C++ Study Set 1
Exam 10: Defining Classes
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Question 41
Multiple Choice
Which of the following is the correct function definition header for the getAge function which is a member of the Person class?
Question 42
True/False
Two different structure definitions may have the same member names.
Question 43
Multiple Choice
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 44
Short Answer
If you have a class with a member function called displayostream& out), that will send the values in the class to the parameter stream, and you need to call that function from within another member function, how would you call it to print the data to the screen? ___________________________
Question 45
Short Answer
When several items variables or variables and functions) are grouped together into a single package, that is known as ______________.
Question 46
Short Answer
When a structure contains another structure variable as one of its members, it is known as a ___________________.
Question 47
True/False
All constructors for a class must be private.
Question 48
True/False
A structure can only be passed to a function as a call-by-value parameter
Question 49
True/False
The assignment operator may not be used with objects of a class.
Question 50
Multiple Choice
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 outputPersonostream& out) ; Private: Int age; Float weight; Int id; }; Void Person::outputPersonostream& out) { //what goes here? }
Question 51
Short Answer
If class A is derived from class B, then B is a _______ of A.
Question 52
Short Answer
A structure variable is a collection of smaller values called ____________ values
Question 53
Multiple Choice
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;