Question: C++ c. inline functions. d. Non-virtual functions 8. Which of the following statements is true regarding friendship: a. Friendship is symmetric (if A is a

 C++ c. inline functions. d. Non-virtual functions 8. Which of theC++

c. inline functions. d. Non-virtual functions 8. Which of the following statements is true regarding friendship: a. Friendship is symmetric (if A is a friend of B, then B is a friend of A). b. Functions cannot be declared friends, only classes. c. Friendship is granted, not taken. d. Friendship is transitive (if A friend of B, B friend of C, then A friend of C). 9. Which of the following assignments would be a compilation eror? a. Assigning the address of a base-class object to a base-class pointer. b. Assigning the address of a base-class object to a derived-class pointer. c. Assigning the address of a derived-class object to a base-class pointer. d. Assigning the address of a derived-class object to a derived-class pointer. 10. Which of the following statements about virtual functions is false? a. They allow the program to select the correct implementation at execution time. b. They can use either static or dynamic binding, depending on the handles on which the functions are called c. They do not remain virtual down the inheritance hierarchy. d. They can be called using the dot operator. 11. Abstract classes: a. Contain at most one pure virtual function. b. Can have objects instantiated from them if the proper permissions are set. c. Cannot have abstract derived classes. d. Are defined, but the programmer never intends to instantiate any objects from them. 12. The main difference between a pure virtual function and a virtual function is: a. The return type. b. The member access specifier. c. That a pure virtual function cannot have an implementation. d. The location in the class. 1.3. Which container is best suited for a siftuation in which you want a cheap append, insert, and delete for an undetermined number of objects: a. Vector c. Map b. List d. Set 14. Which container is best suited for an online dictionary (i.e. you want to find a definition by earching its word): a. Vector c. Map b. List d. Set 5. Which statement about template parameters is false: a. They can be non-type (e.g. int or size t)

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 Databases Questions!