Which operator is used to access the nth bit in a bitset?
How many ways of reusing code are there in the class hierarchy?
The compiler in C ignores all text from a _____ until the end of a line.
Which of the following concepts of OOPS means exposing only necessary information to client?
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int x = 1;
int main()
{
int x = 2;
{
int x = 3;
cout << ::x << endl;
}
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
#include <locale>
using namespace std;
int main()
{
locale mylocale("");
cout.imbue( mylocale );
cout << (double) 3.14159 << endl;
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main(int argc, char const *argv[])
{
int &q = NULL;
cout<<q;
return 0;
}
Which of the following statement is correct?
Which of the following is correct about static polymorphism?
a)
b)
c)
d)