class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members.
2 9744template
catch(exception &e) { . . . } Referring to the sample code above, which one of the following lines of code produces a written description of the type of exception that "e" refers to? a) cout << e.type(); b) cout << e.name(); c) cout << typeid(e).name(); d) cout << e.what(); e) cout << e;
2 6052int f() { int I = 12; int &r = I; r += r / 4; int *p = &r; *p += r; return I; } Referring to the sample code above, what is the return value of the function "f()"? a) 12 b) 15 c) 24 d) 17 e) 30
2 9385Post New Quark C++ General Interview Questions
How do I select a class in css?
What is six sigma?
What is the difference between long.class and long.type?
What are the filtered indexes?
Where is references tab in word?
What happen to a denaturated enzyme regarding its functionality?
Why do we use weblogic server?
what are the Default cursor Type and LockEdit type in DAO?
What is function composition in scala?
what are you expecting from the company?
What are the classes contained in a single .NET DLL ?
what is your majour contributions in your present job
How to configure angular routes?
What are the three conditions that must be present for deadlock to be possible?
What is the minimal requirement to implement an IAAS Cloud?