set-3
101. Why do we use a destructor in C++?
102. A destructor is preceded by:
103. Which of the following statements is correct?
104. When an object goes out of scope, which of the following gets called?
105. Which of the following can be declared as virtual?
106. The constructor that either has no parameters, or if it has parameters, all the parameters have default values:
107. Per class, how many default constructors are possible?
108. A destructor takes how many arguments?
109. How many times is a constructor called in the lifetime of an object?
110. The area where the local variables are stored is called:
111. What is the return type of malloc()?
112. Which of the following obtains a block of memory dynamically?
113. Which of the following operators is used to release the dynamically allocated memory in C++?
114. Which of the following is used to free the allocated memory for an object in C++?
115. Which of the following is correct?
116. The 'this' pointer can be used to:
117. The 'this' pointer is:
118. Which of the following are types of 'this' pointer?
119. The static member functions have access to:
120. The static members are:
121. Which of the following is correct?
122. The keyword 'friend' is placed only in the:
123. Which of the following is correct?
124. The syntax of a friend function is:
125. A binary operator performs its action on:
126. Which of the following is a unary operator?
127. Which of the following is a binary operator?
128. Which is called the ternary operator?
129. C-style type casting is also known as:
130. There are three major ways in which we can use explicit conversion in C++:
131. How many parameters does a conversion operator may take?
132. What type of operator is a cast operator?
133. The compiler carries out which type of casting?
134. The programmer initiates which type of casting?
135. How many types of inheritance are there in C++?
136. Single-level inheritance is:
137. Multiple Inheritance is not supported by:
138. The feature of multiple inheritance in JAVA is done through:
139. The diamond problem is associated with:
140. Which constructor is called first if a derived class object is created?
141. In a single program, how many types of inheritance can be used?
142. If we use single inheritance, then the program will contain how many classes?
143. Which constructor will be called first from the classes involved in single inheritance from the object of the derived class?
144. Multilevel inheritance is:
145. The minimum number of levels for implementing multilevel inheritance is:
146. In multilevel inheritance, one class inherits:
147. In multilevel inheritance, which is the most significant feature of OOP used?
148. Multiple inheritance is defined as:
149. To implement multiple inheritance, at least how many classes should a program contain?
Last updated