11. Which of the following is correct?
12. Which of the following is called insertion/put to operator?
13. Which of the following feature is not provided by C?
14. Const qualifier can be applied to which of the following?
i. Functions inside a class
ii. Arguments of a function
iii. Static data members
iv. Reference variables
i. Functions inside a class
ii. Arguments of a function
iii. Static data members
iv. Reference variables
15. What will be the output of the following C++ code?
#include <iostream>
class Test
{
public:
void fun();
};
static void Test::fun()
{
std::cout<<"fun() is static";
}
int main()
{
Test::fun();
return 0;
}
#include <iostream>
class Test
{
public:
void fun();
};
static void Test::fun()
{
std::cout<<"fun() is static";
}
int main()
{
Test::fun();
return 0;
}
16. How many types of polymorphism are there?
17. What are the escape sequences?
18. Which of the following operator is used with this pointer to access members of a class?
19. What happens if the following program is executed in C and C++?
#include <stdio.h>
void func(void)
{
printf("Hello");
}
void main()
{
func();
func(2);
}
#include <stdio.h>
void func(void)
{
printf("Hello");
}
void main()
{
func();
func(2);
}
20. Which of the following is correct?
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.