100% found this document useful (1 vote)
341 views

Ooad MCQ

This document contains 30 multiple choice questions related to object-oriented analysis and design concepts, UML diagrams, design patterns, software testing, and the software development life cycle. The questions cover topics such as classes, objects, attributes, operations, relationships between classes, abstract classes, UML diagram types, the template method pattern, the strategy pattern, persistence, software testing techniques, and phases of the software development life cycle.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
341 views

Ooad MCQ

This document contains 30 multiple choice questions related to object-oriented analysis and design concepts, UML diagrams, design patterns, software testing, and the software development life cycle. The questions cover topics such as classes, objects, attributes, operations, relationships between classes, abstract classes, UML diagram types, the template method pattern, the strategy pattern, persistence, software testing techniques, and phases of the software development life cycle.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

1) which diagram that helps to show Dynamic aspects related to a system?

A) sequence
B) interaction
C) deployment
D) use case

2) which among the optional statement is true?


A) Associations may also correspond between instances of three
B) Association lines may be unlabeled
C) All of the mentioned
D) None of the mentioned

3) What can be requested from any object of the class to affect behavior? a. object
b. attribute
c. operation
d. instance

4) .__________UML diagrams has a static view.


A) Collaboration
B) Use case
C) State chart
D) Activity

5) Which of the following applies to a class rather than an object?


A. Query
B. Update
C. Scope
D. Constructor

6) Multiplicity is the same as what concept for an ERD?


A. Relationship
B. Attribute
C. Entity
D.Cardinality

7) What does a simple name in UML Class and objects consist of? a. Letters
b. Digits
c. Punctuation Characters
d. All of the mentioned

8) What Does a Composite name consists of in a UML Class and object diagram? a.
Delimiter
b. Simple names
c. Digits
d. All of the mentioned
9) A Class consists of which of these abstractions?
a. Set of the objects
b. Operations
c. Attributes
d. All of the mentioned
10) A class is divided into which of these compartments?
a.Name Compartment
b. Attribute Compartment
c. Operation Compartment
d. All of the mentioned

11) An attribute is a data item held by which of the following?


a. Class
b. Object
c. All of the mentioned
d. None of the mentioned

12) What should be mentioned as attributes for conceptual modelling? a. Initial


Values
b. Names
c. All of the mentioned
d. None of the mentioned

13) State chart Diagrams are needed ________


a. when a class has complex life cycle
b. when the execution of scenario is to be traced
c. to allocate classes and objects to modules
d. to allocate processes to processors

14) Modeling elements that can have instances are called ________
a. classifiers
b. template classes
c. constraints
d. visibility

15) ________ is a mechanism that describes structural and behavioral features.


a. Classifier
b. Template class
c. Constraints
d. Visibility

16) A ________ is a relationship between a general thing and a more specific


kind of that thing. a. generalization
b. association
c. dependency
d. realization

17) A class is used for:


a) generalization
b) classification
c) specification

18) Ordinary class, with an additional dashed box in the upper-right corner of
the class is a ________
a. classifier
b. template class
c. constraints
d. visibility

19) Which GRASP pattern is suitbale to handle alternatives based on type?


Select one:
a. Indirection
b. Pure Fabrication
c. Polymorphism
d. Creator

20) A concrete class must have Select one:


a. No program code for any of its methods
b. Program code for all of its methods
c. Program code for some of its methods
d. No program code for some of its methods

21) Facade pattern promotes weak coupling between subsystem and its clients.
a) True
b) False

22) Which design pattern defines one-to-many dependency among objects?


a) Singleton pattern
b) Facade Pattern
c) Observer pattern
d) Factory method pattern

23) Which of the following is carried out for the detailed design process?
a) Both SRS and SAD are taken as input for the detailed design stage
b) Design alternatives are evaluated first and then Design is finalized
c) Detailed design is the output for the process
d) All of the mentioned
24) A design document is a complete engineering design specification composed
of?
a) Software Architecture Document(SAD)
b) Detailed Design Document(DDD)
c) All of the mentioned
d) None of the mentioned

25) Which of the following is not a Software Development Life Cycle Phase?
a) Requirements Gathering
b) Test Closure
c) Coding
d) Testing
26) In order to control cost, defects should ideally be detected in which phase:
a) Coding
b) Design
c) Implementation
d) Requirements Gathering

27) Error guessing is a:


a) Test verification techniques
b) Test data management techniques
c) Test control management techniques
28) What is Fault Masking?
a) Creating a test case which does not reveal a fault
b) Error condition hiding another error condition
c) Masking a fault by developer
d) Masking a fault by a tester

29) Which of the following is the component test standard?


a) BS7925-2
b) IEEE 829
c) BS7925-1
d) IEEE 610

30) Alpha testing is:


a) Post-release testing by end user representatives at the developer’s site
b) The first testing that is performed
c) Pre-release testing by end user representatives at their sites
Pre-release testing by end user representatives at the developer’s site
PART-B

1) Aggregation is which of the following?


A. Expresses a part-of relationship and is a stronger form of an association relationship.
B. Expresses a part-of relationship and is a weaker form of an association relationship.
C. Expresses an is-a relationship and is a stronger form of an association relationship.
D. Expresses an is-a relationship and is a weaker form of an association relationship

2) Which of the following statements about Persistence is correct?


a) It is the enforcement of the class of an object, such that objects of different
types may not be interchanged, or at the most they may be interchanged only
in very restricted ways.
b) It is the property of an object through which its existence transcends time
and/or space.
c) It is the property that distinguishes an active object from one that is not active.
d) All of the mentio ned

3) An abstract class is which of the following?


A.A class that has direct instances, but whose descendants may have direct instances.
B. A class that has no direct instances, but whose descendants may have direct instances.
C. A class that has direct instances, but whose descendants may not have direct instances.
D.A class that has no direct instances, but whose descendants may not have direct
instances

4) Which of the following statement(s) is true about interaction diagrams?


a. Interaction diagrams are at their best when they deal with one main design flow and not
multiple variants that can happen
b. Interaction diagrams are good at designing part or all of one use case’s functionality across
multiple objects
c. Interaction diagrams allow the analyst to show iteration and conditional execution for
messaging between objects

d. None of the above

5) What is an abstract class?


a. A class that has direct instances, but whose descendants may have direct instances
b. A class that has direct instances, but whose descendants may not have direct instances
c. A class that has no direct instances, but whose descendants may have direct instances. d. All
of the mentioned

6) Which of the following statements about Persistence is correct?


a. It is the enforcement of the class of an object, such that objects of different types may not be
interchanged, or at the most they may be interchanged only in very restricted ways.
b. It is the property of an object through which its existence transcends time and/or space.
c. It is the property that distinguishes an active object from one that is not active.d. All of the
mentioned

7) When would you use the GOF Decorator design pattern?


Select one:
a. to translates an existing class interface into a compatible target interface
b. to assign more functionality to an object without sub-classing it
c. to decouple an abstraction from its implementation so that the two can vary independently
d. to nest layers of decorators to add more functionality

8) When would you use the GOF Composite design pattern?


Select one:
a. to decouple an abstraction from its implementation so that the two can vary independently
b. to translates an existing class interface into a compatible target interface
c. to arrange object hierarchies such that the client code can access both the individual objects
and compositions in a uniform manner
d. to improve the system overall performance

9) Which are considered forces to select a Strategy Pattern? Choose all that apply.
Select one or more:
a. A client needs to use a family of related objects
b. A change to an object requires changing other objects
c. A client needs to choose from multiple algorithms
d. Multiple classes are the same but differ only in the behaviour

10) To delete a cookie we need to call the deleteCookie method and we are passing in two
parameters, wh those parameters?

a. The first parameter is the name of the cookie, and the second parameter is
where it was created.
b. The first parameter is where it was created, and the second parameter is the
name of cookie.c. Both of these
d. None of these

11) Which of the following is black-box oriented and can be accomplished by applying the
same black-box meth discussed for conventional software?
a) Conventional testing
b) OO system validation testing
c) Test case design
d) Both Conventional testing and OO system validation testing

12) Which of the following is correct?


a) An attribute is a class variable when each object stores its own value for the attribute
b) An attribute can also be an instance variable, which means that there is only one value stored
for the attribute that is shared by all class instances
c) An instance operation can be called using any object
d) A class operation is encapsulated in a class and can be called through the class

13) Which of the following describes the Template pattern correctly?


A - In this pattern, a class behavior changes based on its state.
B - In this pattern, a null object replaces check of NULL object instance.
C - In this pattern, a class behavior or its algorithm can be changed at run time.

14)Which of the following is correct about Creational design patterns.


A - These design patterns are specifically concerned with communication between objects.
B - These design patterns provide a way to create objects while hiding the creation logic, rather
than instantiating objects directly using new opreator.
C - These design patterns concern class and object composition. Concept of inheritance is used
to compose interfaces and define ways to compose objects to obtain new functionalities.
D - None of the above.
15)Which of the following describes the J2EE pattern correctly?
A - This type of patterns provide a way to create objects while hiding the creation logic, rather
than instantiating objects directly using new opreator
B - This type of patterns concern class and object composition. Concept of inheritance is used
to compose interfaces and define ways to compose objects to obtain new functionalities.
C - This type of pattern are specifically concerned with communication between objects.
D - This type of pattern are specifically concerned with the presentation tier.

You might also like