We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>
+ Link For Assignments, GDBs & Online Quizzes Solution
+ Link For Past Papers, Solved MCQs, Short Notes & More
Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion
How to Add New Discussion in Study Group ? Step By Step Guide Click Here.
|Quiz No. 2||Dated: Nov 22, 13|
.+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)
Please all students related this subject Share your online Quizzes here to help each other.thanks
Please share the question and their answers of this quiz if anyone has done.
Functions declared with the _______________ specifier in a class member list are called friend functions of that class.
Functions declared with the friend specifier in a class member list are called friend functions of that class. Classes declared with the friend specifier in the member list of another class are called friend classes of that class.
Public or private keywords can be ____________
written only for once in the class or structure declaration
written multiple times in the class or structure declaration
written only twice in the class declaration
written outside the class
good practice is to write public or private keywords only once in the class or structure declaration, though there is no syntactical or logical problem in writing them multiple times.
The friend keyword provides access _____________.
in one direction only
in two directions
to all classes
to the data members of the friend class only
The friend keyword provides access in one direction only. This means that while OtherClass is a friend of ClassOne, the reverse is not true.
References cannot be uninitialized. Because it is impossible to _______________
new operator can be used for ______________.
only integer data type
only char and integer data types
integer , float, char and double data types
Similarly, new operator can be used for other data types like char, float and double etc.
The destructor is used to ______________.
allocate static memory
Reference is not really an address it is ______________.
Difference Between References and Pointers
The reference in a way keeps the address of the data entity. But it is not really an address it is a synonym,
If we want to allocate memory to an array of 5 integers dynamically, the syntax will be _____________.
int *iptr ; iptr = new int ;
integer iptr** ; iptr= new int
int iptr ; iptr= int 
Memory allocated from heap or free store _____________________.
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
The memory allocated from free store or heap is a system resource and is not returned back to the system unless explicitly freed using deleteor free operators.
Operator overloading is to allow the same operator to be bound to more than one implementation, depending on the types of the _________.
Operator overloading is to allow the same operator to be bound to more than one implementation, depending on the types of the operands.
The operator to free the allocated memory using new operator is ________________.
The operator to free the allocated memory using new operator is delete. So whenever, we use new to allocate memory, it will be necessary to make use of ‘delete’ to deallocate the allocated memor