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.

Quiz No.1

Dated: May 03, 16

Dear Students, It is intimated that you are going to appear for the first graded quiz of CS304 on Tuesday, May 10, 2016 which will open for two days. The quiz will start on Tuesday, May 10, 2016 and end on Wednesday, May 11, 2016.

The quiz will have questions from lectures 1 to 8. For any query:

CS304@vu.edu.pk Instructor CS304

+ 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: 1698

.

+ 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

students do share your quiz plz...

dua ap ny CS301 and CS306 ki assignment kr li hai

yah dono subj ni maray

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. 

kindly solve these mcqs  

Question
If we are create array of objects through new operator, then
We can call overloaded constructor through new
We can’t call overloaded constructor through new
We can call default constructor through new
None of the given


Question
Object can be declared constant with the use of Constant keyword.
true
false
Question
__________ Operator will take only one operand.
New
int
object
none of the given
Question
Which of the following operator(s) take(s) one or no argument if overloaded?
++
*
%
All of the given choices


Question
this pointer does not pass implicitly to __________ functions.
Static Member
Non-Static Member
Instance Number
None of the given


Question
Operator overloading is
making C++ operators work with objects.
giving C++ operators more than they can handle.
giving new meanings to existing Class members.
making new C++ operators


Question
Which of the following is TRUE,
Derived class pointer can be used as Base class pointer
Base class pointer can be used as Derived class pointer
Both of these options
None of these options


Question
___________ Binding means that target function for a call is selected at run time
Automatic
Dynamic
Static
Dramatic


Question
When we want to implement one class in terms of another class then we use
Public inheritance
Protected inheritance
Private inheritance
None of these options


Question
Consider the code below, class c1{ }; class c2 : public c1 { }; class c3 : public c2 { }; Then c2 is
Direct base class of c3
Direct child class of c3
Direct base class of c1
None of these


Question
Consider the code below, class class1{ private: int i; }; class class2 : public class1 { }; Then int
member i of class1 is ______ in class2,
Public
Protected
Private
None of the given options


Question
A parent class can call constructor of its child class through
Its constructor initialization list
Its constructor body
Both from its constructor initialization list or body
Can not call the constructor of its child class


Question
In Private Inheritance the public members of base class become __________ in derived class.
Public
Private
Protected
None of the given options


Question
Function overriding is done in context of,
Single class
Single derived class
Single base class
Derived and base classes


Question
Child class can call constructor of its,
Direct base class
Indirect base class
Both direct and indirect base classes
None of these


Question
Adding a derived class to a base class requires fundamental changes to the base class
True
False


Question
_______________ is automatically called when the object is created.
Member function
Object
Constructor
None of the given


Question
Inheritance is a way to
Organize data
Pass arguments to objects of classes
Add features to existing classes without rewriting them
Improved data-hiding and encapsulation


Question
Through interface we access object_____________.
States
Data members
Behaviour
None of the given


Question
Which of the following may not be integral part of an object?
State
Behavior
Protected data members
All of given


Question
Suppose there is an object of type Person, which of the following can be considered as on of its
attributes.
Name
Age
Work()
Both Name and Age


Question
If we have an overloaded constrictor in our class, then compiler construct the default constructor.
True
False
Advantages(s) of information hiding
Simplifies the model
Restriction to change
Both of above
None of the above


Question
If some of objects exhibit identical characteristics, then they belong to:
Different classes
Multiple classes
Same class
None of the given


Question
Which of the following is the way to extract common behaviour and attributes from the given and
make a separate class of those common behaviours and attributes?
Generalization
Sub-typing
Specification
Extension


Question
A class has ________ destructor
One
Two
Three


Question
Bahaviors of a type of objects are represented through
States
Attributes
Operations


Question
Which is not an example of multiple inheritances?
Mermaid
Amphibious Vehicle
Car
None of the above


Question
Static data members are called ____________ variable
Class
Object
Structure
None of the given


Question
Associatively can be change in operator overloading.
True
False


Question
________ and ______ methods may not be declared abstract.
Private,static
private,public
static,public
none of the given


Question
Let Suppose a class Student with objects std1, std2, and std3. For the statement std3 =
std1 – std2 to work correctly, if the overloaded – operator must
take two arguments.
None of the given choices
take single argument
take three arguments


Question
To initialize an array of objects, only _____________ will be called
Default Constructor
Overloaded Constructor
Default Object
None of the above


Question
__________ provide the facility to access the data member.
accesser function
private function
inline function
None of the given


Question
If a class involves dynamic memory allocation, then:
Default copy constructor, shallow copy is implemented
User defined copy constructor, shallow copy is implemented
Default copy constructor, deep copy is implemented
User defined copy constructor, deep copy is implemented


Question
The sentence “Object Oriented Programming book in bookshelf” is an example of:
Association
Multiple associations
Aggregation


Question
How the information hidden within an object can be accessed?
Through its interface
Through its private data member
Through its private member functions


Question
There is no need to is or is a kind of relationship in generalization
True
False


Question
An object has _______ interface(s)
Only one
Only two
One or more than one


Question
Which of the following is an advantage of OOP?
It provides an ability to create one user defined data type extending the o ther
It provides the facility of defining abstract data type through which real entities can be defined
better
All of the given option


Question
Encapsulation means
Select correct option:
Extending the behaviour of class in another class
Data and behaviour are tightly coupled within an entity
One entity takes all the attributes and operations of the other
Taking out the common features and put those in a separate class


Question
We can allocate dynamic memory allocation through___________ key word.
Select correct option:
Static
Global
New
Const


Question
In programming, where the actual actions are coded is called:
Select correct option:
Function declaration
Function calling
Function definition
None of the given


Question
Which of the following is directly related to polymorphism?
Select correct option:
Overriding
Const members
Static members
None of given


Question
In a class declaration, data or functions designated private are accessible
Select correct option:
to any function in the program.
only if you know the password.
to member functions of that class.
only to public members of the class.


Question
An instance of user defined type is called
Select correct option:
Object
Class
both of above
none of above


Question
Aggregation is implemented using pointer.
Select correct option:
True
False


Question
If class A supports all the operations of class B, then class A is:
Class A is behaviourally compatible with class B
Class A is behaviourally incompatible with class B
Class A is independent of class B
None of the given


Question
Objects having identical characteristics belong to ______________
Same class
Two different classes
Any number of different classes
Objects can not have identical characteristics


Question
When we create objects, then space is allocated to:
Member functions
Access specifier
Data members
None of the given


Question
If we extend our model, and the rest of model is not affected, then its called ___________
Consistency
Flexibility
Efficiency
Reusability


Question
Using encapsulation we can achieve
Information hiding
Least interdependencies among modules
Implementation independence
All of given options


Question
Consider the statement “room has chair” which of the following type of association exists between
room and chair?
Inheritance
Composition
There is no association
Aggregation


Question
A good model is ……………. related to a real life problem.
Loosely
Openly
Closely
Not


Question
If a class A inherits from class B, then class A is called.
Child Class
Derived class
Parent class
Child and derived class

 

 

 

 

in main say ak b nahi ana..

me k quiz may yah Q thay

Question
A good model is ……………. related to a real life problem.
Loosely
Openly
Closely
Not

ak aggregation wala tha room and chair 

ak oop ke definition the us ka answer oop tha  

easy thay saray 

Plzz share quiz..

cs304 quiz 1 8 june 2018

1) In order to make any function constant, keyword const is placed at the __________ of the parameter list.

2) Three main characteristics of "Object Oriented Programming" are cs304 quiz

3) If a class A inherits from class B, then class A is called________

4) Operator overloading is

5) In _____________sender of a message does not need to know exact class of the receiver

6) What term is used for hiding the details of an object from the other parts of a program

7) Which of the following is a disadvantage of OOP

8) We can create array of objects if we have a user defined constructor

9) Sub-Object can not be initialized using the constructor


10) Which of the following is the way to extract common behaviour and attributes from the given classes and make a separate class of those common behaviours and attributes

RSS

Latest Activity

+ !!!R❤G liked + !!!R❤G's discussion Ikhalaq ki ahmiyat
8 minutes ago
+ !!!R❤G posted a discussion
9 minutes ago
+ !!!R❤G liked UMER UMER's discussion What is Love?
24 minutes ago
+ !!!R❤G liked + IUUOƆƎUT +'s discussion کہو تو لوٹ جاتے ہیں ۔ ۔ ۔
24 minutes ago
+ !!!R❤G liked + IUUOƆƎUT +'s discussion How Can You Get Secured of Being Banned On Ning
24 minutes ago
+ !!!R❤G liked UMER UMER's discussion What is Love?
24 minutes ago
+ !!!R❤G liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion Happy Birth Day Zargiyah (Tasha <3)
25 minutes ago
+ !!!R❤G liked +! ! ! "Asнтαℓғαн's discussion Happy wala Birthday tashy patashy ❤ (Tasha)
25 minutes ago
+ !!!R❤G liked 彡JK彡 ❤️'s discussion Don't Look for Perfection........ LOVE lies in imperfection
25 minutes ago
+ !!!R❤G liked 彡JK彡 ❤️'s discussion If you have sOmething stupid to saY............
25 minutes ago
+ !!!R❤G liked Waseem Khan's discussion Edu 402 Assinment No. 1 Solution
25 minutes ago
+ !!!R❤G liked Moji's discussion MCM301 assignment no 1
25 minutes ago
+ !!!R❤G liked + M.Tariq Malik's discussion VU Students Reserves The Right to Delete Any Profile On the Site
25 minutes ago
+ !!!R❤G and + ! ! ! ! ! ! ! ! ! AG are now friends
30 minutes 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
55 minutes 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
1 hour ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion CS302 Digital Logic Design Assignment No 02 Fall 2019 Solution & Discussion
1 hour ago
+ ! ! ! ! ! ! ! ! CuTe DrAmA updated their profile
1 hour ago

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

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