We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ 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.

CS201 - Introduction to Programming Quiz No. 02 Solution and Discussion Fall 2013 Open Date:Monday, December 02, 2013 Close Date:Tuesday, December 03, 2013.

Quiz No. 2 Dated: Nov 22, 13

Dear Student,

Quiz No. 2 of CS201 will be started from Monday, December 02, 2013 and ends atTuesday, December 03, 2013.  
Quiz No. 1 will cover 7-12 lectures.  There will be 10 questions in the quiz.  

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 2104

.

+ 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)

Replies to This Discussion

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.
Thanks. 

CS201 Introduction To Programming Solved MCQs from Quiz 2

Functions declared with the _______________ specifier in a class member list are called friend functions of that class. 
protected 
private
public 
friend

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 _______________ 

reinitialize a pointer 
reinitialize a reference 
initialize a NULL pointer 
cast a pointer

References cannot be uninitialized. Because it is impossible to reinitialize a reference, 

new operator can be used for ______________.
only integer data type
only char and integer data types
integer , float, char and double data types
dot operator
Similarly, new operator can be used for other data types like char, float and double etc.

The destructor is used to ______________.

allocate memory
deallocate memory
create objects
allocate static memory

Reference is not really an address it is ______________.

a synonym
an antonym
a value
a number
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[5] ;

integer iptr** ; iptr= new int[5]

int iptr ; iptr= int [5]

iptr= new[5]

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 _________.

Compilers
Operands
Function names
Applications 

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 ________________.

free
del
delete
remove 

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

RSS

Today Top Members 

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.