Virtual University VU Solved Assignments/Quizzes/GDBs, Past Solved Papers/Assignments/Online Quizzes Solutions.

Tuesday, July 6, 2010

CS201 Current Quiz


Question
n # 1 of 10 ( Start time: 12:39:43 PM ) Total Marks: 1
_______ operators are the ones that require two operands on both sides of the operator.
Select correct option:

Double
Tow sided
Binary
None of the given options

Question # 2 of 10 ( Start time: 12:40:52 PM ) Total Marks: 1
Memory allocated from heap or free store _____________________.
Select correct option:

can be returned back to the system automatically
can be allocated to classes only
cannot be returned back unless freed explicitly using malloc and realloc
cannot be returned back unless freed explicitly using free and delete operators

Question # 3 of 10 ( Start time: 12:42:21 PM ) Total Marks: 1
This reference to a variable can be obtained by preceding the identifier of a variable with ________________.
Select correct option:

dot operator
ampersand sign &
^ sign
* operator

Question # 4 of 10 ( Start time: 12:43:56 PM ) Total Marks: 1
If the request of new operator is not fulfilled due to insufficient memory in the heap ____________________.
Select correct option:

the new operator returns 2
the new operator returns 1
malloc functions returns NULL pointer
malloc function returns free space

Question # 5 of 10 ( Start time: 12:45:17 PM ) Total Marks: 1
A reference cannot be NULL it has to point a data type.
Select correct option:

true
false

Question # 6 of 10 ( Start time: 12:46:28 PM ) Total Marks: 1
Operator overloading is to allow the same operator to be bound to more than one implementation, depending on the types of the _________.
Select correct option:

Compilers
Operands
Function names
Applications

Question # 7 of 10 ( Start time: 12:47:35 PM ) Total Marks: 1
When an operator function is defined as member function for a binary Plus (+) operator then the number of argument it take is/are.
Select correct option:

Zero
One
Two
N arguments

Question # 8 of 10 ( Start time: 12:49:00 PM ) Total Marks: 1
The memory allocation in C++ is carried out with the help of _______________.
Select correct option:

NULL pointer
new operator
dot operator
+ operator

Question # 9 of 10 ( Start time: 12:50:31 PM ) Total Marks: 1
When operator function is implemented as member function then return type of function ________.
Select correct option:

Must be an object of same class
Must be user-defined data type
Must be built-in data type
Can be any data type

Question # 10 of 10 ( Start time: 12:52:16 PM ) Total Marks: 1
Friend classes are used in cases where one class is ____________to another class
Select correct option:

tightly coupled
loosely coupled
independent
encapsulated

No comments:

Post a Comment