41. If an array of objects is created, then read() function can work with
Answer: either (a) or (b)
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
42. Which of the following can be thrown in a C++ program?
Answer: Programmer-defined objects
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
43. To hide a data member from the program, you must declare the data member in the section of the class
Answer: private.
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
44. Which of the following can access private data members or member functions of a class?
Answer: Any member function of that class.
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
45. Which of the following statement is correct with respect to the use of friend keyword inside a class?
Answer: A class may be declared as a friend.
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
46. In C++ ____________ operator is used for Dynamic memory allocation.
Answer: New
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
47. Which of the following keywords is used to control access to a class member?
Answer: Protected
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
48. Which of the following statements about virtual base classes is correct?
Answer: It is used to avoid multiple copies of base class in derived class.
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
49. How many copies of a class static member are shared between objects of the class?
Answer: A copy of the static member is shared by all objects of a class
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
50. How do we declare an abstract class?
Answer: By providing at least one pure virtual method (function signature followed by ==0;) in a class
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria