Question: 1 . A constant variable does not have an l - value ( address ) . True or false? 2 . The r - value

1. A constant variable does not have an l-value (address). True or false?
2. The r-value (content) of a pointer variable must be a memory address. True or false?
3. An int variable cannot be de-referenced. True or false?
4. A static variable in a function will remain its value after the function is returned. True or false?
5. An operator is essentially the same as a function. True or false?
6. In general, call-by-reference takes less time and memory than call-by-value. True or false?
7. When calling a function, the name of a real argument must be different than the name of the corresponding formal parameter? True or false?
8. All C++ code for a program must be in a single .cpp file. True or false?
9. A C-string is essentially an array of chars. True or false?
10. If you declare a C-string variable without initialization, its content is empty. True or false
11. Memory allocated by new operator will be released when execution is out of the block where new is used. True or false?
12. A friend function of a class cannot be a member function of that class. True or false?
13. Even if a function is a friend of a class, it cannot access the classs private members.
True or false?
14. Every object of a class has its own instance of a static data member of this class. True or false?
15. A data member can be changed by a const member function. True or false?
16. A class data member may be of a type which is another user-defined class. True or false?
17. All member functions of a class must be defined with its declaration. True or false?
18. A class data member must be private. True or false?
19. A class can have only one constructor. True or false?
20. Within a class definition, a member function cannot directly call another member function unless the latter is public. True or false?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!