51. The programming language feature that allows the same operation to be carried out differently depending on the object is
Answer: polymorphism
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
52. Compared with the classes from which they are derived, inherited classes may have
Answer: none of these
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
53. Which of the following advantages we lose by using multiple inheritance?
Answer: Both a & b
Explanation:The benefit of dynamic binding and polymorphism is that they help making the code easier to extend but by multiple inheritance it makes harder to track.
Workspace
Sopra Steria
54. What does derived class does not inherit from the base class?
Answer: All of the above
Explanation:The derived class inherit everything from the base class except the given things.
Workspace
Sopra Steria
55. Which design patterns benefit from the multiple inheritance?
Answer: Adapter and observer pattern
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
56. Which of the following statements are true?
(I). Constructors can be vitrual.
(II). Constructors can be vitrual. Codes:
Answer: Both are false
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
57. To ensure that every object in the array receives a destructor call, always delete memory allocated as an array with operator __________ .
Answer: delete[]
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria Societe Generale
58. Which of the following implicitly creates a default constructor when the programmer does not explicitly define at least one constructor for a class?
Answer: Compiler
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
59. What happens when a class with parameterized constructors and having no default constructor is used in a program and we create an object that needs a zero-argument constructor?
Answer: Compile-time error.
Explanation:Here is no explanation for this answer
Workspace
Sopra Steria
60. How many types of constructor are there in C++?
Answer: 3
Explanation:There are three types of constructor in C++. They are Default constructor, Parameterized constructor, Copy constructor.
Workspace
Sopra Steria