0% found this document useful (0 votes)
29 views

EM STD 12 CH 6_solution-1

Uploaded by

sagarsmit200809
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

EM STD 12 CH 6_solution-1

Uploaded by

sagarsmit200809
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Date : 19-10-2024 STD 12 Science COMPUTER Total Marks : 190

* Choose The Right Answer From The Given Options: [190]

1. Which of the following is enabled by data abstraction ?


(A) Data protection
(B) Data hiding
(C) To hide implementation details of method manipulating the data
(D) All of these
Ans. : To hide implementation details of method manipulating the data
2. Which of the following best suits to Java ?
(A) A procedural programming language
(B) An Object-oriented programming language
(C) A Query language
(D) All of the above
Ans. : An Object-oriented programming language
3. Which 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
4. Which of the following is not a visibility symbol ?
(A) ~ (B) * (C) # (D) -
Ans. : *
5. In Object-oriented methodology, the focus is on which of the following entities ?
(A) Data (B) Functions (C) Objects (D) All of the above
Ans. : Objects
6. Which of the following is provided using encapsulation ?
(A) Data protection (B) Data sharing
(C) Separation of data and methods (D) All of these
Ans. : Data protection
7. An aggregation model refers to which of the following relationships ?
(A) ‘is-a’ relationship (B) ‘is-like’ relationship
(C) ‘a-part-of’ relationship (D) All of these
Ans. : ‘is-a’ relationship
8. An inheritance model refers to which of the following relationships ?
(A) ‘is-a’ relationship (B) ‘has-a’ relationship

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

Ans. : all of these


15. Java programming language was developed in ……… .
(A) 1950 A.D. (B) 1960 A.D. (C) 1970 A.D. (D) 1980 A.D.

Ans. : 1960 A.D.


16. …………. Is the example of concrete object.
(A) Person (B) Car (C) Computer (D) All of these

Ans. : All of these


17. ………. Is true about objects.
(A) Objects have unique identity (B) Objects are distinguishable
(C) A and B both (D) None of these

Ans. : (A) and (B) both


18. Focus is on ……….. in object oriented programming.

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. : all of these


25. What is class diagram ?
(A) Diagrams which are mapped (B) Points
(C) Objects (D) Graph
Ans. : Diagrams which are mapped
26. As per how many visibilities the UML notation can be written ?
(A) 3 (B) 4 (C) 5 (D) 6

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

Ans. : Data protection


43. An aggregation model refers to which of the following relationships?
(A) ‘has-a’ relationship (B) ‘is-not-a’ relationship
(C) ‘a-part-of’ relationship (D) All of these

Ans. : ‘has-a’ relationship


44. An inheritance model refers to which of the following relationships?
(A) ‘is-a’ relationship (B) ‘has-a’ relationship
(C) ‘a-part-of’ relationship (D) All of these
Ans. : ‘is-a’ relationship
45. In class diagram, composition is represented using which of the following
symbols?
(A) Filled diamond symbol (B) Empty diamond symbol
(C) Empty triangle symbol (D) All of these

Ans. : Filled diamond symbol


46. Which of the following methodologies is easier to maintain, reuse and enhance
for developing software?
(A) Procedural Programming (B) Object-oriented Programming
(C) Web Programming (D) All of these

Ans. : Object-oriented Programming


47. Which of the following years mid Object-oriented programming become the
main programming paradigm used in creation of new software?
(A) 1980 (B) 1970 (C) 1960 (D) 1950

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

Ans. : a and b both


49. Which of the following programming languages support object-oriented
programming?
(A) C++, Java (B) VB.net, Asp.net (C) C #, PHP (D) All of these
Ans. : All of these
50. In which of the following categories can the programming be divided?
(A) Structure I Procedural Programming
(B) Object-oriented Programming
(C) a and b both
(D) None of these
Ans. : a and b both
51. Where do we focus while writing the following for procedural programming?
(A) Functions (B) Procedures (C) a and b both (D) None of these

Ans. : a and b both


52. Which module is mainly focused in procedural programming for library
application?
(A) Student registration (B) Book issue
(C) Book return, Fine calculation (D) All of these
Ans. : All of these
53. Which of the following does object contain in object-oriented programming?
(A) Data and Functionality (B) Data and Distribution
(C) Link and Distribution (D) None of these

Ans. : Data and Functionality


54. Which of the following objects can we think for Library application created using
object-oriented programming?
(A) Student (B) Book (C) Librarian (D) All of these
Ans. : All 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. : Association between objects


56. Which kind of code does the power of object- oriented programming language
enable the programmer to create?
(A) Modular (B) Reusable (C) extendable (D) All of these
Ans. : All of these
57. By which of the following can the programmer formulate a program by
composition and modification of existing modules?
(A) Modular (B) Reusable (C) extendable (D) All of these
Ans. : All of these
58. What is gained by being able to change or replace modules without disturbing
other parts of code?
(A) Variability (B) Flexibility (C) Selection (D) Attraction

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

Ans. : All of these


63. Which of the following are properties of object?
(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. : Person, Car or coffee cup


67. Which of the following objects may be in abstract form?
(A) Person,car (B) a and b both
(C) Date and Time concept (D) None of these

Ans. : Date and Time concept


68. What are the characteristics known as by which objects can be distinguished by
each other?
(A) Property (B) Attribute (C) a or b (D) None of these
Ans. : a or b
69. What is known as the value of attributes which we use to identify the object?
(A) Property (B) State (C) Caption (D) Validation
Ans. : State
70. Behavior is known as the following one.
(A) Caption (B) Alias (C) Method (D) Design

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. : This statement is true.


120. Which method is used to make data available to the outside world?
(A) private (B) public (C) multi (D) single
Ans. : public
121. Which of the following keeps the data safe from unintended actions and
inadvertent access by outside objects?
(A) Encapsulation (B) Abstraction (C) Polymorphism (D) Aggregation
Ans. : Encapsulation
122. In procedural programming which type of data areas are often used for sharing
information?
(A) common (B) private (C) single (D) multi
Ans. : common
123. Which of the following programming techniques is an opposite kind of
technique than the procedural programming?
(A) script (B) object (C) web (D) animation

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. : All of these.


126. Which of the following is a process of representing the essential features of the
objects without including implementation details?
(A) Polymorphism (B) Encapsulation (C) Data-Abstraction (D) Messaging
Ans. : Data-Abstraction
127. Which of the following is a concept that hides the complexity?
(A) Data-Abstraction (B) Encapsulation (C) Polymorphism (D) Messaging
Ans. : Data-Abstraction
128. Which of the following is a concept that says what it does, but not how it is
done?
(A) Data-Abstraction (B) Messaging (C) Encapsulation (D) Polymorphism
Ans. : Data-Abstraction
129. Which of the following is a technique that relies on the separation of interface
and implementation?
(A) Data-Abstraction (B) Polymorphism (C) Encapsulation (D) Messaging

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. : Methods differs in signatures.


148. What does signature mean?
(A) Number of parameters (B) Type of parameter
(C) a and b both (D) None of these
Ans. : a and b both
149. We have written a function named ‘Max’ that takes two integers as parameters
and returns maximum as integer value and one more function named ‘Max’ that
finds maximum of integer elements stored in an array. What is known as this
creation?
(A) Polymorphism (B) Encapsulation (C) a and b both (D) None of these.
Ans. : Polymorphism
150. Object-oriented programming allows to define more than one method having
same name but different signatures in a single class. What is known as this
characteristic?
(A) Function (B) Method overloading
(C) a or b (D) None of these
Ans. : a or b
151. In object-oriented programming same operation is given different meanings
depending upon the data type of operands used. By what can this type of
Polymorphism be achieved?
(A) Operator overloading (B) Aggregation
(C) Data-Abstraction (D) Encapsulation
Ans. : Operator overloading
152. By which of the following overloading is polymorphism possible?
(A) Operator overloading (B) Function overloading
(C) a and b both (D) None of these

Ans. : a and b both


153. What is called the capability of using same names to mean different things in
different context in general?
(A) Overloading (B) Aggregation (C) Composition (D) Encapsulation
Ans. : Overloading
154. What is called when objects of one class are composed of other class?
(A) Aggregation (B) Composition (C) a or b (D) Overloading
Ans. : a or b
155. Which relationship does aggregation or composition represent between
different classes?
(A) has-a (B) a-part-of (C) a or b (D) None of these
Ans. : a or b
156. A computer screen is a class with following attribute?
(A) length (B) width (C) model (D) All of these
Ans. : All of these
157. Which attributes will a class contain when we define a class ‘computer’?
(A) Motherboard (B) Screen (C) a and b both (D) None of these
Ans. : a and b both
158. Which of the following represents non-exclusive relationship between two
classes?
(A) Aggregation (B) Polymorphism (C) Encapsulation (D) Abstraction

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. : This statement is true.


172. In which of the following class are common attributes and methods defined?
(A) Sub (B) Child (C) a and b both (D) Super
Ans. : Super
173. Which of the following class is a specialized version with additional attributes
and methods?
(A) Super (B) Base (C) a and b both (D) Sub
Ans. : a and b both
174. When one class is derived from second class and second class is derived from
third class; State what it is known as.
(A) Inner inheritance (B) Multilevel inheritance
(C) Level inheritance (D) Nested inheritance
Ans. : Inner inheritance
175. Which of the following is an example of multilevel inheritance?
(A) Person - Employee -Teacher
(B) Computer - Mother board -Model
(C) a and b both
(D) None of these
Ans. : a and b both
176. In which classes does ‘a-kind-of’ relationship exist in inheritance?
(A) Masterclass and Superclass (B) Masterclass and Subclass
(C) Superclass and Subclass (D) Subclass and Subclass
Ans. : Superclass and Subclass
177. Which type of relationship exists between superclass and subclass in
inheritance?
(A) ‘a kind of’ (B) ‘multi kind of’
(C) None of these (D) ‘different kind of’
Ans. : ‘a kind of’
178. ‘Which of the following statements is true for inheritance?
(A) Allows to share functionality of (B) Allows to reuse functionality of
class class
(C) Extend functionality (D) All of these
Ans. : All of these
179. In which of the following classes do not inherit from other classes, but are
composed of other classes?
(A) Inheritance (B) Aggregation (C) Polymorphism (D) All of these
Ans. : All of these
180. By which of the following is class made in composition?
(A) By other class (B) Inherited (C) A or B (D) None of these
Ans. : By other class
181. What is represented using class-diagram?
(A) Relationship (B) Constraints (C) a and b both (D) None of these.

Ans. : a and b both


182. In which of the following does object-oriented methodology play significant
role?
(A) Analysis of (B) Design (C) Implementation (D) All of these
software system
Ans. : All of these
183. On which of the following two does focus lie in object-oriented programming?
(A) Data and Animation (B) Networking and Animation
(C) Data and functionality (D) Animation and Functionality
Ans. : Data and functionality
184. Which of the following encapsulates attributes (data) and methods (behavior or
functionality) together as a template that can be shared by all objects?
(A) Class (B) Inheritance (C) Super object (D) Sub object
Ans. : Class
185. Which of the following together can a class encapsulate as a template that can
be shared by all objects?
(A) Attribute (B) Method (C) a and b both (D) None of these
Ans. : a and b both
186. Which of the following are distinguished by their state?
(A) Class (B) Object (C) Data (D) Field
Ans. : Object
187. For which of the following values of attribute more than one class may be
associated with each other?
(A) Class (B) Object (C) Data (D) Field

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

You might also like