Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

Quark C++ General Interview Questions
Questions Answers Views Company eMail

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 8465

template class Obj { T my_t; X my_x; public: Obj(T t, X x) : my_t(t), my_x(x) { } }; Referring to the sample code above, which one of the following is a valid conversion operator for the type T? a) T operator T () { return my_t; } b) T operator(T) const { return my_t; } c) operator(T) { return my_t; } d) T operator T (const Obj &obj) { return obj.my_t; } e) operator T () const { return my_t; }

1 5034

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 5371

int 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 8177

Post New Quark C++ General Interview Questions






Un-Answered Questions

Explain server control extensibility with reference to asp.net 2.0 ?

261


How to write next to a table in word?

139


What are the four essential states of an activity in Android?

366


How do we create the circumstance-qualified rule?

18


What is transaction atomicity?

236






What are the advantages of raid 1, 1/0, and 5. What type of raid setup would you put your tx logs?

248


Why volatile is used in java?

224


What does the account assessment category specify in a purchasing document in SAP Materials Management?

593


Will a steel cable become longer if it is heated while under load?

307


Where do u set the default paragraph?

267


What are the user exits?

340


What is Seq2Seq Tensorflow?

56


What is the default microsoft word font?

142


How can we calculate the number of possible optical isomers for a given compound?

291


what are the different types of qualifier in java?

1424