C++ Quiz 3

C++ Quiz 3

Which of the following statement is true about abstract class?





Which of the following is a correct statement?





Identifier in C++ cannot start with …..





Which of the following is not allowed to be used as identifier in C++?





+= is a kind of ….. operator.





What will be the output of following code ? #include< iostream.h> using namespace std; void test() { static int i = 10; i++; cout << i; } int main() { test(); test(); test(); }





Default storage class for local variables is ?





What will be the output of following code ? #include "iostream" using namespace std; void main() { int i, sum=0; for(i=1;i<=10;i++); sum+=i; cout<<sum; getch(); }





String in C++ …..





If a function does not return a value then the return type of the function will be …..