0% found this document useful (0 votes)
55 views7 pages

12-EM-L-6-MCQ

COMPUTER

Uploaded by

kksdesktop1
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)
55 views7 pages

12-EM-L-6-MCQ

COMPUTER

Uploaded by

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

12 EM Lesson -6 Object- Oriented Concepts

01. At present we are in living in the era of..........


(a) internet (b) website (c) web based process (d)all of these
02. ..........has much importance in the current era.
(a) Rapid development of applications (b)Reuse of source code
c) (A) and(B) both (d) None of these
03. Which object orinented mathod plays an important role in various software syatems ?
(a)Anyalysis (b) Design (c) Execution (d)All of these
04. Which method plays an important role in various software systems ?
(a)Object oriented method (b) procedural method (c) (A) and(B) both (d)None of these
05. How are the softwares prepared through object oriented method ?
(a) Trustworthy (b)Development work is done rapidly (c) Easier to modify and reuse (d)All of these
06. Which is the object oriented programming language ?
(a) Oracle (b)Java (c)Publisher (d) HTML
07. java programming follows..............
(a) Object oriented method (b)procdural method (c) )(A) and(B) both (d)None of these
08. java programming longuage was devloped in ..................
(b) 1950 A.D (b)1960 A.D (c)1970 A.D (d)1980 A.D
09. Since........... object oriented programming bcome the main paradigm to create new software.
(a) Mid 1960s (b) Mid 1970s (c) Mid 1980s (d) Mid 1999s
10. object oriented programming was developed due to..........
(a)rapidly increasing size of system software (b)to handle complexity of system software
(c)to make it easier to modify large and complex systems (d) all of these
11. .............follows the object oriented programming .
(a)C++,C# (b)Java, PHP (c)VB.net,ASP.net (d)All of these
12. Programming way is divided into................categories.
(a) 2 (b) 3 (c) 4 (d) 5
13. The way of programming is............
(a) structure /procedural programming (b) object based programming
(c) (A) and(B) both (d)None of these
14. In .......... the focus is on functions which operate of the data,
(a) structure /procedural programming (b) object based programming
(c) (A) and(B) both (d)None of these
15. In........ the focus is on objects which contain both data and functionality together
(a) structure /procedural programming (b) object based programming
(c) (A) and(B) both (d)None of these
16. Objects contain..............
(a) data (b)functionality (c)(A) and(B) both (d) none of these
17. Object oriented programming plays an important role in....... of system software.
(a)analysis (b)design (c) execution (d) all of these
18. Focus is on .......in object oriented programming.
(a) object (b)class (c) property (d) function
19. ........is included in object oriented programming .
(a) Data (b)functionality (c) (A) and(B) both (d)none of these
20. The power of object oriented programming enables the programmer to create............
(a) modular programs (b) reusable programs (c) extendable code (d)All of these
21. In .......programmer can formulate a program by modification of existing modules.
(a) structure/procedural programming (b) object based programming
(c)(A) and(B) both (d) none of these
22. .........is gained by changing or replacing modules without disturbing parts of code.
(a) flexibility (b)Abstraction (c) Encapsulation (d) Polymorphism
23. When can we get software development speed ?
(a) Reusing the existing code (b) Modifing the existing code c)(A) and(B) both (d) none of these
24. ..........is the base for object based programming .
(a)Class (b)Object (c) Function (d)Attribute
25. Similar objects are classified using a concept of ...........
(a) Function (b) Method (c)Attribute (d) Class

12 EM – Computer Studies : Lesson-6 Object oriented concepts (www.verymicro.org) 1


26. Object based programming provides ......types of object properties .
(a) 3 (b) 4 (c) 5 (d) 6
27. What are the properties of object oriented programming ?
(a) Abstraction Encapsulation (b) Polymorphism, Inheritance c)(A) and(B) both (d) none of these
28. In real world ........ are the entities of which the world is comprised.
(a)classes (b) objects (c) functions (d)attributes
29. Objects exist in .....form
(a) 2 (b) 3 (c) 4 (d) 5
30. objects exist in .......form .
(a)Physical (b) abstract (c)(A) and(B) both (d) none of these
31. The objects that we can see and touch are called ........objects.
(a) Physical, concrete objects (b) abstract objects (c) (A) and(B) both (d) none of these
32. ......... is the example of concrete object.
(a) Person (b) Car (c)Computer (d)All of these
33. The objects that we can’t see and touch are called .........,, objects.
(a) Physical, concrete objects (b) abstract objects (c) (A) and(B) both (d) none of these
34. ........is the example of abstract object.
(a) Concepts like date and time (b) Persons cars computers (c) (A) and(B) both (d) none of these
35. ........ is the property of a person.
(a) Name and caste (b) Birthdates and birthplace (c) City and profession (d) All of these
36. In object oriented programming the characteristics are called ...........
(a) Properties (b) attributes (c) (A) or (B) (d)Method
37. To distinguish one person form another ..............is used.
(a) Property (b)function (c)Method (d) class
38. The value of attribute used to identify the object is called ..........
(a) method (b) state (c) class (d) function
39. .........is very useful to distinguish objects.
(a) Function (b) Class (c) Method (d) State
40. ....... is connected to object.
(a) Behavior (b) function (c) class (d) State
41. Behavior is called .........
(a) Function (b) class (c) method (d) state
42. The value of object changes due to.................
(a) behavior (b)Funntion (c)class (d) state
43. In real world , object can be explained through ............things
(a) 2 (b) 3 (c) 4 (d) 5
44. In real world , object can be explained with ...............
(a) identity (b) behavior (c) state (d)all of these
45. The name by which object in introduced is .................
(a) identity (b) behavior (c) state (d) none of these
46. UML is a ......... type of language.
(a)visible (b)visual (c) modeling (d) all of these
47. UML is defined by............
(a) OMG (b)OGM (c) ONG (d) OGN
48. OMG stand for...........
(a) Object Multimedia Group (b) Object Manage Group
(c) Object Management Group (d)Object Multilevel Group
49. UML specifies ........ for representing different aspects of a software of a software application.
(a) Graphs (b) Figures (c) Maps (d) Creations
50. The purpose of .......is to model the static view of an application
(a) class diagram (b) object diagram (c) function diagram (d) graph diagram
51. What is class diagram ?
(a)Diagrams which are mapped (b) points (c) objects (d) Graphs
52. Class diagram can be directly connected to ..........
(a) Languages except object (b) object oriented programming (c) (A) and(B) both (d) none of these
53. in class diagram a class is represented with an icon using a rectangle split into....... sections.
(a) 2 (b)3 (c) 4 (d) 5
54. In a class diagram a class is represented with an icon using a rectangle split into sections.
(a) name (b)attribute (c) behavior (d) all of these
12 EM – Computer Studies : Lesson-6 Object oriented concepts (www.verymicro.org) 2
55. .........is the middle section is class diagram.
(a) class Name (b)Behavior/Operation /Method (c) Attribute/property (d) Any of these
56. .....is the bottom section in class diagram.
(a) class Name (b)Behavior/Operation /Method (c) Attribute/property (d) Any of these
57. In the notation of UML LIKE [<visibillity>]<attribute name > [:<attribute date type [=<initial value ]].what is
optional part ?
(a) < > (b)[ ] (c)(A)and(B) both (d) All are compulsory
58. In the notation of UML like[ < visibility > ] <attribute name>] ] ,what is compulsory part ?
(a) < > (b)[ ] (c)(A)and(B) both (d) All are compulsory
59. What are the visibilites symbols in UML ?
(a) + and - (b) # (c) ~ (d) All of these
60. In UML notation the symbols -,# ,+ ,and ~ are respectively for ......... visibility in sequence.
(a) protected ,private ,public, package (b) private, protected ,public , package , public
(c) private , protected ,public ,package (d) package , private , protected ,public
61. Normally attribute indicates..........
(a)variable (b)constant (c) function (d) method
62. What do data type and its initial value indicate ?
(a) what type of data is stored in the beginning of program (b)what is its value in the program
(c)(A) and (B) both (d) None of these
63. .......is compulsory in UML notation.
(a) [ <visibility>] (b)[:<attribute data type >=<initial value] ] (c) <attribute name> (d) (A)and(B)
both
64. ........is optional in UML notation.
(a) [<visibility>] (b) [: < attribute data type [= < initial value] ] (c) <attribute name> (d) (A) and(B) both
65. .........shows the example of method.
(a) setBirthdate ( d:int , m:int ,y:int ) :date (b) setBirthdate [ d:int , m:int ,y:int ] :date
(c) setBirthdate < d:int , m:int ,y:int > :date (d) setBirthdate { d:int , m:int ,y:int } :date
66. parameters can be specified as......depending on whether it is read only or not.
(a)input (b)output (c) (A) or(B) (d)none of these
67. Some software developers prefer to specify attributes and operations in the ......of a programming language
instead of using UML notation.
(a) less familiar format (b) more familiar format (c) less popular format (d) more popular format
68. Objects differ in their...........
(a) state (b)attribute (c) method (d) property
69. Any object is of ........type
(a)variable (b)dynamic (c)(A) or (B) both (d)none of these
70. Any computer program has main........... elements
(a) 2 (b) 3 (c) 4 (d) 5
71. ......... option shows the basic element of a computer program.
(a) Data (b) Method (c) (A) and (B) (d)
72. In the structured programming data and method are called ........elements.
(a) Same (b) different (c)symbolic (d) special
73. In the object oriented programming data and method are called .......elements.
(a) Same (b) different (c)symbolic (d) special
74. In any part of structured programming value of data is.............
(a) it can be changed (b) it is not protected form modification (c)(A) and (B) both (d) None of these
75. In any part of structured programming value of data can be changed it is not protected form modification .What
is the solution form this?
(a) Data abstraction (b) Encapsulation (c) Composition (d) Aggregation
76. In ........ data and methods that manipulate data are guarded against modification.
(a) composition (b) aggregation (c) data abstraction (d)encapsulation
77. The mechanism o providing protection to data and methods is called .............
(a) data abstraction (b) encapsulation (c) composition (d) aggregation
78. How the Encapsulation makes the data protected.
(a) Stopping the data coming from outside the program (b) Stopping the data coming from inside the
programming
(c) Stopping the result coming from outside the program (d) Stopping the result coming from inside the
program

12 EM – Computer Studies : Lesson-6 Object oriented concepts (www.verymicro.org) 3


79. ......provides security to the data.
(a) Composition (b) Aggregation (c) Data abstraction (d) Encapsulation
80. Single unit created by wrapping up data and methods is called.
(a) attribute (b)class (c) object (d) property
81. Encapsulation is possible by declaring the class as ........
(a) private (b)public (c) optional (d) special
82. IF necessary the data is made available via ......method
(a)public (b)personal (c) database (d) secured
83. Encapsulation provides .........capability.
(a) Data modifying (b)data formatting (c) Data deleting (d) Data hiding
84. .......is used for sharing of information
(a) object oriented programming (b) procedural programming (c) (A) And (B) both (d) None of these
85. programming discourages direct access to common data for other programs.
(a) object oriented programming (b) procedural programming (c) (A) And (B) both (d) None of these
86. What is possible in object object oriented programming ?
(a) other object can see the data (b) object can send to the owner data after changing it
(c) (A) and (B) both (d) None of these
87. ........is a special process of representing the essential features of the objects without including implementation
detail.
(a) Data abstraction (b) Encapsulation (c) Composition (d) Aggregation
88. How to understand Data abstraction ?
(a) It hides the complexity (b) It says what it does (c) It doesn’t say how it is done (d) All of these
89. Data abstraction is a........ type of technique.
(a) separation of interface and implementation (b) modification of interface and implementation
(c)deletion of interface and implementation (d) execution of implementaion
90. What does data abstraction provide?
(a)Layout (b) Skeleton (c) Templates (d)All of these
91. ........hides the certain details of how data is stored created and maintained.
(a) Data abstraction (b) Encapsulation (c) Composition (d) Aggregation
92. Data abstraction follows...........
(a) All that is visible to the rest of the world is the abstract behavior of data type (b)details of how behavior is
implemented are hidden (c) data can be changed as per need without impacting others (d) All of these
93. ........is the example of data abstraction .
(a) Abstract Data types – ADT of C and C++ (b) Structure (c) Classes of C++ and Java (d) All of these
94. ADT stands for..........
(a) Access Data Types (b) Abstract Data Types (c) Absolute Data Types (d) Advanced Data Types
95. Which option is true for abstract data types ?
(a) User can define it and mention the methods (b) It can not mention how the execution is done process on
(c)(A) and(B) both (d) None of these
96. ........ keeps the information of execution done on the process secret and makes it protected .
(a) Data abstraction (b) Data encapsulation (c) Composition (d) Aggregation
97. What is it called which keeps the information of execution done on the process secret and makes it protected ?
(a)Data abstraction (b)Data encapsulation (c) Capsulation (d) Aggregation
98. What is the calling of method known as in object oriented programming?
(a) Attribute (b) Message (c) class (d)Behavior
99. Due to ......’ all method calls are controlled by the object which recognizes the method ?
(a)data encapsulation (b) data abstraction (c) composition (d) aggregation
100. Method can not have same name in different class .
(a) True (b) False (c) Can’t Say (d) None of these
101. Polmorphism is know as
(a) many forms (b) different forms (c) (A) and (B) both (d) none of these
102. In which circumstances it is possible to define multiple functions with same name in object oriented
programming
(a) If the methods are more than the signature (b)If the methods are less than the signature
(c) If the methods are same in the signature (d) If the methods are different in the signature
103. Number of parameters and type is called.............
(a) composition (b) signature (c) message (d) polymorphism
104. .......allows to create multiple functions with same name.
(a)object oriented programming (b)Structure d programming (c) (A)and(B) both (d) None of these
12 EM – Computer Studies : Lesson-6 Object oriented concepts (www.verymicro.org) 4
105. .........is the feature to create to create multiple functions with same name if they differ in signature
(a)function overloading (b) Method overloading (c)(A) and(B) both (d) Operator overloading
106. Operator is being operated on..........
(a) Operator (b) operands (c) operation (d) opera
107. What is polymorphism ?
(a) Many polygons (b) many parameters (c) many variables (d)many forms
108. Same operations is given different meaning depending upon the type of operands used is achieved through.........
(a) operator overloading (b) operator over listing (c) operator overfuntion (d)operator overweight
109. Capacity of same name with different meaning is called ..........
(a) overweight (b)overfuntion (c) overlisting (d) overloading
110. polymorphism is achieved using ........overloading
(a) 2 (b) 3 (c) 4 (d)5
111. polymorphism is possible with ......overloading.
(a) function (b) operator (c) (A) or (B) both (d) none of these
112. When objects of one class are composed of objects of other is called..........
(a) aggregation (b) composition (c) (A) or(B) (d) none of these
113. When two classes represent ‘has –a’ or ‘a-part-of ‘ relation ship is known as..............
(a)aggregation (b) composition (c) (A) and(B) both (d) none of these
114. Aggregation or composition represents ........relationship between classes
(a) has –a or a-part of (b) complete or a-part –of (c)complete or is –not-part-of (d) incomplete or a-part-of
115. what type of relation ship between classes is a represented by aggregation or composition ?
(a) Exclusive (b) Non-exclusive (c) (A) and(B) both (d) All of these
116. IN.......... the class that form part of owner class can exist independently ?
(a) aggregation (b) composition (c) (A) and(B) both (d) none of these
117. In ....the life of an object of the part class is not determined by the owner class. Choose the appropriate option
(a) True (b) false(c) Can’t say (d) None of these
118. The relationship of aggregation is represented using......symbol.
(a) empty diamond (b) filled diamond (c) half empty diamond (d) half filled diamond
119. What type of relationship between two classes is resented by composition ?
(a) Special (b) many forms (c)Equal (d) Unique
120. Composition is .......type of aggregation
(a) active (b)weak (c) strong (d) none of these
121. In .........the lifetime of the part class depends on the existence of the owner class.
(a) aggregation (b) composition (c) (A) and(B)both (d) none of these
122. In .........if an object of aggregating class is deleted its part class object also gets deleted .
(a) aggregation (b) composition (c) (A) and(B)both (d) none of these
123. Using ........symbol composition relationship is represented .
(a) empty diamond (b) filled diamond (c)half empty diamond (d) half filled diamond
124. If one class holds the objects of other class then it is called............
(a) owner class (b) subject class (c) part class (d) aggregated class
125. Owner class is also called.............
(a)whole class (b) aggregating class (c) (A) or (B) (d) subject class
126. What it is known as when a class holds the objects of some other class.
(a) Owner class (b) Whole class (c) Aggregating class (d)All of these
127. The class which is included in the owner class it is known as........
(a) subject class (b)owner class (c) aggregating class (d)whole class
128. Subject class is also called ...........
(a) part class (b) aggregated class (c) (A) or (B) (d) owner class
129. Class included in the owner class is called ..............
(a) subject class (b) part class (c) aggregated class (d) all of these
130. Inheritance is of how many types ?
(a)2 (b) 3 (c) 4 (d)5
131. ..........is a type of inheritance.
(a) Single inheritance (b)Multilevel inheritance (c)(A) and(B) both (d) None of these
132. IF the two classes have ‘is-a-king –of relationship then it is called............
((a) Single inheritance (b)Multilevel inheritance (c)(A) and(B) both (d) None of these
133. When one class is a king of another class then ........is used.
(a) Single inheritance (b)Multilevel inheritance (c)(A) and(B) both (d) None of these

12 EM – Computer Studies : Lesson-6 Object oriented concepts (www.verymicro.org) 5


134. What type of relationship between two classes is called inheritance ?
(a)is a-king-of (b) is-two-kinds-of (c) is-three-kinds-of (d) many-kinds-of
135. In single inheritance where the common properties are kept ?
(a) In subclass (b) IN Super class (c) (A)and(B) both (d) None of these
136. In object oriented terminology new class is called......
(a) sub class (b) child class (c) derived class (d) all of these
137. In object oriented terminology existing class is called..............
(a) super class (b) parent class (c) base class (d) all of these
138. .......of super class is available to objects in the sub class without rewriting their declarations.
(a) Data attributes of super class (b) method object (c) (A)and(B) both (d) None of these
139. What is other name for inheritance ?
(a) Specialization (b) modernization (c) Heredity (d) Generalization
140. What is inheritance?
(a)Application (b)Relationship (c) Function (d) Format
141. ........can be defined in super class.
(a) attributes (b) methods (c) (A)and(B) both (d) none of these
142. ........is a specialized version with additional attributes and features
(a) Super class (b)Parent class (c) Base class (d) sub class
143. There may be a classical ..........of inheritance between classes.
(a) hierarchy (b) relations (c) indication (d) logic
144. In ......a class in not inherited form another class but it is composed of another class.
(a) composition (b) inheritance (c) (A) and( B) both (d) none of these
145. ............type of relationship is there between super class and sub class inheritance.
(a)’is a kind of’ (b) ‘other kind of’ (c) ‘many kinds of’ (d) all of these
146. what is another name of inheritance ?
(a) Generalization (b) one relationship (c) (A)and(B) both (d) None of these
147. ........shows the ‘is –a-kind –of’ between two classes
(a) composition (b) Inheritance (c) (A)and(B) both (d) None of these
148. When one class is a type of other class then it is......... relationship.
(a)’is a kind of’ (b) ‘other kind of’ (c) ‘many kinds of’ (d) all of these
149. In inheritance class inherits from other classes in order to......... functionality.
(a) share (b) reuse (c)extend (d) all of these
150. Object oriented programming plays an important role in …………. Of system software.
(a) analysis (b) design (c) execution (d) all of these
151. …………. True about objects.
(a)objects have unique identity (b) objects are distinguishable \
(c)(a) and (b) both (d) none of these
152. …………… defines the behavior.
(a) person takes birth (b) person gets name
(c) person change the location (d) All of these
153. ………….. is the proper object for railway reservation application.
(a)Train and stations (b) Travelling
(c) Ticket (d) All of these
154. …………. Can be similar related to object.
(a)attribute (b) Behaviour (c) state (d) (a) and (b)
155. Object oriented programming uses the concept of ……….
(a)class (b) object (c) function (d) attribute
156. ……….. is a general concept used to embody all the common features of a particular set of objects.
(a)class (b) method (c) function (d) attribute
157. …………. Is the general concept for grouping the common characteristics of objects.
(a)method (b) Attribute (c) class (d) function
158. …………... has the concept of class that enables the set of objects that are abstractly equivalent, differing only in
the values of their attributes.
(a) structured (b) Objects based programming
(c) (a) and (b) both (d) None of these
159. ………….. represent the class diagram.
(a)group of many classes (b) Constraints
(c) Relationships among classes (d) All of these

12 EM – Computer Studies : Lesson-6 Object oriented concepts (www.verymicro.org) 6


160. For ………, UML is useful.
(a)To make model for OOP software’s (b)to create models for software’s
(c)to design the application software (d)all of these
161. UML is a maintained by ……….
(a)Object Multimedia Group (b) Object Media Group
(c)Object Management Group (d) Object Multilevel Group
162. Behavior, attribute and name are respectively in …….. section of class diagram.
(a)top, middle, bottom (b)middle, top, bottom
(c)top, bottom, middle (d)bottom, middle, top
163. As per how many visibilities the UML notation can be written?
(a)3 (b)4 (c)5 (d)6
164. ………symbol is for private visibility.
(a)- (b)# (c)+ (d)~
165. ………symbol is for public visibility.
(a)- (b)# (c)+ (d)~
166. ………symbol is for protected visibility.
(a)- (b)# (c)+ (d)~
167. ………symbol is for package visibility.
(a)- (b)# (c)+ (d)~
168. ……… show the way to define an attribute.
(a)name : string (b)- balance ; float = 0.0 (c)(A) and (B) both (d)none of these
169. UML diagrams are independent of the programming language used for coding an application.
Choose the appropriate option.
(a)True (b)False (c)Can’t say (d)None of these
170. In UML notation object is represented using …………
(a)property (b)method (c)attribute (d)state
171. Private members of the class are not available directly to outside world.
Choose an appropriate option.
(a)True (b)False (c)can’t say (d)None of these
172. ……… Makes the data protected by keeping the exaction information secret.
(a)Data abstraction (b) Encapsulation (c) Composition (d)Aggregation
173. ………. Is possible through data abstraction.
(a)Protection of data (b) Hiding of data
(c)Hiding the execution of data (d) All of these
174. Many forms is known as ………
(a)Composition (b)Aggregation (c)messaging (d)polymorphism
175. ……….. Allows writing expression using operators on objects.
(a)Object oriented Programming (b)Structure Programming
(c)(A) and (B) both (d)None of these
176. Aggregation or composition represents ……….. relationship between classes.
(a)has-a or a-part-of (b)complete or a-part-of
(c)complete or is-not-part-of (d)incomplete or a-par-of
177. ………….. represents has-a or a-part-of relationship.
(a)Aggregation (b)Composition (c)(A) or (B) both (d)None of these
178. ……….. allows the methods to be refined in sub class as per need.
(a)sub class (b)Super class (c)Base class (d)parent class
179. In ……………., common attributes and methods are defined.
(a) Super class (b) sub class (c) derived class (d) child class
180. In …………, a class inherits from other classes in order to share, reuse or extend functionality.
(a)composition (b)inheritance (c)(A) and (B) both (d)none of these

12 EM – Computer Studies : Lesson-6 Object oriented concepts (www.verymicro.org) 7

You might also like