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
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
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
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
Explanation: These are the options which grant a client read access, write access, or read/write access respectively.
5) Dependencies among files can then be asserted using the macro
a) #define
b) #undef
c) #include
d) #endif
View Answer
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
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
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
Explanation: Specialization means creating new subclasses from an existing class.
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
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
Explanation: All the above written statements are the benefits of object model.
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.