CS-201 Final Term Exams Preparation Virtual University With Answers

CS-201 Final Term Exams Preparation Virtual University

Sr. # Questions Answers Choice
1 "new" and "delete" keywords are _____________ in C++ language Built-in- Function Operators Memory Allocation Function None of the given options
2 New operator allocates memory from free store and return. A pointer A reference An integer A float
3 With user-defined data type variables (Objects), self assignment can produce. Syntax error Logical error Link error Non of the given options
4 When an operator function is defined as member function for a binary Plus (+) operator then the number of argument it take is/are Zero One Two N arguments
5 While calling function, the arguments are assigned to the parameters from _____________. left to right right to left no specific order is followed none of the given options
6 The programs, in which we allocate static memory, run essentially on ________ Heap System Cache None of the given options Stack
7 For cin, the source is normally a ________ and destination can be. File,native data type Disk, user-define type Keyboard, variable File, user-define type
8 If overloaded plus operator is implemented as non-member function then which of the following statement will be true for the statement given below?obj3 = obj1 + obj2 ; obj2 will be passed as an argument to + operator whereas obj2 willdrive the + operator obj1 will drive the + operator whereas obj2 will be passed as an argument to + operator Both objects (obj1, obj2) will be passed as arguments to the + operator (not sure) Any of the objects (obj1, obj2) can drive the + operator
9 The prototype of friend functions must be written ____ the class and its definition must be written ____. inside, inside the class inside, outside the class outside, inside the class outside, outside the class
10 Friend functions are _____ of a class Member functions Public member functions Private member functions Non-member functions
Download This Set

Is this page helpful?