Object Oriented System Design Questions and Answers – Foundations of Object Model – 2

This section of our 1000+ Object Oriented System Design MCQs focuses on Foundations of Object Model – 2.

1) Object oriented technology is built upon a sound engineering foundation, whose elements are collectively called as _________
a) Von Neumann Model
b) Object Model
c) Structured Model
d) Programming Model
View Answer

Answer: b
Explanation: The object mode encompasses the principles of abstraction, encapsulation, modularity, typing, concurrency, and persistence which are the principles of object oriented programming language.

2) Which of the following programming language are object oriented in nature
a) Smalltalk and Simula
b) FORTRAN and ALGOL
c) C and Ada
d) Perl and Python
View Answer

Answer: a
Explanation: In Smalltalk and Simula, data and methods of manipulating the data are kept as a single unit called an object.

3) Callback is an operation provided by
a) Inheritance
b) Encapsulation
c) Modularity
d) Abstraction
View Answer

Answer: d
Explanation: A call back is a programming idiom which a client provides a function to the server and the server calls the client’s function whenever the appropriate conditions are met.

4) :reader, :writer or :accessor are the slot options in
a) Smalltalk
b) LISP
c) Object Pascal
d) CLOS
View Answer

Answer: CLOS
Explanation: These are the options which grant a client read access, write access, or read/write access respectively.
advertisement
advertisement

5) Dependencies among files can then be asserted using the macro
a) #define
b) #undef
c) #include
d) #endif
View Answer

Answer: c
Explanation: Modular implementations are placed in file named with a .c sufficx which are called header files. #include is necessary to tell the preprocessor where to look for header files if they are not placed in the current directory.

6) Inheritance is an example of which type of hierarchy
a) Class Structure
b) Object Structure
c) Both
d) None of the mentioned
View Answer

Answer: a
Explanation: Inheritance is the most important “is a” (class structure) hierarchy and not “part of” (object structure) hierarchy.

7) Superclass represents ______________ abstractions
a) Generalized abstractions
b) Specialization abstractions
c) Both
d) None of the mentioned
View Answer

Answer: a
Explanation: Generalization is the process of extracting shared characteristics from two or more classes, and combining them into a generalized superclass.

8) Subclass represents _______________ abstractions
a) Generalized abstractions
b) Specialization abstractions
c) Both
d) None of the mentioned
View Answer

Answer: b
Explanation: Specialization means creating new subclasses from an existing class.
advertisement

9) _____________ is the property that distinguishes an active object from one that is not active.
a) Persistence
b) Typing
c) Aggregation
d) Concurrency
View Answer

Answer: d
Explanation: None.

10) Which of the following statements about object model is true?
I. Object model encourages the reuse of software and entire design of the application.
II. Object model produces systems that are built upon stable intermediate forms.
III. Object model reduce the inherent in developing complex systems.
IV. None of the mentioned
a) I, III
b) I, II
c) I, II, III
d) IV
View Answer

Answer: c
Explanation: All the above written statements are the benefits of object model.
advertisement

Sanfoundry Global Education & Learning Series – Object Oriented System Design.

To practice all features of Object Oriented System Design, here is complete set on 1000+ Multiple Choice Questions and Answers on Object Oriented System Design.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.