[{"id":189585,"question":"When a virtual function is called by referencing a specific object by name and using the dot member\r\nselection operator (e.g., squareObject.draw()), the reference is resolved at compile time.","choices":[{"text":"True","value":"A"},{"text":"False","value":"B"},{"text":"Not Sure","value":"C"},{"value":"D"},{"value":"E"}],"correctAnswer":2},{"id":189584,"question":"Which is not the Advantage of inheritance?","choices":[{"text":"providing class growth through natural selection.","value":"A"},{"text":"facilitating class libraries.","value":"B"},{"text":"avoiding the rewriting of code.","value":"C"},{"text":"providing a useful conceptual framework.","value":"D"},{"value":"E"}],"correctAnswer":1},{"id":189583,"question":"If you define a vector v with the default constructor, and define another vector w with a one-argument\r\nconstructor to a size of 11, and insert 3 elements into each of these vectors with push_back(), then\r\nthe size() member function will return ______ for v and _____ for w.","choices":[{"text":"11 for v and 3 for w.","value":"A"},{"text":"0 for v and 0 for w.","value":"B"},{"text":"0 for v and 3 for w.","value":"C"},{"text":"3 for v and 11 for w","value":"D"},{"value":"E"}],"correctAnswer":4},{"id":189582,"question":"The find() algorithm","choices":[{"text":"takes container elements as its first two arguments.","value":"A"},{"text":"finds matching sequences of elements in two containers.","value":"B"},{"text":"finds a container that matches a specified container.","value":"C"},{"text":"takes iterators as its first two arguments.","value":"D"},{"value":"E"}],"correctAnswer":4},{"id":189581,"question":"Non Template Friend functions of a class are friends of ________instance/s of that class.","choices":[{"text":"All","value":"A"},{"text":"One specific","value":"B"},{"text":"All instances of one date type","value":"C"},{"text":"None of the given options","value":"D"},{"value":"E"}],"correctAnswer":1},{"id":189580,"question":"When the base class and the derived class have a member function with the same name, you must\r\nbe more specific which function you want to call (using ___________).","choices":[{"text":"scope resolution operator","value":"A"},{"text":"dot operator","value":"B"},{"text":"null operator","value":"C"},{"text":"Operator overloading","value":"D"},{"value":"E"}],"correctAnswer":4},{"id":189579,"question":"If there is a pointer p to objects of a base class, and it contains the address of an object of a derived\r\nclass, and both classes contain a nonvirtual member function, ding(), then the statement p-&gt;ding(); will\r\ncause the version of ding() in the _____ class to be executed.","choices":[{"text":"Base","value":"A"},{"text":"Derived","value":"B"},{"text":"Abstract","value":"C"},{"text":"virtual","value":"D"},{"value":"E"}],"correctAnswer":1},{"id":189578,"question":"Assume a class Derv that is privately derived from class Base. An object of class Derv located in main()\r\ncan access ","choices":[{"text":"public members of Derv. ","value":"A"},{"text":"protected members of Derv. ","value":"B"},{"text":" private members of Derv","value":"C"},{"text":"protected members of Base.","value":"D"},{"value":"E"}],"correctAnswer":1},{"id":189577,"question":"template &lt;&gt;\r\nclass Vector<char*> { }\r\nThis is an example of partial specialization.</char*>","choices":[{"text":"True","value":"A"},{"text":"False","value":"B"},{"text":"Not Sure","value":"C"},{"value":"D"},{"value":"E"}],"correctAnswer":1},{"id":189576,"question":"What is true about function template?","choices":[{"text":"The compiler generate only one copy of the following function","value":"A"},{"text":"The compiler generate a copy function respective to each data type","value":"B"},{"text":"The compiler can generate only copy for the int type data","value":"C"},{"text":"None of the given","value":"D"},{"value":"E"}],"correctAnswer":2}]