Unlock access to all the studying documents.
View Full Document
Copyright Cengage Learning. Powered by Cognero.
1. A class is an example of a structured data type.
2. In C++, class is a reserved word and it defines only a data type.
3. If the heading of a member function of a class ends with the word const, then the function member cannot modify the
private member variables, but it can modify the public member variables.
4. In C++ terminology, a class object is the same as a class instance.
a.
static
b.
const
c.
automatic
d.
private
ANSWER:
b
POINTS:
1
REFERENCES:
655
QUESTION TYPE:
Multiple Choice
HAS VARIABLES:
False
PREFACE NAME:
clockType definition
DATE CREATED:
10/5/2016 1:41 PM
DATE MODIFIED:
10/5/2016 1:41 PM
14. A class and its members can be described graphically using a notation known as the ____ notation.
Copyright Cengage Learning. Powered by Cognero.
16. Consider the UML class diagram shown in the accompanying figure. Which of the following is the name of the class?
17. Consider the UML class diagram shown in the accompanying figure. According to the UML class diagram, how many
private members are in the class?
18. A ____ sign in front of a member name on a UML diagram indicates that this member is a public member.
19. A ____ sign in front of a member name on a UML diagram indicates that this member is a protected member.
29. To guarantee that the member variables of a class are initialized, you use ____.
Copyright Cengage Learning. Powered by Cognero.
33. What does ADT stand for?
asynchronous data transfer
alternative definition type
34. Which of the following is true about classes and structs?
By default, all members of a struct are public and all members of a class are private.
A struct variable is passed by value only, and a class variable is passed by reference only.
An assignment operator is allowed on class variables, but not on struct variables.
You cannot use the member access specifier private in a struct.
35. If a function of a class is static, it is declared in the class definition using the keyword static in its ____.
36. With ____________________ functions, the definitions of the member functions are placed in the implementations
file.