⟩ If an argument to function is declared as const, then a. function can modify the argument b. Function can't modify the argument c. const argment to a function is not possible d. None of these
b. Function can't modify the argument
b. Function can't modify the argument
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)
What is dynamic memory management for array?
What is new operator and delete operator?