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

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

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

Latest Activity

+!!! ❤️ Shadow Girl❤️!!! liked zohaib iftikhar's blog post !!!!SACH KAHN TO YEH ANWAN BURA LAGTA HAI!!!!*
14 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS501 Assignment 01 Fall 2020 Solution / Discussion Due Date: 30-11-2020 in the group CS501 Advance Computer Architecture
18 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS501 Assignment 01 Fall 2020 Solution / Discussion Due Date: 30-11-2020 in the group CS501 Advance Computer Architecture
19 minutes ago
+M.Tariq Malik liked +M.Tariq Malik's discussion CS501 Assignment 01 Fall 2020 Solution / Discussion Due Date: 30-11-2020
19 minutes ago
+M.Tariq Malik added a discussion to the group CS501 Advance Computer Architecture
20 minutes ago
+ " J i y a " ♥ posted photos
28 minutes ago
Profile IconAshraf Butt, sara khan, jawad ali and 14 more joined Virtual University of Pakistan
38 minutes ago
Mani Siddiqui Ex replied to +M.Tariq Malik's discussion CS508 Assignment 01 Fall 2020 Solution / Discussion in the group CS508 Modern Programming Languages
41 minutes ago
+!!! ❤️ Shadow Girl❤️!!! replied to jawad's discussion Tum Se pahle woh Jo shaks takat nashin tha || Habib jalib poetry|| Urdu poetry
42 minutes ago
+!!! ❤️ Shadow Girl❤️!!! liked jawad's discussion Tum Se pahle woh Jo shaks takat nashin tha || Habib jalib poetry|| Urdu poetry
42 minutes ago
مخلص posted a discussion
43 minutes ago
+!!! ❤️ Shadow Girl❤️!!! liked ++!!Zuni Khan(Am Cyco)'s discussion تم سمندر کی بات کرتے ہو...لوگ آنکھوں میں ڈوب جاتے ہیں
51 minutes ago

Looking For Something? Search Here

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

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

.