Question: 1)The reference parameter is declared by writing the type name followed by the character & and the parameter name, so that any changes made to
1)The reference parameter is declared by writing the type name followed by the character & and the parameter name, so that any changes made to the parameter in the body of the function will alter the argument.
True or False
2)A constant member function cannot change the value of an object. This type of member function is also called the accessor.
True or False
3)The implementation file is separated from the header file and contains all the member function definitions.
True or False
4)The value semantics of a class determines how values are copied from one object to another.
True or False
5)
To avoid duplicate class definition in the header file, you would place all header file's definitions inside a compiler directive call a macro guard.
Example;
#ifndef MY_H #define MY_H ... #endif
True or False
6) Object-oriented programing is an approach to programming in which data occurs in objects.
True or False
7)The public section is the first part of the member list that begins with the C++ keyword private followed by a colon and a list of items.
True or False
8)The member list of the definition starts from the opening bracket to the closing semicolon.
True or False
9)The class head consists of the C++ keyword class followed by the name of the the new class.
True or False
10)Inline functions are most efficient. Your compiled code will be shorter than it needs to be. Inline functions also result in an orderly class definition.
True or False
11)A constructor is a void member function and may have a return value.
True or False
12)A friend function is a function that is not a member function of a class but that still needs access to private members of some of its parameters.
True or False
13)The private section is the second part of the member list that begins with the C++ keyword private followed by a colon and a list of items or member variables. These member variables are not directly available to programmers who use the class.
True or False
14)Member functions are external and intended to manipulate the class.
True or False
15)If you write a class with no constructors, then the compiler will indicate that as an syntax error.
True or False
16)The value parameter is implemented as a local variable of the function, so that any changes made to the parameter in the body of the function will leave the argument unchanged.
True or False
17)A class is a new kind of data type that is a collection of member variables and functions.
True or False
18)A modification member function can change the value of an object. This type of member function is also called the mutator.
True or False
19)The assignment operator is a constructor with exactly one argument, and the data type of the argument is the same as the constructor's class.
True or False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
