Cpp Programming 97 – Which of the following is not a type of inheritance?
[B]. Multilevel
[D]. HierarchicalAnswer: Option C
Answer: Option B
Explanation:
The two main types of polymorphism are run-time (implemented as inheritance and virtual functions), and compile-time (implemented as templates).
The parameterized destructor is called.
[C].
The default destructor of the object is called.
[D].
None of the above.
Answer: Option C
Explanation:
No answer description available for this question.
destructor
[C].
main
[D].
virtual function
Answer: Option B
Explanation:
No answer description available for this question.
5
[D].
Garbage-value
Answer: Option B
Explanation:
No answer description available for this question.
#include
struct IndiaBix
{
int arr[5];
public:
void BixFunction(void);
void Display(void);
};
void IndiaBix::Display(void)
{
for(int i = 0; i < 5; i++)
cout<< arr[i] << " " ;
}
void IndiaBix::BixFunction(void)
{
static int i = 0, j = 4;
int tmp = arr[i];
arr[i] = arr[j];
arr[j] = tmp ;
i++;
j--;
if(j != i) BixFunction();
}
int main()
{
IndiaBix objBix = {{ 5, 6, 3, 9, 0 }};
objBix.BixFunction();
objBix.Display();
return 0;
}
[A].0 9 3 6 5
[B].9 3 6 5 0
[C].5 6 3 9 0
[D].5 9 3 6 0
Answer: Option A
Answer: Option D