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

www.vustudents.ning.com

 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

# cs304 Object Oriented programming Online Quiz No. 01 Solution and Discussion Spring 2014 Due Date:May 9,2014

plz share yor 1st quiz cs304 here....

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

Views: 5625

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

### Replies to This Discussion

For preparation

##### False

Nice sharing..

ye theek solve hn? ya tuka ?????????????

Question # 1 of 10
Information hiding can be achieved through__________.

1. Encapsulation, Inheritance
2. Encapsulation, Polymorphism
3. Encapsulation, Abstraction

Question # 2 of 10 ( Start time: 01:11:21 AM ) Total Marks: 1
A good model is ................ related to a real life problem.
Select correct option:

1. Loosely
2. Openly
3. Closely

Question # 3 of 10 ( Start time: 01:12:33 AM ) Total Marks: 1
Which of the following features of OOP is used to derive a class from another?
Select correct option:

1. Encapsulation
2. Polymorphism
3. Data hiding
4. Inheritance

Question # 4 of 10 ( Start time: 01:13:51 AM ) Total Marks: 1
Which of the following is a weak relationship between two objects?
Select correct option:

1. Inheritance
2. Composition
3. Aggregation
4. None of given

Question # 5 of 10 ( Start time: 01:14:56 AM ) Total Marks: 1
Data items in a class must be private.
Select correct option:

1. True
2. False

Question # 6 of 10 ( Start time: 01:15:52 AM ) Total Marks: 1
Which one is a class association
Select correct option:

1. Simple Association
2. Inheritance
3. Composition
4. Aggregation

Question # 7 of 10 ( Start time: 01:16:55 AM ) Total Marks: 1
Suppose there is an object of type Person, which of the following can be considered as one of its attributes
Select correct option:

1. Name
2. Age
3. Work()
4. Both Name and Age

Question # 8 of 10 ( Start time: 01:17:52 AM ) Total Marks: 1
Which one is not an object association?
Select correct option:

1. Simple association
2. Inheritance
3. Aggregation
4. Association

Question # 9 of 10 ( Start time: 01:18:50 AM ) Total Marks: 1
Using encapsulation we can achieve
Select correct option:

1. Information hiding
2. Least interdependencies among modules
3. Implementation independence
4. All of given options

Question # 10 of 10 ( Start time: 01:19:43 AM ) Total Marks: 1
In constant member function the type of this pointer is:
Select correct option:

1. Constant pointer
2. Constant pointer to object
3. Constant pointer to class
4. Constant pointer to constant object

Question # 1 of 10
Which of the following is the way to extract common behavior and attributes from the given classes and make a separate class of those common behaviors and attributes?

1. Generalization
2. Sub-typing
3. Specialization
4. Extension

Question # 2 of 10
The ability to derive a class from more than one class is called

1. Single inheritance
2. Encapsulation
3. Multiple inheritance
4. Polymorphism

Question # 3 of 10:
If MyClass has a destructor what is the destructor named?

1. MyClass
2. ~MyClass
3. My~Class
4. MyClass~

Question # 4 of 10:
Class abc{ ----- }; Is a valid class declaration?

1. yes
2. no

Question # 5of 10:
Without using Deep copy constructor, A ____________ problem can occur

1. System crash
2. Memory Leakage
3. Dangling pointer
4. All of the given

Question # 6 of 10:
If only one behaviour of a derived class is incompatible with base class, then it is:

1. Generalization
2. Specialization
3. Extension
4. Inheritance

Question # 7 of 10:
Which of the following may not be an integral part of an object?

1. state
2. behavior
3. Protected data members
4. All of given

Question # 8 of 10:
Only tangible things can be chosen as an object.

1. True
2. False

Class is not a mechanism to create objects and define user data types.

true

false

Memory is allocated to non static members only, when:

Class is created

Object is defined

Object is initialized

Object is created

The sub-object's life is not dependent on the life of master class in ___________.

Composition

Aggregation

Separation

non of the given

Unary operators and assignment operator are right associative.

true

false

The >= operator can't be overloaded.

true

false

_____ is creating objects of one class inside another class.

Association

Composition

Aggregation

Inheritance

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

Object can be declared constant with the use of Constant keyword.

true

false

__________ Operator will take only one operand.

New

int

object

none of the given

Which of the following operator(s) take(s) one or no argument if overloaded?

++

*

%

All of the given choices

this pointer does not pass implicitly to __________ functions.

Static Member

Non-Static Member

Instance Number

None of the given

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

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

___________ Binding means that target function for a call is selected at run time

Automatic

Dynamic

Static

Dramatic

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

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

+..sahar..+  gud keep it up & thanks for sharing

good job...

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.

Attachments:

Here goes mine.

Quiz Start Time: 05:29 PM
Time Left 90
sec(s)
Question # 1 of 10 ( Start time: 05:29:10 PM ) Total Marks: 1
When we create objects, then space is allocated to:
Select correct option:
Member functions
Access specifier
Data members
None of the given

Quiz Start Time: 05:29 PM
Time Left 89
sec(s)
Question # 2 of 10 ( Start time: 05:30:51 PM ) Total Marks: 1
Information hiding can be achieved through__________.
Select correct option:
Encapsulation, Inheritance
Encapsulation, Polymorphism
Encapsulation, Abstraction

Quiz Start Time: 05:29 PM
Time Left 90
sec(s)
Question # 3 of 10 ( Start time: 05:31:56 PM ) Total Marks: 1
If a class A inherits from class B, then class A is called.
Select correct option:
Child class
Derived class
Parent class
Child and derived class

Quiz Start Time: 05:29 PM
Time Left 89
sec(s)
Question # 4 of 10 ( Start time: 05:33:28 PM ) Total Marks: 1
If MyClass has a destructor what is the destructor name?
Select correct option:
MyClass
~MyClass
My~Class
MyClass~

Quiz Start Time: 05:29 PM
Time Left 88
sec(s)
Question # 5 of 10 ( Start time: 05:35:08 PM ) Total Marks: 1
In inheritance, a child class is a sub-type of base class.
Select correct option:
True
False

Quiz Start Time: 05:29 PM
Time Left 90
sec(s)
Question # 6 of 10 ( Start time: 05:36:35 PM ) Total Marks: 1
Select correct option:
Better understanding
Less understanding
Reuse

Quiz Start Time: 05:29 PM
Time Left 90
sec(s)
Question # 7 of 10 ( Start time: 05:38:03 PM ) Total Marks: 1
Which of the following holds true if class A supports all the operations of class B?
Select correct option:
Class A is behaviourally compatible with class B
Class A is behaviourally incompatible with class B

Quiz Start Time: 05:29 PM
Time Left 90
sec(s)
Question # 8 of 10 ( Start time: 05:39:29 PM ) Total Marks: 1
Without using Deep copy constructor, A ____________ problem can occur
Select correct option:
System crash
Memory Leakage
Dangling pointer
All of the given

Quiz Start Time: 05:29 PM
Time Left 90
sec(s)
Question # 9 of 10 ( Start time: 05:40:50 PM ) Total Marks: 1
Which one is not the main feature of object oriented programming?
Select correct option:
Classes and Objects
Exception handling
Inheritance

Quiz Start Time: 05:29 PM
Time Left 89
sec(s)
Question # 10 of 10 ( Start time: 05:42:14 PM ) Total Marks: 1
Aggregation is implemented using pointer.
Select correct option:
True
False

+ §ђȋήȋήğ ஜ๏๏ή +   gud keep it up & thanks for sharing

Note for All Members: You don’t need to go any other site for this assignment/GDB/Online Quiz solution, Because All discussed data of our members in this discussion are going from here to other sites. You can judge this at other sites yourself. So don’t waste your precious time with different links.

## Latest Activity

Bilal posted discussions
6 minutes ago
Seoul updated their profile
20 minutes ago
Attiqa Usman and Farhan Malik joined Virtual University of Pakistan
50 minutes ago
Hira liked Hira's discussion EDU431 Quiz 2 Spring 2020
1 hour ago
Hira added a discussion to the group EDU431 Test Development & Evaluation

### EDU401 Quiz 2 Spring 2020

1 hour ago
Ezzah updated their profile
1 hour ago
+EH+ updated their profile
2 hours ago
zimal queen replied to + Ḱẚảḿḯ's discussion Mohabbat Ki Jhari
2 hours ago
Moona and Asad Waqas joined +M.Tariq Malik's group

### ENG201 Business and Technical English Writing

3 hours ago
Munna Bhai MBBS posted discussions
3 hours ago
Munna Bhai MBBS posted a status
4 hours ago
4 hours ago

1

2

3