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: 1877

.

+ 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

Latest Activity

+ !!!R❤G liked + !!!R❤G's discussion Ikhalaq ki ahmiyat
41 minutes ago
+ !!!R❤G posted a discussion
42 minutes ago
+ !!!R❤G liked UMER UMER's discussion What is Love?
57 minutes ago
+ !!!R❤G liked + IUUOƆƎUT +'s discussion کہو تو لوٹ جاتے ہیں ۔ ۔ ۔
57 minutes ago
+ !!!R❤G liked + IUUOƆƎUT +'s discussion How Can You Get Secured of Being Banned On Ning
57 minutes ago
+ !!!R❤G liked UMER UMER's discussion What is Love?
57 minutes ago
+ !!!R❤G liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion Happy Birth Day Zargiyah (Tasha <3)
58 minutes ago
+ !!!R❤G liked +! ! ! "Asнтαℓғαн's discussion Happy wala Birthday tashy patashy ❤ (Tasha)
58 minutes ago
+ !!!R❤G liked 彡JK彡 ❤️'s discussion Don't Look for Perfection........ LOVE lies in imperfection
58 minutes ago
+ !!!R❤G liked 彡JK彡 ❤️'s discussion If you have sOmething stupid to saY............
58 minutes ago
+ !!!R❤G liked Waseem Khan's discussion Edu 402 Assinment No. 1 Solution
58 minutes ago
+ !!!R❤G liked Moji's discussion MCM301 assignment no 1
58 minutes ago
+ !!!R❤G liked + M.Tariq Malik's discussion VU Students Reserves The Right to Delete Any Profile On the Site
58 minutes ago
+ !!!R❤G and + ! ! ! ! ! ! ! ! ! AG are now friends
1 hour ago
Zain Arshad replied to + M.Tariq Malik's discussion ENG201 Business and Technical English Writing Assignment No 01 Fall 2019 Solution & Discussion in the group ENG201 Business and Technical English Writing
1 hour ago
Muhammad Rashid liked + M.Tariq Malik's discussion ACC501 GDB Fall 2019 Solution & Discussion
1 hour ago
Sucana Shafiq liked + M.Tariq Malik's discussion CS101 Mid Term Papers Spring 2019 & All Solved Past Papers, Solved MCQs & Helping Material
1 hour ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS302 Digital Logic Design Assignment No 02 Fall 2019 Solution & Discussion in the group CS302 Digital Logic Design
2 hours ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion CS302 Digital Logic Design Assignment No 02 Fall 2019 Solution & Discussion
2 hours ago
+ ! ! ! ! ! ! ! ! CuTe DrAmA updated their profile
2 hours ago

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

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