ooad mcq
TRANSCRIPT
-
8/19/2019 ooad MCQ
1/18
This section of our 1000+ Object Oriented System Design MCQs focuses on Foundations of Object
Model 1!
1" The method of design encom#assing the #rocess of object oriented decom#osition and a notation
for de#icting both logical and #hysical and as $ell as static and dynamic models of the system
under design is %no$n as&
a" Object' Oriented (rogramming
b" Object' Oriented Design
c" Object' Oriented )nalysis
d" *one of the mentioned
ie$ )ns$er ,
-" .hat is the #rogramming style of the object oriented conce#tual model/
a" nariant relationshi#s
b" )lgorithms
c" Classes and objectsd" 2oals3 often e4#ressed in a #redicate calculus!
ie$ )ns$er C
5" The essential characteristics of an object that distinguish it from all other %inds of objects and
thus #roide cris#ly defined conce#tual boundaries3 relatie to the #ers#ectie of the ie$er is
called&
a" 6nca#sulation
b" Modularity
c" 7ierarchy
d" )bstraction
ie$ )ns$er D
8" )bstraction is classified into 9999999 ty#es
a" 8b" 5
c" -d" 1
ie$ )ns$er )
:" The #rocess of com#artmentali;ing the elements of an abstraction that constitute its structure andbehaior is called asa" 7ierarchy
b" 6nca#sulation
c" Modularityd" 6ntity )bstraction
ie$ )ns$er ,
-
8/19/2019 ooad MCQ
2/18
ie$ )ns$er C
=" n $hich of the follo$ing mechanisms3 ty#es of all ariables and e4#ressions are fi4ed at
com#ilation time!
a" Strong Ty#ing
b" .ea% Ty#ing
c" Static ,inding> early binding
d" Dynamic ,inding> late binding
ie$ )ns$er C
?" n $hich of the follo$ing mechanisms3 ty#es of all ariables and e4#ressions are not %no$n until
runtime
a" Strong Ty#ing
b" .ea% Ty#ing
c" Static ,inding> early binding
d" Dynamic ,inding> late bindingie$ )ns$er D
@" .hich of the follo$ing statements about (ersistence is correct/
a" t is the enforcement of the class of an object3 such that objects of different ty#es may not be
interchanged3 or at the most they may be interchanged only in ery restricted $ays!b" t is the #ro#erty of an object through $hich its e4istence transcends time and>or s#ace!
c" t is the #ro#erty that distinguishes an actie object from one that is not actie!d" )ll of the mentioned
ie$ )ns$er ,
10" .hat is that conce#t in ty#e theory in $hich a single name may denote objects of manydifferent classes that are related by some common su#er class referred to 999999
a" Monomor#hism
b" Ty#e Chec%ing
c" (olymor#hism
d" 2enerali;ation
ie$ )ns$er C
The fact that the same o#eration may a##ly to t$o or more classes is called $hat/
)! nheritance,! (olymor#hism
C! 6nca#sulation
D! Multi#le classification)ns & b
The fact that the same o#eration may a##ly to t$o or more classes is called $hat/
-
8/19/2019 ooad MCQ
3/18
)! nheritance
,! (olymor#hismC! 6nca#sulation
D! Multi#le classification
a
Multi#licity is the same as $hat conce#t for an 6AD/)!Aelationshi# ,! )ttribute
C! 6ntity D!Cardinality
d
Com#osition is a stronger form of $hich of the follo$ing/
)!)ggregation
,! 6nca#sulationC! nheritanceD!)ll of the aboe!
a
)n abstract class is $hich of the follo$ing/
)! ) class that has direct instances3 but $hose descendants may hae direct instances!,! ) class that has no direct instances3 but $hose descendants may hae direct instances!
C! ) class that has direct instances3 but $hose descendants may not hae direct instances!D! ) class that has no direct instances3 but $hose descendants may not hae direct instances
b
The term Com#lete for a BM has the same meaning as $hich of the follo$ing for an 66A
diagram/
)!Oerla##ing rule,! Disjoint rule
C! Total s#eciali;ation rule
D!(artial s#eciali;ation rulec
) BM diagram includes $hich of the follo$ing/
)! Class name,! ist of attributes
C! ist of o#erations
D! )ll of the aboe!d
-
8/19/2019 ooad MCQ
4/18
)n object can hae $hich of the follo$ing multi#licities/
)! ero,! One
C! More than one
D! )ll of the aboe! d
.hich of the follo$ing statement is true concerning objects and>or classes/
)! )n object is an instance of a class!,! ) class is an instance of an object!
C! )n object includes enca#sulates only data!D! ) class includes enca#sulates only data!
)
.hich of the follo$ing a##lies to a class rather than an object/
)!Query ,! B#date
C! Sco#e D!Constructor c
The benefits of object'oriented modeling are $hich of the follo$ing/
)! The ability to tac%le more challenging #roblems,! Aeusability of analysis3 design3 and #rogramming results
C! m#roed communication bet$een users3 analysts3 etc!
D! )ll of the aboe!D
The term ncom#lete for a BM has the same meaning as $hich of the follo$ing for an 66Adiagram/
)!Oerla##ing rule
,! Disjoint ruleC! Total s#eciali;ation rule
D!(artial s#eciali;ation rule & D
) constructor o#eration does $hich of the follo$ing/
)!Creates a ne$ instance of a class,! B#dates an e4isting instance of a class
C! Deletes and e4isting instance of a classD!)ll of the aboe!
)
-
8/19/2019 ooad MCQ
5/18
.hich of the follo$ing is a techniEue for hiding the internal im#lementation details of an object/
)! 6nca#sulation,! (olymor#hism
C! nheritanceD! )ll of the aboe
)
)ggregation is $hich of the follo$ing/
)! 64#resses a #art'of relationshi# and is a stronger form of an association relationshi#!,! 64#resses a #art'of relationshi# and is a $ea%er form of an association relationshi#!
C! 64#resses an is'a relationshi# and is a stronger form of an association relationshi#!
D! 64#resses an is'a relationshi# and is a $ea%er form of an association relationshi#!
)
.hich of the
follo$ing is not agood reason for
constructing a
reEuirementsmodel/
A) t can shothe busine
situation i
enough deto chec% t
thereEuireme
hae been
ca#tured fand corre
B) t candemonstr
that all th
use caseshae been
dra$n usithe correc
notation!C) t can be
organi;ed
such a $a
that it $illuseful late
for design
-
8/19/2019 ooad MCQ
6/18
the soft$
-
.hich of the follo$ing statements best describes $hat a class diagram can include/A) Only clas
B) Only clasand their
relationshC) Classes3
instances
theirrelationsh
5 .hich is the correct name for a #ossible set of classes3 together $ith an understanding of ho$ thos
classes might interact to delier the functionality of a use case/A) ) use cas
classdiagram!
B) ) reali;atiC) )
collaborat
8
.hat is the significance of the de#endency arro$ in this diagram/
t sho$s thatelements
$ithin the
collaborationGthe dotted
elli#se" mayreference
elements
$ithin theuse case Gthe
solid
-
8/19/2019 ooad MCQ
7/18
elli#se"!
One of thefollo$ing is not a
difference bet$een
a class diagramand a collaboration
diagram! .hichone/
-
8/19/2019 ooad MCQ
8/18
.hich of these figures is a collaboration diagram/
10
.hat is the significance of the double colon in the class name& Bser nterface&&)dd)dertB/
-
8/19/2019 ooad MCQ
9/18
LIST OF ATTEMPTED QUESTIONS AND ANSWERS
Multiple Choice Single Answe
Question! The key feature that enables users/application to cooperate and
collaborate in
application processing is named as :-
Coect Answe! Concurrency
"ou Answe! Collaboration
Multiple Choice Multiple Answe
Question! In designing classes, we are improving and enriching the class
content in
terms of properties and we screen them for :-
Coect Answe! Local and communication association , liminating
unnecessary
association , Identifying the relationship, top-down or bottom up, aggregation
and
declaring relationship pattern!
"ou Answe! Local and communication association , liminating unnecessary
association , Identifying the relationship, top-down or bottom up, aggregation
and
declaring relationship pattern!
Tue#F$lse
Question! "ore use classes may not necessarily bring better understanding or
-
8/19/2019 ooad MCQ
10/18
more
clarity!
Coect Answe! #alse
"ou Answe! #alse
Select The %l$n&
Question! $$$$$$$$helps to integrate homogeneous database system with
multiple
database and data types other than relational data types!
Coect Answe! "%&'
"ou Answe! ((%&"'
Tue#F$lse
Question! ) state chart diagram shows method of e*ecution on receipt of
message and
activities used in the method!
Coect Answe! True
"ou Answe! True
Tue#F$lse
Question! The registration form is +lled for each member of family under one
address
Coect Answe! True
"ou Answe! True
Select The %l$n&
Question! e e*tensively use $$$$$$$$ for processing, re+ning and designing
classes!
Coect Answe! "L
"ou Answe! "L
Select The %l$n&
Question! The user must have access to both ((%& and .%& to manipulate
data! The
developer therefore must develop applications that could source data from
$$$$$$$$
databases ((%&, .%& etc0 !
-
8/19/2019 ooad MCQ
11/18
Coect Answe! )ll
"ou Answe! )ny two
Tue#F$lse
Question! hen the system is modeled into di1erent case scenarios it not
only goes
down to a level of function and features, but also reveals relationships and
behaviours
amongst di1erent system components!
Coect Answe! True
"ou Answe! True
Multiple Choice Single Answe
Question! The concept of ((2' was +rst introduced in
Coect Answe! 'imula Language
"ou Answe! 'imula Language
Tue#F$lse
Question! ith its strength, (%&C has become an industry standard for
interoperatability on di1erent databases!
Coect Answe! True
"ou Answe! True
Multiple Choice Multiple Answe
Question! The following are the columns to be +lled in %3% reservation slip :-
Coect Answe! 4ame title 0 , %3% I% , .e5uired date
"ou Answe! 4ame title 0 , %3% I% , .e5uired date
Select The %l$n&
Question! The row of table in .%&"' contains data which maps $$$$$$$$ of
class in
((%&"'!
Coect Answe! Instance
"ou Answe! Instance
Multiple Choice Single Answe
Question! The se5uence of states that the ob6ect goes through when it
receives a message
-
8/19/2019 ooad MCQ
12/18
to act is shown by the diagram called :-
Coect Answe! 'tate chart diagram
"ou Answe! 'e5uence diagram
Tue#F$lse
Question! "apping of multiple inheritance into a single table is possible in
.%&"'!
Coect Answe! True
"ou Answe! True
Multiple Choice Multiple Answe
Question! )ll ((%&"' products namely (7, (b6ectivity, (b6ect 'tore and
3ersant
support following %&"' criteria :-
Coect Answe! ser de+ned datatype , Is$a relationship , 2art$of
relationship
"ou Answe! ser de+ned datatype , Is$a relationship , 2art$of relationship
Multiple Choice Single Answe
Question! 8ow big is a class ob6ect9
Coect Answe! Is as big as sum of the sies of its member variables
"ou Answe! )s big as superclass
Multiple Choice Single Answe
Question! In ((')%, the ob6ect is the unit used for analysis of the system,
hence it is
called:-
Coect Answe! (() (b6ect (riented )nalysis 0
"ou Answe! (() (b6ect (riented )nalysis 0
Select The %l$n&
Question! $$$$$$$$ of an ob6ect remains unchanged even though its state and
properties
change!
Coect Answe! Identity
"ou Answe! Identity
Multiple Choice Single Answe
-
8/19/2019 ooad MCQ
13/18
Question! If %og derives from "ammal, and "ammal derives from )nimal,
then ;
Coect Answe! %og inherits )nimalmenthods
"ou Answe! ob6ect=data>menthods
Multiple Choice Multiple Answe
Question! In conte*t of transactions, ((%&"' :-
Coect Answe! 8andle nested transactions , 'upports ".( , 'upports
long
transactions
"ou Answe! 8andle nested transactions , 'upports ".( , 'upports long
transactions
Multiple Choice Single Answe
Question! The lock that ensures that no other transaction is commited till the
transaction
is in the mode of updation and creation of new version of ob6ect, is called
Coect Answe! rite Lock
"ou Answe! rite Lock
M$tch The Following
-
8/19/2019 ooad MCQ
14/18
?uestion Coect Answe! @our )nswer
Class 'hape Triangle, rectangle, circle, ellipse Triangle, rectangle, circle, ellipse
Class 3ehicle 'cooter, car, truck, tractor 'cooter, car, truck, tractor
Class )nimal Cat, dog, cow, tiger Cat, dog, cow, tiger
Class Color .ed, yellow, blue, green .ed, yellow, blue, green
Multiple Choice Multiple Answe
Question! 3arious database packages are :-
Coect Answe! 'ibase , ')2 , (racle
"ou Answe! (racle , 'ibase
Select The %l$n&
Question! hen you e*press user-system interaction, the scenario in the
model is called
$$$$$$$$
Coect Answe! Case model
"ou Answe! ((2' model
Multiple Choice Single Answe
Question! In %)%, the domain-speci+c A organisation-speci+c terms are
covered under
the title :-
Coect Answe! #eatures
"ou Answe! #eatures
Multiple Choice Single Answe
Question! In the railway transport environment, the same train train name,
number etc 0leave everyday from one station to the other! &ut in their operations, dates,
drivers,
passengers etc di1er every day! This pattern is called :-
Coect Answe! )bstraction-(ccurrence 2attern
"ou Answe! )bstraction-(ccurrence 2attern
Select The %l$n&
Question! ) class is the$$$$$$$$ for an ob6ect!
Coect Answe! Template
-
8/19/2019 ooad MCQ
15/18
"ou Answe! Instance
Tue#F$lse
Question! The principle of polymorphism helps to e*tend and modify the
system scope
through appropriate messaging mechanism!
Coect Answe! True
"ou Answe! True
Multiple Choice Multiple Answe
Question! )ccess to other ((%&"' comprises of :-
Coect Answe! .ead data resident in other ((%& , "odify data resident in
other
((%& , .ead data resident on .%&"'
"ou Answe! .ead data resident in other ((%& , "odify data resident in
other ((%&
Tue#F$lse
Question! The I should be designed for blind and mechanical operation!
Coect Answe! True
"ou Answe! #alse
Multiple Choice Multiple Answe
Question! The main function will have following contents in C>>
Coect Answe! 4ame of class followed by name of ob6ect , 4ame of ob6ect
and
method separated by dot operator! , 3ariable declaration
"ou Answe! 4ame of class followed by name of ob6ect , 4ame of ob6ect and
method
separated by dot operator! , 8eader +les
Multiple Choice Single Answe
Question! The method for industrial development of software based on use-
case-driven
design is
Coect Answe! ((' (b6ect (riented 'oftware ngineering 0
"ou Answe! ((% (b6ect (riented %esign 0
-
8/19/2019 ooad MCQ
16/18
Multiple Choice Multiple Answe
Question! ((%&"' standards comprise of :-
Coect Answe! (%L , (?L , (%"B C>> binding
"ou Answe! (%L , (?L
Multiple Choice Single Answe
Question! The main di1erence between structure and class is
Coect Answe! 'tructure does not support ((2' Class 'upports ((2'!
"ou Answe! 'tructure comprises of dissimilar datatypes! Class comprises of
similar
datatypes!
Multiple Choice Single Answe
Question! The class and its hierarchy build through inheritance should lead to
a :-
Coect Answe! 'ingle purpose class
"ou Answe! 'uper class
Multiple Choice Multiple Answe
Question! ) +rst step in design is to construct a static "L class diagram
consisting of:-
Coect Answe! Class name , )ttributes , "ethods
"ou Answe! Class name , )ttributes , "ethods
Tue#F$lse
Question! 'e5uence diagrams and collaboration diagrams are very dicult to
select
classes and ob6ects!
Coect Answe! #alse
"ou Answe! #alse
Multiple Choice Multiple Answe
Question! The solution to simplicity of design lies in the following factors :-
Coect Answe! Class design , &uilding hierarchy , Brouping classes in
aggregate sets
that have similar characteristics!
"ou Answe! Class design , &uilding hierarchy , Brouping classes in
-
8/19/2019 ooad MCQ
17/18
aggregate sets that
have similar characteristics!
Multiple Choice Single Answe
Question! The purpose of declaring Dprivate< is :-
Coect Answe! %ata hiding from accidental changes
"ou Answe! (perator overloading
Select The %l$n&
Question! Invoice and $$$$$$$$ are two classes in the noun phrase approach
!&ut
)mount is an attribute in invoice, hence should be re6ected for class
consideration!
Coect Answe! )mount
"ou Answe! )mount
M$tch The Following
?uestion Coect Answe! @our )nswer
'tandard procedure "ethod "ethod
Table 'cheme representing comple* relationships between entities 'cheme
representing comple* relationships between entities
Column .efers datatype and name .efers datatype and name
.ow .efers data for single entry .efers data for single entry
Multiple Choice Multiple Answe
Question! In .ailway .eservation and Ticketing system, we can call following
parameters as attributes of class 2assenger :-
Coect Answe! 4ame , )ge , 'e*
"ou Answe! 4ame , )ge , 'e*
Multiple Choice Single Answe
Question! In %)%, the information providers such as users, customers,
vendors and
stakeholders paly a role of
Coect Answe! 2articipants
-
8/19/2019 ooad MCQ
18/18