EM STD 12 CH 6_solution-1
EM STD 12 CH 6_solution-1
Page 1
(C) ‘a-part-of’ relationship (D) All of these
Ans. : ‘is-a’ relationship
9. In class diagram, compositions is represented using which of the following
symbols ?
(A) Empty diamond symbol (B) Filled diamond symbol
(C) Empty triangle symbol (D) All of these
Ans. : Filled diamond symbol
10. TO distinguish one person from another ……….. is used.
(A) property (B) function (C) method (D) class
Ans. : property
11. Object based programming provides ……….. types of object properties.
(A) 3 (B) 4 (C) 5 (D) 6
Ans. : 4
12. In real world, …………. are the entities of which the world is comprised.
(A) classes (B) objects (C) functions (D) attributes
Ans. : objects
13. Object contain ………… .
(A) data (B) functionality (C) both (A) and (B) (D) none of these
Ans. : (A) and (B)
14. At present we are in living in the era of ………… .
(A) internet (B) website (C) web based (D) all of these
process
Page 2
(A) object (B) class (C) property (D) function
Ans. : object
19. Programming way is divided into …………… categories.
(A) 2 (B) 3 (C) 4 (D) 5
Ans. : 2
20. ……… is the base for object based programming.
(A) Class (B) Object (C) Function (D) Attribute
Ans. : Object
21. ………… is very useful to distinguish objects.
(A) Function (B) Class (C) Method (D) State
Ans. : State
22. Behavior is called ………….. .
(A) function (B) class (C) method (D) state
Ans. : method
23. ……… can be used to create models of object oriented programming software.
(A) UML (B) ULM (C) UNL (D) ULN
Ans. : UML
24. UML is a ………….. type of language.
(A) visible (B) visual (C) modeling (D) all of these
Ans. : 4
27. Normally attribute indicates ……….. .
(A) variable (B) constant (C) function (D) method
Ans. : variable
28. Object differ in their ………… .
(A) state (B) attribution (C) method (D) property
Ans. : state
Page 3
29. If necessary, the data is made available via ……….. methods.
(A) public (B) personal (C) database (D) secured
Ans. : public
30. ADT stands for ………. .
(A) Access Data (B) Abstract Data (C) Absolute Data (D) Advanced Data
Types Types Types Types
Ans. : Abstract Data Types
31. Many form is known as ………… .
(A) composition (B) aggregation (C) messaging (D) polymorphism
Ans. : polymorphism
32. What is inheritance ?
(A) Application (B) Relationship (C) Functions (D) Format
Ans. : Relationship
33. Operator is being operated on ……….. .
(A) operator (B) operands (C) operation (D) opera
Ans. : operands
34. Subject class is also called ……… .
(A) part class (B) aggregated (C) both (A) and (B) (D) owner class
class
Ans. : (A) or (B)
35. What type of relationship between two classes is called inheritance ?
(A) is-a-kind-of (B) is-two-kinds-of (C) is-three-kinds-of (D) many-kinds-of
Ans. : is-a-kind-of
36. Composition is …………. type of aggregation.
(A) active (B) weak (C) strong (D) none of these
Ans. : strong
37. In Object-oriented methodology, the focus is on which of the following entities?
(A) Objects (B) Functions (C) Data (D) All of the above
Ans. : Objects
38. Which of the following best suits to Java?
(A) An Object-oriented programming (B) A procedural programming
language language
(C) A Query language (D) All of the above
Ans. : An Object-oriented programming language
Page 4
39. Which of the following is used to distinguish objects from each other?
(A) Attributes (B) State (C) Behavior (D) All of the above
Ans. : State
40. Winch of the following is used to define common features of similar objects?
(A) Class (B) Object (C) Methods (D) All of the above
Ans. : Class
41. Which of the following is not a visibility symbol?
(A) ~ (B) * (C) # (D) —
Ans. : *
42. Which of the following is provided using encapsulation?
(A) Data protection (B) Data sharing•
(C) Separation of data and methods (D) All of these
Page 5
Ans. : 1980
48. For which of the following purposes object- oriented technology was developed?
(A) To handle the rapidly increasing size and complexity of software systems
(B) To make it easier to modify these large and complex systems over time.
(C) a and b both
(D) None of these
Page 6
55. What should we need to think with the objects in object-oriented programming
language?
(A) Association between objects (B) About maximum objects
(C) About minimum objects (D) None of these
Ans. : Flexibility
59. What does object-oriented programming use as its fundamental building
blocks?
(A) Object (B) Class (C) Method (D) Programmer
Ans. : Object
60. Which of the following concepts is used to classify similar objects?
(A) Class (B) Method (C) Property (D) Attribute
Ans. : Class
61. How many object properties does an object has?
(A) Three (B) Five (C) Four (D) Two
Ans. : Four
62. Which properties is the object provided by object oriented language?
(A) Abstraction (B) Encapsulation
(C) Polymorphism and Inheritance (D) All of these
Page 7
Ans. : All of these
64. If any computer language supports four specific object properties called
abstraction, encapsulation, polymorphism and inheritance then what is this
language called?
(A) Procedural (B) Object-oriented (C) Structured (D) None of these
Ans. : Object-oriented
65. In the “real” world, which of the following is the entity the world is comprised
of?
(A) Object (B) Class (C) Property (D) Attribute
Ans. : Object
66. Which of the following objects are available physically?
(A) Person, Car or coffee cup (B) Date and Time concept
(C) a and b both (D) None of these
Ans. : Caption
71. In which of the following terms can objects be described in “real” world?
(A) Identity (B) State (C) Behavior (D) All of these
Ans. : All of these
72. What are the attributes referred which describe the object in object-oriented
programming?
(A) Data field (B) Property (C) Caption (D) ID
Page 8
Ans. : Data field
73. The data attributes and behavioral methods associated with an object are
referred as following.
(A) None of these (B) a or b (C) Feature (D) Member
Ans. : a or b
74. By what do objects differ from each other when they possess same
characteristics and behavior?
(A) State (B) Sub sections
(C) Internal sections (D) None of these
Ans. : State
75. Which concept does object-oriented system use?
(A) State (B) Class (C) Property (D) Attribute
Ans. : Class
76. Which of the following enables to express the set of objects that are abstractly,
differing only in the values of their attributes?
(A) Class (B) State (C) Property (D) Attribute
Ans. : Class
77. What can be considered as a blue print for various objects?
(A) Class (B) State (C) Property (D) Attribute
Ans. : Class
78. For which can class be considered as a blueprint?
(A) for various values of state (B) for various objects
(C) for only one object (D) None of these
Ans. : for various objects
79. Which of the following is a template for multiple objects with similar features?
(A) Class (B) State (C) Field (D) Method
Ans. : Class
80. Which of the following describes a group of objects with similar attributes and
common behavior?
(A) Class (B) State (C) Field (D) Method
Ans. : Class
81. Which of the following is a general concept used to embody all the common
features of a particular set of objects?
(A) Classe (B) Stat (C) Field (D) Method
Page 9
Ans. : Classe
82. With which kind features a class is a template for multiple objects?
(A) Similar (B) Different (C) Same-Five (D) Same-Two
Ans. : Similar
83. Which type of group of objects a class is?
(A) With similar attributes and common behavior
(B) With different attributes
(C) With different behavior
(D) None of these
Ans. : With similar attributes and common behavior
84. Which kind of semantic purpose objects in the same class has?
(A) Different (B) Same (C) Improper (D) Irrespective
Ans. : Same
85. What is going to be considered for each individual, if we have a class named
‘Person’ describing common attributes and behavior of all persons?
(A) Object (B) State (C) Behavior (D) Property
Ans. : Object
86. By what is each object identified?
(A) Symbol (B) State (value of the attribute)
(C) ID (D) None of these
Ans. : State (value of the attribute)
87. ‘Which of the following represents a collection of classes, constraints and
relationship among classes?
(A) Class-diagram (B) Object-diagram
(C) Memory-diagram (D) Field-diagram
Ans. : Class-diagram
88. What does class-diagram represent?
(A) A collection of classes (B) Constraints
(C) Relationship among classes (D) All of these
Ans. : All of these
89. What is the full form of UML?
(A) Unicode Mixer Language (B) Unicode Main Language
(C) Unified Modelling Language (D) Unified Main Language
Ans. : Unified Modelling Language
Page 10
90. What is helpful to design an application?
(A) Models of software (B) Founder of the software
(C) Developer of software (D) None of these
Ans. : Models of software
91. Which of the following languages is a visual modelling language?
(A) UML (B) HTML (C) XML (D) DHTML
Ans. : UML
92. Which of the following languages is defined and maintained by the Object
Management Group?
(A) UML (B) HTML (C) XML (D) DHTML
Ans. : UML
93. By which of the following Unified Modelling Language (UML) is defined?
(A) 0MG (B) OMIJ (C) UV1O (D) GOM
Ans. : 0MG
94. Who maintains UML?
(A) 0MG (B) OMIJ (C) UV1O (D) GOM
Ans. : 0MG
95. What is the full form of 0MG?
(A) Object Management Group (B) Object Master Group
(C) Onscreen Management Group (D) Open Management Group
Ans. : Object Management Group
96. Which kind of language UML is?
(A) Web designing language (B) Web developing language
(C) Visual modelling language (D) Animation language
Ans. : Visual modelling language
97. Which of the following has the purpose to model the static view of an
application?
(A) Cryptography (B) Compressed-diagram
(C) Class-diagram (D) Data-diagram
Ans. : Class-diagram
98. Which of the following is widely used among software developer?
(A) Class-diagram (B) Compressed-diagram
(C) Cryptography (D) Data-diagram
Ans. : Class-diagram
Page 11
99. What is class-diagram?
(A) Diagrams (B) Steps (C) Symbols (D) Data-diagram
Ans. : Diagrams
100. With which icon a class is represented diagram?
(A) Rectangle (B) Parallelogram (C) Square (D) Round
Ans. : Rectangle
101. In how many sections is a rectangle which is used to represent a class split?
(A) Three (B) Four (C) Five (D) Two
Ans. : Three
102. In which sections is a rectangle which is used to represent a class split?
(A) Name (B) Attribute (C) Behavior (D) Al of these
Ans. : Al of these
103. Which of the following bracketed items are optional in UML notation?
(A) [] (B) <> (C) () (D) { }
Ans. : []
104. What does attribute refer to generally?
(A) variable (B) Data type (C) Value (D) Constant
Ans. : variable
105. Which item is mandatory and all other items are optional in syntax of attribute?
(A) Attribute name (B) Initial value (C) Data type (D) a and b both
Ans. : Attribute name
106. Which of the following syntax is true to declare a variable balance as private and
with initial value 0.0?
(A) — Balance: Float 0.0 (B) _Float =0.0
(C) + Balance: Float = 0.0 (D) # Balance: 0.0
Ans. : — Balance: Float 0.0
107. Which of the following syntax is used to declare a variable Gender with initial
value ‘M’?
(A) _Char = ‘M’ (B) _String = ‘M’ (C) Gender Char = (D) _Char as =’M’
‘M’
Ans. : _Char = ‘M’
108. What can be specified depending on whether parameter is read only or not?
(A) Input (B) Output (C) a or b (D) None of these
Ans. : a or b
109. With what are objects represented during execution of an application?
(A) state (B) Symbol (C) code (D) None of these
Ans. : state
110. As which of the following are class objects also known as?
(A) Instance (B) Method (C) Behavior (D) None of these
Ans. : Instance
111. Which are two elements of any computer program?
(A) Data (B) Functions (C) a and b both (D) None of these
Ans. : a and b both
112. In which of the following programming are data and functions separate
entities?
(A) Structured (B) Object-oriented (C) Animation (D) Web based
Ans. : Structured
113. In which of the following programming data can be altered by any component
of the program?
(A) Procedural (B) Animation (C) Object (D) Web
Ans. : Procedural
114. Which of the following programming is not protected from modification (value
of data)?
(A) Object (B) Procedural (C) Animation (D) Web
Ans. : Procedural
115. Which mechanism provides protection to data and methods of a program?
(A) Encapsulation (B) Data-Abstraction (C) Polymorphism (D) Data-Abstraction
Ans. : Encapsulation
116. Which of the following has ability to hide the data?
(A) Encapsulation (B) Polymorphism (C) Data-Abstraction (D) Data-Abstraction
Ans. : Encapsulation
117. What type of encapsulation is possible by wrapping data and methods into a
class?
(A) public (B) protected (C) private (D) multi
Ans. : private
118. What is known as the wrapping of data and methods into a single unit?
(A) Class (B) Object (C) Field (D) Encapsulation
Ans. : Class
119. Private members of the class are not available directly to outside world” -
Specify this statement.
(A) This statement is true. (B) This statement is false.
(C) It depends on class. (D) It depends on data.
Ans. : object
124. Which of the following programming prevents direct access of common data by
other programs?
(A) object (B) script (C) web (D) animation
Ans. : object
125. Which of the following statements is true for object-oriented programming?
(A) Only the object that “owns” the data can change its content.
(B) Other objects can view it.
(C) Other objects can change this data by sending message to the “owner”.
(D) All of these.
Ans. : Data-Abstraction
130. Which of the following is not a new concept for programming?
(A) Data-Abstraction (B) Encapsulation (C) Polymorphism (D) Messaging
Ans. : Data-Abstraction
131. By which of the following functions data- abstraction concept can be
understood in C programming?
(A) sqrt(25) (B) print(“Hello”) (C) a and b both (D) None of these
Ans. : a and b both
132. What does a user defined function with necessary input data parameters
provide?
(A) Data-Abstraction (B) Encapsulation (C) Polymorphism (D) Class
Ans. : Data-Abstraction
133. What does data-abstraction maintain visible?
(A) Abstract behavior of the data type
(B) Details of how the behavior of the data type is implemented
(C) a and b both
(D) None of these
Ans. : Abstract behavior of the data type
134. Which of the following is hidden in data- abstraction?
(A) Abstract behavior of the data type
(B) Details of how the behavior of the data type is implemented
(C) a and b both
(D) None of these
Ans. : Details of how the behavior of the data type is implemented
135. Which of the following is an example of data- abstraction?
(A) Abstract Data Types or structures in C/C++
(B) Classes in C++/Java
(C) a and b both
(D) None of these
Ans. : a and b both
136. In which of the following do we simply define a data type and a set of
operations on it?
(A) ADT (B) DTA (C) OOP (D) 0MG
Ans. : ADT
137. What is the full form of ADT?
(A) Abstract Data Types (B) Abstract Date Types
(C) Advanced Data Types (D) Abstract Dynamic Types
Ans. : Abstract Data Types
138. Which of the following protects data by making them inaccessible from outside?
(A) Encapsulation (B) Abstraction (C) Messaging (D) Polymorphism
Ans. : Encapsulation
139. Which of the following enables to represent data in which the implementation
details are hidden?
(A) Encapsulation (B) Abstraction (C) Messaging (D) Polymorphism
Ans. : Abstraction
140. What is referred as a call oriented terminology?
(A) Abstraction (B) Encapsulation (C) Polymorphism (D) Message
Ans. : Message
141. Due to which of the following all method calls are handled by objects that
recognize the method?
(A) Encapsulation (B) Abstraction (C) Polymorphism (D) Message
Ans. : Encapsulation
142. “Different classes may have same methods with to a method in object same
name.” Specify this statement.
(A) This statement is true. (B) This statement is false.
(C) It depends on class. (D) It depends on metho
Ans. : This statement is true.
143. What does polymorphism mean?
(A) Many forms (B) different forms (C) a or b (D) None of these
Ans. : a or b
144. What is called as different forms of single method or operation?
(A) Data-Abstraction (B) Encapsulation (C) Polymorphism (D) Messaging
Ans. : Polymorphism
145. Is it possible to define more than one function with same name in some
programming languages.” Which of the following is a true answer of this
question?
(A) No (B) Yes
(C) It depends on OS. (D) It depends on user
Ans. : No
146. “Is it possible to define more than one function with same name in object
oriented programming.” — Which of the following is a true answer of this
question?
(A) It is possible as long as the methods differs in signatures.
(B) It is possible when signature is not defined.
(C) a and b both
(D) None of these
Ans. : It is possible as long as the methods differs in signatures.
147. Which type of functions can be defined more than one time with same name in
object oriented programming?
(A) Methods differs in signatures.
(B) Methods same in signatures.
(C) a and b both
(D) None of these
Ans. : Aggregation
159. In which of the following can the class that forms part of the owner class exist
independently?
(A) Aggregation (B) Polymorphism (C) Encapsulation (D) Abstraction
Ans. : Aggregation
160. In which of the following is the life of an object of the part class not determined
by the owner class?
(A) Aggregation (B) Polymorphism (C) Encapsulation (D) Abstraction
Ans. : Aggregation
161. Which of the following represents exclusive relationship between two classes?
(A) Aggregation (B) Polymorphism (C) Encapsulation (D) Composition
Ans. : Composition
162. Which of the following is a strong type of aggregation where the lifetime of the
part class depends on the existence of the owner class?
(A) Aggregation (B) Polymorphism (C) Encapsulation (D) Composition
Ans. : Composition
163. What is known as the class when it contains object of other class?
(A) Owner Class (B) Whole Class
(C) Aggregating Class (D) All of these
Ans. : All of these
164. What is known as the class when it is contained in owner class?
(A) Subject Class (B) Part Class
(C) Aggregated Class (D) All of these
Ans. : All of these
165. Which class is an example of aggregating class when Person class has Name
and Address class?
(A) Person (B) Address (C) Name (D) All of these
Ans. : Person
166. Which of the following refers to the capability of defining a new class of objects
that inherits the characteristics of another existing class?
(A) Aggregation (B) Inheritance (C) Composition (D) Encapsulation
Ans. : Inheritance
167. What is called an existing class in object-oriented terminology?
(A) Super class (B) Parent class (C) Base class (D) All of these
Ans. : All of these
168. Choose the data attributes and methods of the class that are available to objects
in the subclass without rewriting their declaration.
(A) Super (B) Sub (C) Child (D) Derived
Ans. : Super
169. Which feature provides reusability where existing methods can be reused
without redefining?
(A) Aggregation (B) Inheritance (C) Composition (D) Encapsulation
Ans. : Aggregation
170. What can be done in sub class?
(A) New data can be adde (B) New members can be added.
(C) a and b both (D) None of these
Ans. : a and b both
171. “Inheritance allows the methods to be redefined in subclass as per need.”
Specify this statement.
(A) This statement is true. (B) This statement is false.
(C) It depends on object. (D) It depends on class
Ans. : Object
188. Which of the following represents non-exclusive relationship between two
classes?
(A) Aggregation (B) Composition (C) Encapsulation (D) Polymorphism
Ans. : Aggregation
189. Which of the following represents exclusive relationship between two classes?
(A) Aggregation (B) Composition (C) Encapsulation (D) Polymorphism
Ans. : Composition
190. Which type of features are implemented in subclass in inheritance?
(A) Common (B) Special (C) a and b both (D) None of these
Ans. : Special
----- EM STD 12 CH 6 -----