21. What are the actual parameters in C++?
22. What will be the output of the following C++ code?
#include<stdio.h>
int main(int argc, char const *argv[])
{
char a = 'a';
printf("%d\n", (int)sizeof(a));
return 0;
}
#include<stdio.h>
int main(int argc, char const *argv[])
{
char a = 'a';
printf("%d\n", (int)sizeof(a));
return 0;
}
23. Which of the following is used to make an abstract class?
24. Which of the following supports the concept that reusability is a desirable feature of a language?
25. What will be the output of the following C++ code?
#include<iostream>
using namespace std;
int main ()
{
int cin;
cin >> cin;
cout << "cin: " << cin;
return 0;
}
#include<iostream>
using namespace std;
int main ()
{
int cin;
cin >> cin;
cout << "cin: " << cin;
return 0;
}
26. What happens if the following line is executed in C and C++?
int *p = malloc(10);
int *p = malloc(10);
27. Which of the following is C++ equivalent for printf()?
28. Which of the following is correct?
29. Which of the following statement is true?
I. In Procedural programming languages, all function calls are resolved at compile-time
II. In Object Oriented programming languages, all function calls are resolved at compile-time
I. In Procedural programming languages, all function calls are resolved at compile-time
II. In Object Oriented programming languages, all function calls are resolved at compile-time
30. Which of the following is correct about dynamic polymorphism?
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.