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

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

1) The method of design encompassing the process of object oriented decomposition and a notation for depicting both logical and physical and as well as static and dynamic models of the system under design is known as:
a) Object- Oriented Programming
b) Object- Oriented Design
c) Object- Oriented Analysis
d) None of the mentioned
View Answer

Answer: b
Explanation: The definition has two important parts. The former part uses the class and object abstractions to logically structure systems, and the latter uses algorithmic abstractions. The term object oriented design (OOD) is used to refer any method that leads to object oriented decomposition.

2) What is the programming style of the object oriented conceptual model?
a) Invariant relationships
b) Algorithms
c) Classes and objects
d) Goals, often expressed in a predicate calculus.
View Answer

Answer: c
Explanation: Object oriented programming follows a conceptual framework called object model and is implemented by writing classes and objects to make its style clear unlike procedure- oriented language.

3) The essential characteristics of an object that distinguish it from all other kinds of objects and thus provide crisply defined conceptual boundaries, relative to the perspective of the viewer is called:
a) Encapsulation
b) Modularity
c) Hierarchy
d) Abstraction
View Answer

Answer: d
Explanation: Abstraction focuses only on the outside view of an object and separates object’s essential behavior from its implementation. It explains what an object does but doesn’t explain how it does.

4) Abstraction is classified into _______ types
a) 4
b) 3
c) 2
d) 1
View Answer

Answer: a
Explanation: Entity abstraction, Action abstraction, Virtual machine abstraction, Coincidental abstraction
advertisement
advertisement

5) The process of compartmentalizing the elements of an abstraction that constitute its structure and behavior is called as
a) Hierarchy
b) Encapsulation
c) Modularity
d) Entity Abstraction
View Answer

Answer: b
Explanation: Encapsulation focuses upon the implementation that gives rise to this behavior and is mostly often achieved through information hiding i.e., abstraction.

6) Single inheritance, Multiple inheritance, and Aggregation comes under _______
a) Modularity
b) Typing
c) Hierarchy
d) None of the mentioned
View Answer

Answer: c
Explanation: All the three types are the examples of Hierarchy, as it denotes ranking or ordering of abstractions.

7) In which of the following mechanisms, types of all variables and expressions are fixed at compilation time.
a) Strong Typing
b) Weak Typing
c) Static Binding/ early binding
d) Dynamic Binding/ late binding
View Answer

Answer: c
Explanation: The memory address of a variable can be statically bound to the variable at compile time or dynamically at runtime. Likewise, variables in some languages have dynamic types that change during program execution, while other variables have static types that remain fixed over the execution of the program. Only the binding of the value determines whether the object is a variable or something else (such as constant).

8) In which of the following mechanisms, types of all variables and expressions are not known until runtime
a) Strong Typing
b) Weak Typing
c) Static Binding/ early binding
d) Dynamic Binding/ late binding
View Answer

Answer: d
Explanation: The memory address of a variable can be statically bound to the variable at compile time or dynamically at runtime. Likewise, variables in some languages have dynamic types that change during program execution, while other variables have static types that remain fixed over the execution of the program. Only the binding of the value determines whether the object is a variable or something else (such as constant).
advertisement

9) Which of the following statements about Persistence is correct?
a) It is the enforcement of the class of an object, such that objects of different types may not be interchanged, or at the most they may be interchanged only in very restricted ways.
b) It is the property of an object through which its existence transcends time and/or space.
c) It is the property that distinguishes an active object from one that is not active.
d) All of the mentioned
View Answer

Answer: b
Explanation: Persistence deals with lifetime of data. Persistence saves the state and class of an object across time or space.

10) What is that concept in type theory in which a single name may denote objects of many different classes that are related by some common super class referred to ______
a) Monomorphism
b) Type Checking
c) Polymorphism
d) Generalization
View Answer

Answer: c
Explanation: Polymorphism is a feature of object oriented programming that usually takes the ability of creating an object, or variable, or a function in more than one form. Polymorphism exists when the features of inheritance and dynamic binding interact.
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.