How many types of polymorphism are there in C++?
Which operators are used in the C++ free store?
Where is exception handling targeted?
What is the output of the following code?
#include<stdio.h>
int main()
{
printf("%d",printf("%d",4321));
return 0;
}
A pointer to the base class can hold the address of
What would be the output of the following C program?
int main()
{
char *s = "UVCE";
char *p = s;
char l = 127;
while (*p++)
l = (*p < l) ? *p : l;
printf("%d", l);
}
How many times is 'abc' printed in the following code?
int main()
{
int a = 0;
while(a)
printf("abc");
return 0;
}
What does the C statement scanf("%7s", ch); do?
What is the output of the following C++ program?
#include <iostream>
using namespace std;
#define MIN(x,y) (((x)<(y))?x:y)
int main()
{
float a = 100.1;
float b = 100.01;
cout << "The minimum is " << MIN(a,b) << endl;
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
#include <functional>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
int main() {
vector<string*> numbers;
numbers.push_back(new string("one"));
numbers.push_back(new string("two"));
numbers.push_back(new string("three"));
vector<int> lengths(numbers.size());
transform(numbers.begin(), numbers.end(), lengths.begin(),
[](string* s) { return s->length(); });
for (int i = 0; i < 3; i++) {
cout << lengths[i];
}
return 0;
}