[{"id":189605,"question":"Suppose obj1 and obj2 are two objects of a user defined class A. An + operator is overloaded to add obj1 and\r\nobj2 using the function call obj1+obj2.\r\nIdentify the correct function prototype against the given call?\r\n","choices":[{"text":"A operator + ( A &amp;obj);","value":"A"},{"text":"int + operator();","value":"B"},{"text":"int operator (plus) ();","value":"C"},{"text":"A operator(A &amp;obj3);","value":"D"},{"value":"E"}],"correctAnswer":2},{"id":189604,"question":"Which operator can not be overloaded?","choices":[{"text":"The relation operator ( &gt;= )","value":"A"},{"text":"Assignment operator ( = )","value":"B"},{"text":"Script operator ( [] )","value":"C"},{"text":"Conditional operator (? : )","value":"D"},{"value":"E"}],"correctAnswer":4},{"id":189603,"question":"A normal C++ operator that acts in special ways on newly defined data types is said to be","choices":[{"text":"glorified","value":"A"},{"text":"encapsulated","value":"B"},{"text":"classified","value":"C"},{"text":"overloaded","value":"D"},{"value":"E"}],"correctAnswer":4},{"id":189602,"question":"Associativity can be changed in operator overloading.","choices":[{"text":"True","value":"A"},{"text":"False","value":"B"},{"text":"Not Sure","value":"C"},{"value":"D"},{"value":"E"}],"correctAnswer":2},{"id":189601,"question":"When is a constructor called?","choices":[{"text":"Each time the constructor identifier is used in a program statement","value":"A"},{"text":"During the instantiation of a new object","value":"B"},{"text":"During the construction of a new class","value":"C"},{"text":"At the beginning of any program execution","value":"D"},{"value":"E"}],"correctAnswer":2},{"id":189600,"question":"The main function of scope resolution operator (::) is,","choices":[{"text":"To define an object","value":"A"},{"text":"To define a data member","value":"B"},{"text":"To link the definition of an identifier to its declaration","value":"C"},{"text":"To make a class private","value":"D"},{"value":"E"}],"correctAnswer":3},{"id":189599,"question":"Algorithms can only be implemented using STL containers.","choices":[{"text":"True","value":"A"},{"text":"False","value":"B"},{"text":"Not Sure","value":"C"},{"value":"D"},{"value":"E"}],"correctAnswer":2},{"id":189598,"question":"An STL container can not be used to","choices":[{"text":"hold objects of class employee.","value":"A"},{"text":"store elements in a way that makes them quickly accessible","value":"B"},{"text":"compile c++ programs.","value":"C"},{"text":"organize the way objects are stored in memory","value":"D"},{"value":"E"}],"correctAnswer":3},{"id":189597,"question":"Suppose you create an uninitialized vector as follows:\r\nvector<int> evec;\r\nAfter adding the statment,\r\nevec.push_back(21);\r\nwhat will happen?</int>","choices":[{"text":"The following statement will add an element to the start (the back) of evec and will initialize it with the\r\nvalue 21.","value":"A"},{"text":"The following statement will add an element to the center of evec and will reinitialize it with the value\r\n21.","value":"B"},{"text":"The following statement will delete an element to the end (the back) of evec and will reinitialize it with\r\nthe value 21","value":"C"},{"text":"The following statement will add an element to the end (the back) of evec and initialize it with the\r\nvalue 21.","value":"D"},{"value":"E"}],"correctAnswer":4},{"id":189596,"question":"Which one of the following functions returns the total number of elements in a vector.","choices":[{"text":" length();\r\n","value":"A"},{"text":"size();","value":"B"},{"text":"ele();","value":"C"},{"text":"veclen();","value":"D"},{"value":"E"}],"correctAnswer":2}]