⟩ By default, if function with minimum lines of code is declared and defined inside the class becomes Inline function. a. True b. False
a. True
a. True
Which of the following is invalid header file name? a) <iostring> b) <string> c) <iostream > d) <sstream>
The pow functions returns _____ a) int b) double c) string d) float
In C++ how many return statements are allowed in a non-void function? a) 1 b) as many as you like c) 0 d) 2
Which of the following keyword is not used in exception handling a) Try b) allow c) Catch d) Throw
A friend class in C++, can access the "__________" members of the class in which it is declared as a friend a) private and protected b) private and public c) public and protected d) Public
In the following statement, const char * const cp = "xyz"; a) Address assigned to pointer cp cannot be changed b) contents it points to cannot be changed c) Both of above d) None of above
Individual characters in a string are accessed as following a) cout << S.at(i); b) cout << S[i]; c) both a) and b) d) None
In C++ if program executed successfully, following value will be returned to the calling process, if nothing specified in return statement? a) 0 b) 1 c) -1 d) 2
In C++ if return statements is written in a non-void function without any specified value, what will be return value of the function? a) undefined b) 1 c) 0 d) -1
Following is the not a correct statement for preprocessor directive declaration? a) #include<iostream.h> b) #include<iostream.h> #define LEFT 1 c) #define LEFT 1 d) #define ABS(a) (a)<0 ? -(a) (a)