Which one of the following is not a fundamental data type in C++
What is the output of the following program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int a = 5;
6.float b;
7.cout << sizeof(++a + b);
8.cout << a;
9.return 0;
10.}
What defines a general set of operations that will be applied to various types of data?
What is the output of this program?
1.#include
2.using namespace std;
3.int main()
4.{
5.int a = 5, c;
6.void *p = &a;
7.double b = 3.14;
8.p = &b;
9.c = a + b;
10.cout << c << '\n' << p;
11.return 0;
12.}
What are the parts of the literal constants?
How do we represent a wide character of the form wchar_t?
Which of the following is not a standard exception built in C++.
Observe following program and answer 100 class Example{public: int a,b,c; Example(){a=b=c=1;} //Constructor 1 Example(int a){a = a; b = c = 1;} //Constructor 2 Example(int a,int b){a = a; b = b; c = 1;} //Constructor 3 Example(int a,int b,int c){ a = a; b = b; c = c;} //Constructor 4 } In the above example of constructor overloading, the following statement will call which constructor Example obj = new Example (1,2,3);
What is the output of the following program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int x = -1;
6.unsigned int y = 2;
7.if(x > y) {
8.cout << "x is greater";
9.} else {
10.cout << "y is greater";
11.}
12.}
‘Prime area’ in context of file system is defined as
Which of the following is the most general exception handler that catches exception of any type?
When class B is inherited from class A, what is the order in which the constructers of those classes are called
Which of the following is a valid floating point literal?
____ have the return type void?
When a language has the capability to produce new data type mean, it can be called as
What is the implicit pointer that is passed as the first argument for nonstatic member functions?
The constants are also called as
Which of the following operators can be overloaded?
Which of the following operators can be implemented as a nonmember operator?
Which of three sizes of floating point types should be used when extended precision is required?
Is bool a fundamental datatype in C++?
Pick the right option Statement 1:A definition is also a declaration.
Statement 2:An identifier can be declared just once.
The data elements in structure are also known as what?
What does a reference provide?
Inline functions are invoked at the time of
What constant defined in header returns the number of bits in a char?
Originally ‘C’ was developed as:
The conditional compilation
Which of the following is not a valid conditional inclusions in preprocessor directives
Which of the following correctly describes C++ language?
What is the value of the bool? bool is_int(789.54)
Class derived: public base1, public base2 { } is an example of
What happens when a null pointer is converted into bool?
Which of the following language is not supported by C++?
Which of the following is not a file operation:
Evaluate the following. (false && true) || false || true
Which of the following is not a standard exception built in C++.
Which type is best suited to represent the logical values?