We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Quiz of mugle azam

 

Q1.   Suppose "Cat" is a real world object that you want to transform into programming entity. For this, which of the following concepts would you use?

 

Ans are bold

 

Class

  • Function
  •  

Q2.      In inheritance, a child class is a sub-type of base class.

 True

false

 

Q3       Main characteristic of information hiding is:

Limited access

Unlimited access

Keep the model interesting

 

 

Q4.      Which one is not the main feature of object oriented programming?

 

Classes and Objects

Exception handling

Inheritance

Polymorphism

 

Q5.      Declaring object of a concrete class in the definition of main function

  Writing output statement in constructor’s definition

  Declaring object of an abstract class

Declaring object of a class having all virtual functions

  •  

 

Q6.      Which of the following may not be an integral part of an object?

 

State

Behavior

Protected data members

All of given

 

 

 

Q7.      Which of the following features of OOP is used to derive a class from another?

 

Encapsulation

Polymorphism

Data hiding

Inheritance

 

 Quiz Mehar Noor

 

Q1.      The dot operator (or class member access operator) connects the following two entities (reading from left to right):

 

  • A class member and a class object
  • A class object and a class
  • A class and a member of that class
  • A class object and a member of that class

 

Q2.      Which of the following may not be an integral part of an object?

State

Behavior

Protected data members

All of given

 

Q3.      We can choose any arbitrary name for a constructor.

True

False

 

Q4.      Which one is not the main feature of object oriented programming?

 

Classes and Objects

Exception handling

Inheritance

Polymorphism

 

Q5.   The technique in which we visualize our programming problems according to real life’s problems is called

 

Structure programming

Object oriented programming

 Procedural programming

None of the above

 

Q6.      Which of the following is a necessary component of a class diagram?

Class

Attribute

Association

All of the given

 

Q7.      Which of the following is/are the integral part of an object?

State

Behavior

Unique identity

All of given

 

Q8.      If a class A inherits from class B, then class A is called.

Child class

Derived class

 

 

Q9.      In case base and derived classes are behaviorally compatible, base class can always be replaced by derived class.

True

False

 

Q10.    Which of the following parts of an object exhibits its state?

Data

Operations

Any public part

Any private part

 

 

Quiz princess faries

 

Q1.      Member functions defined inside a class declaration are ________ by default.

Visible

Public

Private

Changed

 

Q2.      Which of the following is/are the integral part of an object?

State

Behavior

Unique identity

all of given

 

Q3.   The dot operator (or class member access operator) connects the following two entities (reading from left to right):

A class member and a class object

A class object and a class

A class and a member of that class

A class object and a member of that class

 

Q4.      An instance of user defined type is called

Object

Class

Both

None

 

Q5.      In a class declaration, data or functions designated private are accessible

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.

 

Q6.   The technique in which we visualize our programming problems according to real life’s problems is called

Structure programming

Object oriented programming

Procedural programming

None of the above

 

Q7.   What term is used for hiding the details of an object from the other parts of a program?

Obfuscation

Data Mining.

Compilation

Encapsulation

 

Q8.   The sentence “Object Oriented Programming book in bookshelf” is an example of:

Binary association

Association

Multiple association

Aggregation

Q9.      There is only one form of copy constructor.

True

False

 

Q10.    Which of the following features of OOP is used to deal with only relevant details?

Abstraction

Information hiding

Inheritance

 

Q1.      Which of the following is a necessary component of a class diagram?

Class

Attribute

Association

All

 

Q2.  When a base class can be replaced by the derived class then it is called

Sub-typing

Super-typing

Generalization

Specialization

 

Q3.      Which of the following holds true if class A supports all the operations of class B?

Class A is behaviorally compatible with class B

Class A is behaviorally incompatible with class B

Class A is independent of class B

 

Q4.      Which of the following is not an object association?

Simple association

Inheritance

Aggregation

Composition

 

Q5.      Defining a function in class body, the compiler treats that function as:

User defined function

Static function

Inline function

 

Q6.      Which one is not the main feature of object oriented programming?

Classes and Objects

Exception handling

Polymorphism

Inheritance

Q7.      Which of the following is not a major element in an object model?

Encapsulation

Persistence

Hierarchy

 

Q8.      Which of the following is a class association?

Simple Association

Inheritance

Composition

Aggregation

 

Q9.   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?

Generalization

Sub-typing

Specialization

Extension


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


Views: 3900

Replies are closed for this discussion.

Replies to This Discussion

broken mirror .kindly post these quizzes into CS 304 Subject group..

here .. http://vustudents.ning.com/group/cs304objectorientedprogramming

Jazak Allah.. 

regards,

oh you r right ,,,,,,,,just forgot

you are requested to please upload the study related discussion in the relevant subject group.

Thanks 

 

abb choor do kar tou dia study group mai...............

ghalti se ho gya yaha per...........................

RSS

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

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

.