61. Which of the following is correct?
62. What will be the output of the following C++ code?
#include<iostream>
using namespace std;
class A
{
~A(){
cout<<"Destructor called\n";
}
};
int main()
{
A a;
return 0;
}
#include<iostream>
using namespace std;
class A
{
~A(){
cout<<"Destructor called\n";
}
};
int main()
{
A a;
return 0;
}
63. Why this pointer is used?
64. Which of the following is correct about static variables?
65. Which of the following syntax can be used to use a member of a namespace without including that namespace?
66. Who created C++?
67. Which of the following is correct about static polymorphism?
68. Which of the following is the scope resolution operator?
69. What happens if the following program is executed in C and C++?
#include <stdio.h>
void main()
{
printf("Hello World");
}
#include <stdio.h>
void main()
{
printf("Hello World");
}
70. Which of the following is an entry-controlled loop?
Read More Section(Introduction to C plus plus)
Each Section contains maximum 100 MCQs question on Introduction to C plus plus. To get more questions visit other sections.