Answer the following statements true (T) or false (F)
1. The keyword static is used in a static function declaration in a class but not in the function definition.
2. Vector assignment is well behaved.
3. The functions or data members declared in the private: section of a class can be accessed only in the definition those functions declared in that class. Note that friend functions are also declared (but not defined) in the class to which they are friends, so they also have access to private as well as public members.
4. The set of integers ranging from -MAXINT to MAXINT make up the int data type.
1. True
The keyword static on an external definition of a static function is not allowed. The error message suggests confusion with a static global function (which we have not studied.)
2. True
Vector assignment will do an element by element copy of the vector on the right into the vector on the left. It will manage space as needed, if more on the left if needed. The copy will be a real copy, not an alias. Note that assignment of vectors is as good (or bad) as the assignment of the base type.
3. True.
Access to members declared in the private: section of a class, function or data, is granted to those functions declared anywhere in that class, public as well as private functions. Those denied access are functions declared anywhere else.
4. False.
A data type has two parts. One, the set of values, two the set of operations.
You might also like to view...
Users on a network segment report that they are unable to connect to a newly installed file server. The file server IP address settings are as follows: IP address: 10.0.10.254 Subnet Mask: 255.255.255.0 Default Gateway: 10.10.10.1 Which of the following changes should the server administrator make?
A. Change the IP address on the server to 10.10.0.254. B. Change the IP address on the server to 10.10.10.254. C. Change the default gateway on the server to 10.10.10.254. D. Change the subnet mask on the server to 255.255.0.0.
Application Guides can be Microsoft Word documents.
Answer the following statement true (T) or false (F)
VoIP is a phone service that
a. requires a fiber-optic connection. b. works over an Internet connection. c. is only available for calls within the United States. d. has extremely high quality but is very expensive.
What are three symptoms of a processor problem? (Select three.)
A) You smell a burning odor. B) The computer shows a blinking cursor in the upper-left corner. C) You smell an odor of sour lemons. D) The system boots briefly and then shuts down. E) An error code appears. F) The computer plays tones of increasing intensity.