OOAD MCQs
OOAD MCQs
OOAD MCQs
com
UNIT IV
a. Component
b. Deployment
c. Node
d. State
a. inheritance
b. dependencies
c. classes
d. objects
a. objects
b. nodes
c. relationships
d. classifiers
5. Identify the ancillary components that are part of the physical implementation of your system is
a. Component
b. Deployment
c. Node
d. State
a. Component diagram
b. Deployment diagram
c. Class diagram
a. Component
b. Deployment
c. Node
d. Object
9. Identify the computational elements of your system’s deployment view and model each as a node is
10. For each significant component in your system, allocate it to a given node is
a. rectangle
b. circle
c. rhombus
d. square
12. of every component should be unique, in order to distinguish it from other components.
a. Pattern
b. Name
c. Components
d. Interfaces
a. Physical things
b. Attributes
c. Classes
d. Interfaces
14. have only operations which are reachable through their interface
a. Interfaces
b. Physical things
c. Attributes
d. Components
a. Deployment components
c. Execution components
d. System components I
16. Source code files and data files are contained by the components
a. system n
b. execution
c. deployment
d. work product
a. Deployment components
c. Execution components
d. System components
18. A diagram shows the organization of a set of components and their relationship
a. component
b. interface
c. deployment
d. architectural
a. Dependency
b. Generalization
c. Association
d. Aggregation
20. Which of the following is not one of the use of component diagram?
a. edge
b. bipartites
c. arcs
d. squares
a. cube n
b. cuboids
c. prism
d. rectangular
a. edge
b. node
c. arcs
d. squares
a. Dependency
b. Generalization
c. Association
d. Aggregation
25. A shows the configuration of run time processing nodes and the components that live on
them.
b. component diagram
c. class diagram
d. deployment diagram
ANSWERS:
1. Correct Answer : a
2. Correct Answer : b
3. Correct Answer : c
4. Correct Answer : a
5. Correct Answer : b
6. Correct Answer : b
7. Correct Answer : b
In the hardware environment the deployment diagram show how a systen will be physically deployed.
8. Correct Answer : c
9. Correct Answer : a
To model processors and devices, identify the computational elements of your system’s deployment
view.
Graphically, a component is rendered as a rectangle with tabs, usually including only its name.
In order to distinguish it from other components, name of every component should be unique.
Classes represent logical abstractions where as components represent physical things representing
physical packaging.
Classes have attributes and operations where as components have only operations which are reachable
through their interfaces.
Components like dynamic libraries and executable’s are formed by deployment components.
Work product components contains source code files and data files from which deployment
components are created.
As a consequence of an executing system execution components are created, like COM+ object which is
instantiated from a DLL.
The organization of a set of components and their relationships are shown by the component diagram.
The component diagram can be used to model: source code, executable releases, physical databases,
adaptable systems
Graphically, a component diagram is a collection of vertices and arcs, w I is similar to class diagram.
Graphically, a node is represented as a cube in deployment diagram, usually including only its name.
Deployment diagram depicts a static view of the run-time configuration o processing nodes and the
components that run on those nodes.
a. Class
b. Use case
c. State machine
d. Activity
2.A is a behavior that specifies the sequence of states an object goes through
a. class
b. state machine
c. use case
d. activity
3. A is a condition during the life of an object during which it satisfies performs some activity
or waits for some event.
a. class
b. state
c. actor
d. component
4. A is a relationship between two states indicating that an object in the first s will enter the
second state.
a. transition
b. state
c. association
d. generalization
a. composite state
b. history state
c. target state
d. source state
6. Inside the states, the events are encountered to handle without leaving the state. This is known
as
a. state machine
b. state transition
c. internal transition
d. external transition
a. Composite state
b. History state
10
c. Target state
d. Source state
a. class
b. state machine
c. use case
d. activity
a. transition
b. state
c. association
d. generalization
a. Transitions
b. Events
c. Signals
d. State
d. more than one initial state and at most one final state
11
12. Which of the following is used to model the life time of an object?
a. Use Case
b. Class
c. State Machine
d. Interface
13. State that is active after the completion of the transition is called
a. source state
b. target state
c. history state
d. final state
a. Initial State
b. Final State
c. History State
a. timing constraint
12
b. timing mark
c. timing expression
d. timing semantics
a. Timing mark
b. Timing constraint
c. Timing Expression
d. Timing response
a. Timing mark
b. Timing Constraint
c. Timing Expression
d. Timing Location
19. A state machine whose actions are all attached to states is called
a. Activity diagram
b. Mealy machine
c. Moore machine
d. Component diagram
13
ANSWERS:
1. Correct Answer : c
2. Correct Answer : b
The sequence of states an object goes through during its lifetime is specified by a state machine.
3. Correct Answer : b
An object which satisfies some condition, performs some activity or waits for some event is a condition
of state.
4. Correct Answer : a
Relationship between two states, that an object in the first state will enter the second state is known as
transition.
5. Correct Answer : a
A state that has substates, or nested state. A composite state may contain sequential (disjoint)
substates.
6. Correct Answer : c
Inside the states, the events are encountered to handle without leaving the state called internal
transitions. They are subtly different from self-transitions.
7. Correct Answer : c
8. Correct Answer : b
A state machine describes the dynamic aspects of an object whose current behavior depends on its past.
It specifies the legal ordering of states an object may go through during its lifetime.
14
9. Correct Answer : a
At most one initial state and one final state are present in a sequential state machine.
Target state is a state which is active after the completion of the transition.
When an event occurs, timing mark will be the denotation for the time.
15
Moore machine is a state machine whose actions are all attached to states.
If the class has a complex life cycle, then the state chart diagrams are used.
16
c) Hierarchy
d) Abstraction
SOLUTION
Answer: d
Explanation: Abstraction focuses only on the outside view of an object and separates
object’s essential behavior from its implementation. It explains what an object does but
doesn’t explain how it does.
4) Abstraction is classified into types a)
4
b) 3
c) 2
d) 1
SOLUTION
Answer: a
Explanation: Entity abstraction, Action abstraction, Virtual machine abstraction, Coincidental
abstraction
5) The process of compartmentalizing the elements of an abstraction that constitute its structure
and behavior is called as a) Hierarchy
b) Encapsulation
c) Modularity
d) Entity Abstraction
SOLUTION
Answer: b
Explanation: Encapsulation focuses upon the implementation that gives rise to this behavior
and is mostly often achieved through information hiding i.e., abstraction. 6) Single inheritance,
Multiple inheritance, and Aggregation comes under a) Modularity
b) Typing
c) Hierarchy
d) None of the mentioned
SOLUTION
Answer: c
Explanation: All the three types are the examples of Hierarchy, as it denotes ranking or
ordering of abstractions.
7) In which of the following mechanisms, types of all variables and expressions are fixed at
compilation time. a) Strong Typing
b) Weak Typing
c) Static Binding/ early binding
SOLUTION
Answer: c
Explanation: Polymorphism is a feature of object oriented programming that usually takes
the ability of creating an object, or variable, or a function in more than one form.
Polymorphism exists when the features of inheritance and dynamic binding interact.
Unified Process
1. Object oriented analysis and design can be handled by the one who knows UML. a)
True
b) False
SOLUTION
Answer: b
Explanation: The Unified Modeling Language includes a set of graphic notation techniques to
create visual models of
object-oriented software-intensive systems. 2. At Conceptual level Class diagrams should
include
a) operations only
b) attributes only
c) both operations and attributes
d) none of the mentioned
SOLUTION
Answer: b
Explanation: In software engineering, a class diagram in the Unified Modeling Language
(UML) is a type of static structure diagram that describes the structure of a system by showing
the system’s classes, their attributes, operations, and the relationships among objects.
3. Select the statement true for activity diagrams.
a) They can be used to discover parallel activities
b) They are used to depict workflow for a particular business activity
c) Activity diagram do not tell who does what and are difficult to trace back to object models d)
All of the mentioned
SOLUTION
Answer: d
Explanation: Activity diagrams are graphical representations of workflows of step wise
activities and actions with support for choice, iteration and concurrency. 4. Constraints can be
represented in UML by
a) {text}
b) [text].
c) Constraint
d) None of the mentioned
SOLUTION
Answer: a
Explanation: Constraints are represented by {text string}.
5. What is an object?
a) An object is an instance of a class
b) An object includes encapsulation of data
c) An object is not an instance of a class
d) All of the mentioned
SOLUTION
Answer: a
Explanation: An object is an instance of a class.
6. 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
SOLUTION
Answer: c
Explanation: An abstract type is a type in a nominative type system which cannot be
instantiated directly.
7. Which of the following are the valid relationships in Use Case Diagrams a)
Generalization
b) Include
c) Extend
d) All of the mentioned
SOLUTION
Answer: d
Explanation: Generalization, include, extend all of these are valid relationships in use case
diagrams.
8. 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) All of the mentioned
SOLUTION
Answer: d
Explanation: Interaction diagram is used to describe some type of interactions among the
different
elements in the model. So this interaction is a part of dynamic behaviour of the system.
9. UML interfaces are used to:
a) specify required services for types of objects
b) program in Java, but not in C++ or Smalltalk
c) define executable logic to reuse across classes
d) define an API for all classes
SOLUTION
Answer: a
Explanation: An interface is like a template design for a class that contains no data or
implementation; only definitions for methods, properties etc.
10. Referring to the attached diagram, the arrow indicates:
a) Navigability
b) Dependency
c) Association
d) Refers to
SOLUTION
Answer: a
Explanation: The arrows describe the ways you can navigate.
UML diagrams
1. Which of the following UML diagrams has a static view?
a) Collaboration
b) Use case
c) State chart
d) Activity
SOLUTION
Answer: b
Explanation: A use case diagrams captures only the functionality of the system whereas a
dynamic model/view captures the functions as well as the action.
2. What type of core-relationship is represented by the symbol in the figure below?
a) Aggregation
b) Dependency
c) Generalization
d) Association
SOLUTION
Answer: a
Explanation: None.
3. Which core element of UML is being shown in the figure?
a) Node
b) Interface
c) Class
d) Component
SOLUTION
Answer: d
Explanation: The figure is self explanatory. A component is a modular, significant and
replaceable part of the system that packages implementation and exposes a set of interfaces.
4. What type of relationship is represented by Shape class and Square ?
a)
Realization
b) Generalization
c) Aggregation
d) Dependency
SOLUTION
Answer: b
Explanation: The generalization relationship is also known as the inheritance relationship. In
the figure Square is the subclass of superclass shape.
5. Which diagram in UML shows a complete or partial view of the structure of a modeled system
at a specific time? a) Sequence Diagram
b) Collaboration Diagram
c) Class Diagram
d) Object Diagram
SOLUTION
Answer: d
Explanation: An object diagram focuses on some particular set of object instances and
attributes, and the links between the instances. It is a static snapshot of a dynamic view of the
system.
6. Interaction Diagram is a combined term for
a) Sequence Diagram + Collaboration Diagram
b) Activity Diagram + State Chart Diagram
c) Deployment Diagram + Collaboration Diagram
d) None of the mentioned
SOLUTION
Answer: a
Explanation: Interaction diagram are used to formalize the dynamic behavior of the system.
7. Structure diagrams emphasize the things that must be present in the system being modeled.
a) True
b) False
SOLUTION
Answer: a
Explanation: Since structure diagrams represent the structure they are used extensively in
documenting the architecture of software systems
8. Which of the following diagram is time oriented?
a) Collaboration
b) Sequence
c) Activity
d) None of the mentioned
SOLUTION
Answer: b
Explanation: A sequence diagrams timeline along which tasks are completed.
Use Case
1. Use case descriptions consist of interaction among which of the following? a)
Product
b) Use case
c) Actor
d) Product & Actor
SOLUTION
Answer: d
Explanation: Use case description is the interaction among product and actors in a use case.
10
SOLUTION
Answer: d
Explanation: All of the conditions are the heuristics which are to be followed for use case
description.
8. A different alternative must consists of?
a) Different Actors
b) Different Use cases
c) Different Overall product functionality
d) All of the mentioned
SOLUTION
Answer: d
Explanation: A different alternative consists all of the mentioned different aspects.
9. Which of the following statement is true?
a) Interactions supported by a product are cataloged in a use case description
b) Interactions are refined in use case diagram
c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: d
Explanation: Interaction supported by a product are cataloged in use case diagram,
Interaction are refined in use case description.
10. Which steps are included in use case driven iterative development?
a) At each iteration, one or more use cases are selected for implementation
b) Iteration should be followed until the system is complete
c) Iterative development builds system functionality gradually through analysis, design, coding,
testing and evaluation
d) All of the mentioned
SOLUTION
Answer: d
Explanation: All the steps are included for iterative development.
11
12
Explanation: All the statement depicts the method in which use case description can be
written.
6. What is true in context to extensions?
a) Once the basic flow is defined, the extensions can be specified
b) The alternatives are called extension as they extend the activity flow in a different direction
from branch point
c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: c
Explanation: Extension are to be defined at first and do extend the flow from branch out.
7. The Use case Description Heuristics includes which of these?
a) Fill in the use case template from top to bottom
b) Write simple declarative sentences in active voice
c) Avoid sequence of steps by the actors and product
d) All of the mentioned
SOLUTION
Answer: d
Explanation: All of the conditions are the heuristics which are to be followed for use case
description.
8. A different alternative must consists of?
a) Different Actors
b) Different Use cases
c) Different Overall product functionality
d) All of the mentioned
SOLUTION
Answer: d
Explanation: A different alternative consists all of the mentioned different aspects.
9. Which of the following statement is true?
a) Interactions supported by a product are cataloged in a use case description
b) Interactions are refined in use case diagram
c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: d
13
Inception
1. If a software production gets behind schedule, one can add more programmers and catch up.
a) True
b) False
SOLUTION
Answer: b
Explanation: As new people are added, people who were working must spend time
educating the newcomers, thereby reducing the amount of time spent on productive
development effort.
2. Choose an internal software quality from given below:
a) scalability
b) usability
c) reusability
d) reliability
SOLUTION
Answer: c
Explanation: rest all are external qualities which are visible to the user. 3.
14
Explanation: None.
4. The RUP is normally described from three perspectives-dynamic, static & practice.What does
static perspective do ?
a) It shows the process activities that are enacted
b) It suggests good practices to be used during the process
c) It shows the phases of the model over time
d) All of the mentioned
SOLUTION
Answer: a
Explanation: None.
5. The only deliverable work product for a successful project is the working program. a)
True
b) False
SOLUTION
Answer: b
Explanation: A working program is only one part of a software configuration that includes
many elements. Documentation provides a foundation for successful engineering and, more
important, guidance for software support.
6. Which phase of the RUP is used to establish a business case for the system ? a)
Transition
b) Elaboration
c) Construction
d) Inception
SOLUTION
Answer: d
Explanation: None.
7. Which one of the following is not a fundamental activity for software processes in software
engineering ?
a) Software Verification
b) Software Validation
c) Software design and implementation
d) Software evolution
SOLUTION
Answer: a
Explanation: Software Verification is accounted for in implementation & testing activity.
8. A general statement of objectives is the major cause of failed software efforts. a)
True
15
b) False
SOLUTION
Answer: a
Explanation: A formal and detailed description of the information domain, function,
behavior, performance, interfaces, design constraints and validation criteria is essential which
can be determined only after thorough communication between customer and developer.
9. The longer a fault exists in software
a) the more tedious its removal becomes
b) the more costly it is to detect and correct
c) the less likely it is to be properly corrected
d) All of the mentioned
SOLUTION
Answer: d
Explanation: None.
10. Component-based Software Engineering allows faster delivery. a)
True
b) False
SOLUTION
Answer: a
Explanation: Due to using previously tested components they produce more reliable system
at a faster rate.
11. Arrange the following steps to form a basic/general Engineering Process Model.
i. Test ii. Design iii. Install iv. Specification v. Manufacture vi. Maintain
a) 2, 4, 5, 1, 6, 3
b) 4, 2, 5, 1, 3, 6
c) 2, 4, 5, 1, 3, 6
d) 4, 2, 5, 1, 6, 3
SOLUTION
Answer: b
Explanation: None.
16
SOLUTION
Answer: d
Explanation: Use case description is the interaction among product and actors in a use case.
2. Use case description contents include
a) Use case name and number
b) Actors
c) Stakeholder and needs
d) All of the mentioned
SOLUTION
Answer: d
Explanation: Use case includes all of the contents.
3. Which of these statements are truly acceptable?
a) A precondition is an assertion guaranteed to be true when the activity or operation finishes
b) A post condition is an assertion guaranteed to be true when the activity or operation begins
c) Trigger is an event which cause a use case to begin
d) None of the mentioned
SOLUTION
Answer: c
Explanation: Precondition is when operation begins and post condition is when operation
finishes.
4. Which descriptions are true for the use case description format?
a) Underline text refers to another use case
b) Extensions section uses complicated numbering scheme
c) Indentation is used in order to make extensions easier to read
d) All of the mentioned
SOLUTION
Answer: d
Explanation: Use case description format includes the following stated descriptions.
5. What are the methods in which use case descriptions can be written?
a) Actors in a use case are almost always stakeholders
b) Preconditions must be true before statement begins
c) Need list should be reviewed when writing each use case
d) All of the mentioned
SOLUTION
Answer: d
Explanation: All the statement depicts the method in which use case description can be
written.
17
18
19
SOLUTION
Answer: b
Explanation: Inherited object classes are not self-contained. They cannot be understood
without reference to their super-classes.
5. Which of the following points related to Object-oriented development (OOD) is true?
a) OOA is concerned with developing an object model of the application domain
b) OOD is concerned with developing an object-oriented system model to implement
requirements
c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: c
Explanation: The answer is in support with the OOD.
6. How is generalization implemented in Object Oriented programming languages? a)
Inheritance
b) Polymorphism
c) Encapsulation
d) Abstract Classes
SOLUTION
Answer: a
Explanation: None.
7. Which of the following is a disadvantage of OOD ?
a) Easier maintenance
b) Objects may be understood as stand-alone entities
c) Objects are potentially reusable components
d) None of the mentioned
SOLUTION
Answer: d
Explanation: All the options define the characteristics of OOD.
8. Which of the following describes”Is-a-Relationship” ?
a) Aggregation
b) Inheritance
c) Dependency
d) All of the mentioned
SOLUTION
Answer: b
20
Explanation: None.
9. Object that collects data on request rather than autonomously is known as a)
Active Object
b) Passive Object
c) Multiple instance
d) None of the mentioned
SOLUTION
Answer: b
Explanation: A passive object holds data, but does not initiate control.
10. Objects are executed
a) sequentially
b) in Parallel
c) sequentially & Parallel
d) none of the mentioned
SOLUTION
Answer: c
Explanation: Objects may be distributed and may execute sequentially
or in parallel.
21
22
23
b) Digits
c) Punctuation Characters
d) All of the mentioned
SOLUTION
Answer: d
Explanation: A simple name consists of letters, digits and punctuation characters.
2. 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
SOLUTION
Answer: d
Explanation: Composite name consists of sequence of simple names and simple names
already consists of digits.
3. A Class consists of which of these abstractions?
a) Set of the objects
b) Operations
c) Attributes
d) All of the mentioned
SOLUTION
Answer: d
Explanation: A class is an abstraction of objects, operations and attributes.
4. A class is divided into which of these compartments?
a) Name Compartment
b) Attribute Compartment
c) Operation Compartment
d) All of the mentioned
SOLUTION
Answer: d
Explanation: Class is divided into 3 main compartments mentioned.
5. 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
24
SOLUTION
Answer: c
Explanation: Attribute is a data item held by class or object.
6. What should be mentioned as attributes for conceptual modelling? a)
Initial Values
b) Names
c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: c
Explanation: Initial values along with their names are used as attributes.
7. An operation can be described as?
a) Object behavior
b) Class behavior
c) Functions
d) Object & Class behavior
SOLUTION
Answer: d
Explanation: An operation is class and object behavior.
8. Which of these are part of the class operation specification format? a)
name
b) parameter list
c) return-type list
d) all of the mentioned
SOLUTION
Answer: d
Explanation: It consists of all these 3 mentioned format.
9. What among the following statement is true?
a) Associations may also correspond to the relation between instances of three or more classes
b) Association lines may be unlabeled or they may show association name
c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: c
Explanation: All the statements mentioned are true with respect to Notations.
10. What is multiplicity for an association?
25
a) The multiplicity at the target class end of an association is the number of instances that
can be associated with a single instance of source class
b) The multiplicity at the target class end of an association is the number of instances that
can be associated with a number instance of source class c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: a
Explanation: Multiplicity is number of instances associated with single instance to source
class.
11. Which among these are the rules to be considered to form Class diagrams?
a) Class symbols must have at least a name compartment
b) Compartment can be in random order
c) Attributes and operations can be listed at any suitable place
d) None of the mentioned
SOLUTION
Answer: a
Explanation: Compartments can be in order, Attributes and operations must be listed one
per line.
12. Which of these are the heuristics?
a) Name classes, attributes, and roles with noun phrases
b) Name operations and associations with verb phrases
c) Stick to binary associations
d) All of the mentioned
SOLUTION
Answer: d
Explanation: All the heuristic mentioned are true.
13. An object symbol is divided into what parts?
a) Top compartment
b) Bottom Compartment
c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: c
Explanation: An object is divided into top and bottom compartments.
26
Elaboration
1. Which paradigm relies on the natural compartmentalization of a problem and organizes team
members to work on pieces of the problem with little active communication among themselves?
a) random paradigm
b) open paradigm
c) closed paradigm
d) synchronous paradigm
SOLUTION
Answer: c
Explanation: None.
2. Who interacts with the software once it is released for production use? a)
End-users
b) Client
c) Project (technical) managers
d) Senior managers
SOLUTION
Answer: a
Explanation: A product is always built to satisfy an end-user.
3. Which of the following is not an effective project manager trait?
a) Problem solving
b) Managerial identity
c) Influence and team building
d) None of the mentioned
SOLUTION
Answer: d
Explanation: All are key traits of an effective project manager.
4. Which type of software engineering team has a defined leader who coordinates specific tasks
and secondary leaders that have responsibility for sub tasks? a) Controlled decentralized (CD)
b) Democratic decentralized (DD)
c) Controlled centralized (CC)
d) None of the mentioned
SOLUTION
Answer: a
Explanation: Problem solving remains a group activity, but implementation of SOLUTION
s is partitioned among subgroups by the team leader.
27
28
c) Problem elaboration
d) All of the mentioned
SOLUTION
Answer: d
Explanation: During the scoping activity decomposition is applied in two major areas: the
functionality that must be delivered and the process that will be used to deliver it.
10. Which of the following is not a sign that indicates that an information systems project is in
jeopardy?
a) Software people don’t understand their customers needs
b) Changes are managed poorly
c) Sponsorship is gained
d) Users are resistant
SOLUTION
Answer: c
Explanation: Other options are contradictory to the question.
11. SPMP stands for
a) Software Project Manager’s Plan
b) Software Project Management Plan
c) Software Product Management Plan
d) Software Product Manager’s Plan
SOLUTION
Answer: b
Explanation: After planning is complete, documenting of the plans is done in a Software
Project Management Plan(SPMP) document.
Domain Model
1. Classes used to describe an application’s primary elements.
a) Domain Classes
b) Application
c) Context
d) View
SOLUTION
Answer: a
Explanation: Domain classes are used to describe an application’s primary elements and
characteristics.
2. In web applications, domain classes are generally the first things to be defined. a)
True
29
b) False
SOLUTION
Answer: a
Explanation: Domain classes represent data that is saved for posterity—in a permanent
storage system—so it
interacts with controllers, as well as representing data displayed in views.
3. In Grails, domain classes are placed under:-
a) /grails-app/WEB-INF/
b) /grails-app/domain/
c) /grails-app/domain/WEB-APP
d) /grails-app/
SOLUTION
Answer: b
Explanation: In Grails, domain classes are placed under the /grails-app/domain/ directory. 4.
a) grails create-domain-class
b) grails create-domain-class domain class name
c) domain class name
d) none of the mentioned
SOLUTION
Answer: b
Explanation: The creation of domain classes, like most other things in Grails, can be carried
out by executing a simple command in the following form: grails create-domain-class domain
class name
5. The command domain class name in creation of domain classes generates a file named domain
class name.groovy. a) True
b) False
SOLUTION
Answer: a
Explanation: It generates a skeleton domain class file named domain class name.groovy
inside the /grails-app/domain/ directory.
6. Corresponding unit tests files are also generated for each domain class while creating domain
classes. a) True
b) False
SOLUTION
Answer: a
30
Explanation: In addition, corresponding unit tests files are also generated for each domain
class under an application’s test/unit directory.
7. Static field which defines constraints on the domain class. a)
static{}
b) static field{}
c) static constraint{}
d) static constraints{}
SOLUTION
Answer: d
Explanation: static constraints = { }, defines constraints on the domain class.
8. Declaration name which indicates that object’s name field can’t be blank. a)
blank:false
b) blank:true
c) all of the mentioned
d) none of the mentioned
SOLUTION
Answer: a
Explanation: The declaration name(blank:false) indicates that a Player object’s name field
cannot be left blank.
9. A variety of constraints can be used to enforce a domain class’s structure. a)
True
b) False
SOLUTION
Answer: a
Explanation: Under certain circumstances, if a constraint is too elaborate, it’s often
incorporated within an application’s controller prior to creating an object of a certain domain
class.
10. Command to generate the corresponding CRUD controller and views for an application’s
domain class.
a) grails create-domain-class domain class name
b) grails create-domain-class
c) grails generate-all domain class name
d) none of the mentioned
SOLUTION
Answer: c
Explanation: You can execute the following command to generate the corresponding CRUD
controller and views for an application’s domain class:
31
32
b) grails start-app
c) grails run-app
d) none of the mentioned
SOLUTION
Answer: c
Explanation: You can start the Grails application using grails run-app and work as an end user
33
34
SOLUTION
Answer: d
Explanation: All of the mentioned verb phrases can be modeled.
9. The associations resulting from modelling verb phrases should be reviewed in which of these
ways?
a) Any no of associations can be included
b) Do not combine association lines
c) Do not break any association involving three or more binary associations
d) None of the mentioned
SOLUTION
Answer: d
Explanation: All the statements are false, Do not draw more than one association line
between classes, Combine association lines, Break any association involving three or more
binary associations.
10. Which of the following statement is true?
a) Adding Multiplicities is the last step in conceptual modelling
b) Adding Multiplicities is the easiest step
c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: c
Explanation: Both the mentioned statements are true with respect to the multiplicities.
Associations
1. Which of the following is not needed to develop a system design from concept to detailed
object-oriented design?
a) Designing system architecture
b) Developing design models
c) Specifying interfaces
d) Developing a debugging system
SOLUTION
Answer: d
Explanation: The debugging system is a part of testing phase.
2. Which of the following is a dynamic model that shows how the system interacts with its
environment as it is used? a) system context model
b) interaction model
c) environmental model
35
36
SOLUTION
Answer: d
Explanation: Important relationships that may be documented at this stage are generalization
(inheritance) relationships, uses/used-by relationships, and composition relationships.
7. Which model shows the flow of object interactions?
a) Sequence model
b) Subsystem model
c) Dynamic model
d) Both Sequence and Dynamic model
SOLUTION
Answer: a
Explanation: Sequence model are represented using a UML sequence or a collaboration
diagram and are dynamic models.
8. If the system state is Shutdown then it can respond to which of the following message? a)
restart()
b) reconfigure()
c) powerSave()
d) all of the mentioned
SOLUTION
Answer: d
Explanation: A restart() message causes a transition to normal operation. Both the
powerSave() and reconfigure() messages cause a transition to a state in which the system
reconfigures itself.
9. Which message is received so that the system moves to the Testing state, then the Transmitting
state, before returning to the Running state? a) signalStatus()
b) remoteControl()
c) reconfigure()
d) reportStatus()
SOLUTION
Answer: d
Explanation: None.
10. Open source development involves making the source code of a system publicly available. a)
True
b) False
SOLUTION
Answer: a
37
Explanation: This means that many people can propose changes and improvements to the
software.
Attributes
1. The quality attributes can be calculated under which of the following measures? a)
Observable
b) Non observable
c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: c
Explanation: The quality attributes can be calculated under-observable and non observable.
2. Which of the following can be included under observable measure?
a) How well the system during execution satisfy its behavioral requirements?
b) How easy it is to integrate?
c) How easy it is to test and modify?
d) All of the mentioned
SOLUTION
Answer: a
Explanation: Rest others are non observable measures.
3. Which of the following can be included under Non observable measure?
a) How well the system during execution satisfy its behavioral requirements?
b) Does the system functions as desired when connected to other systems?
c) How easy it is to test and modify?
d) All of the mentioned
SOLUTION
Answer: c
Explanation: Rest others are observable measures.
4. Which of the following is a correct statement?
a) A highly modifiable system produces correct results
b) A highly modifiable system does not produces correct results
c) A highly modifiable system may or may not produces correct results
d) None of the mentioned
SOLUTION
Answer: c
Explanation: A highly modifiable system may or may not produces correct results.
5. Which of the following is considered incorrect with respect to the quality?
38
39
c) The main technique for achieving portable software is to have independent platform
dependency
d) None of the mentioned
SOLUTION
Answer: a
Explanation: The main technique for achieving portable software is to isolate system
dependency.
10. By what methods quality attributes can be judged?
a) Qualities that can be discerned by observing the system execute
b) Qualities directly attributable to the system
c) Qualities about the architecture itself that are important
d) All of the mentioned
SOLUTION
Answer: d
Explanation: All of the mentioned are the methods for judging quality attributes.
40
41
Explanation: Designers apply the following heuristics to this activity Check each class for
important but overlooked attributes, operations, or associations and Apply design patterns
where appropriate.
7. Which of the following is referred for the conceptual modelling?
a) Change actors to interface classes
b) Add actor domain classes
c) Convert or add controllers and coordinators
d) All of the mentioned
SOLUTION
Answer: d
Explanation: All of the following is referred for the conceptual modelling.
8. Which of these are class diagram generation heuristics?
a) Add classes for data types
b) Convert or add container classes
c) Convert or add engineering design relationships
d) All of the mentioned
SOLUTION
Answer: d
Explanation: All of the mentioned steps are the heuristics for class diagram generation.
9. Which of these steps are followed for Generating Classes from Themes?
a) Look for entities in charge of program tasks
b) Rework candidate classes with overlapping responsibilities to divide their responsibilities
cleanly
c) Look for things about which the program stores data
d) Look for entities in charge of program tasks, Look for things about which the program stores
data
SOLUTION
Answer: d
Explanation: Generating Classes from Themes follows -Look for entities in charge of program
tasks, Look for
things about which the program stores data.
10. Which of the following is followed for Evaluating and Selecting Candidate Classes?
a) Discard classes with vague names or murky responsibilities
b) Discard classes will not do something out of scope
c) Look for actors
d) All of the mentioned
42
SOLUTION
Answer: a
Explanation: Evaluating and Selecting Candidate Classes follows- Discard classes with vague
names or murky responsibilities, Discard classes that do something out of scope.
a) Nicklaus Wirth described the first software engineering method as stepwise refinement
b) Stepwise refinement follows its existence from 1971
c) It is a top down approach
d) All of the mentioned
SOLUTION
Answer: d
Explanation: It is top down approach and not bottom up.
4. What is incorrect about structural design?
a) Structural design introduced notations and heuristics
b) Structural design emphasis on procedural decomposition
c) The advantage is data flow representation
d) It follows Structure chart
43
SOLUTION
Answer: c
Explanation: The biggest drawback or problem is a data flow diagram of structure design.
5. What is the SOLUTION for Structural design?
a) The specification model following data flow diagram
b) Procedures represented as bubbles
c) Specification model is structure chart showing procedure calling hierarchy and flow of data in
and out of procedures
d) Emphasizing procedural decomposition
SOLUTION
Answer: c
Explanation: It is SOLUTION to central problem. Rest others are problems.
6. Which of these are followed by the latest versions of structural design?
a) More detailed and flexible processes
b) Regular Notations
c) Wide support by CASE(Computer Aided Software Engineering)
d) Wide support by CASE, More detailed and flexible processes
SOLUTION
Answer: d
Explanation: Notations used are more specialized and sophisticated one.
7. Which of the following is an incorrect method for structural design?
a) Transition of problem models to SOLUTION models
b) Handling of larger and more complex products
c) Designing Object oriented systems
d) More procedural approach
SOLUTION
Answer: b
Explanation: It does not account for larger and complex products.
8. What is followed by the design task?
a) Choosing specific classes, operations
b) Checking model’s completeness
c) Following design task heuristics
d) All of the mentioned
SOLUTION
Answer: d
Explanation: All of these tasks are followed by a design task.
44
45
Explanation: UML has Four different interaction diagram notations – A sequence diagram, A
communication diagram, An interaction overview diagram, A timing diagram.
3. What is a sequence diagram?
a) A diagram that shows interacting individuals along the top of the diagram and messages
passed among them arranged in temporal order down the page
b) A diagram that shows messages superimposed on a diagram depicting collaborating
individuals and the links among them
c) A diagram that shows the change of an individual’s state over time
d) All of the mentioned
SOLUTION
Answer: a
Explanation: A sequence diagram shows interacting individuals along the top of the diagram
and messages passed among them arranged in temporal order down the page.
4. Which of the following is true about Sequence frames?
a) A sequence diagram has a frame consisting of a rectangle with a pentagon in its upper left-
hand corner
b) The pentagon is its name compartment; the interaction is represented inside the rectangle
c) The string in the name compartment has the form sd interaction Identifier where interaction
Identifier is either a simple name or an operation specification with the same format as in a
class diagram
d) All of the mentioned
SOLUTION
Answer: d
Explanation: All of the mentioned statements are followed in sequence frames.
5. What is a lifeline?
a) It is a frame consisting of a rectangle with a pentagon in its upper left-hand corner
b) It is a rectangle containing an identifier with a dashed line extending below the rectangle
c) It is a name compartment; the interaction is represented inside the rectangle
d) None of the mentioned
SOLUTION
Answer: b
Explanation: Lifeline is a rectangle containing an identifier with a dashed line extending
below the rectangle.
6. What does a message mean?
a) It Passes all communications from one object to another and are represented by message
arrows in sequence diagrams
b) The message goes from the sending object’s lifeline to the receiving object’s lifeline
46
c) It is a rectangle containing an identifier with a dashed line extending below the rectangle
d) All of the mentioned
SOLUTION
Answer: a
Explanation: All communications from one object to another are called messages and are
represented by message arrows in sequence diagrams.
7. What are the three different types of message arrows?
a) Synchronous, asynchronous, asynchronous with instance creation
b) Self, Multiplied, instance generator
c) Synchronous, Asynchronous, synchronous with instance creation
d) None of the mentioned
SOLUTION
Answer: c
Explanation: Three different types of message arrows are- Synchronous, Asynchronous,
Synchronous with instance creation.
8. Which of these are true with respect to the message arrows?
a) The synchronous message arrow is used when a sending individual continues execution
after sending the message
b) The asynchronous message arrow is used when a sending individual suspends execution
after sending the message
c) The dashed arrow is used either to show the return of control from a synchronous
message or to create a new entity d) All of the mentioned
SOLUTION
Answer: c
Explanation: The asynchronous message arrow is used when a sending individual continues
execution after sending the message and The synchronous message arrow is used when a
sending individual suspends execution after sending the message.
9. When is the operation executing, suspended and active?
a) An operation is executing when some process is actually running its code
b) An operation is suspended when it sends a synchronous message and it is waiting for the
message to return
c) An operation is active when it is either executing or suspended
d) All of the mentioned
SOLUTION
Answer: d
Explanation: All of the mentioned statements are true and respond to operations executing
suspended and active states.
47
48
49
50
c) Statechart diagram
d) Object diagram
SOLUTION
Answer: c
Explanation: A statechart diagram shows a state machine, consisting of states, transitions,
events, and activities.
10. Which diagram shows the configuration of run-time processing elements?
a) Deployment diagram
b) Component diagram
c) Node diagram
d) ER-diagram
SOLUTION
Answer: a
Explanation: A Deployment diagram shows the configuration of run-time processing
elements and the software components, processes, and objects.
11. Which things in UML are the explanatory parts of UML models?
a) Structural things
b) Behavioral things
c) Grouping things
d) Annotational things
SOLUTION
Answer: d
Explanation: It include a note which is simply a symbol for rendering constraints and
comments attached to an element or a collection of elements.
12. Which of the following term is best defined by the statement:”a structural relationship that
specifies that objects of one thing are connected to objects of another”? a) Association
b) Aggregation
c) Realization
d) Generalization
SOLUTION
Answer: a
Explanation: None.
13. What refers to the value associated with a specific attribute of an object and to any actions
or side?
a) Object
b) State
c) Interface
51
52
a) Structural things
b) Behavioral things
c) Grouping things
d) Annotational things
SOLUTION
Answer: a
Explanation: Structural things are mostly static parts of a model, representing elements that
are either conceptual or physical.
3. What is a collection of operations that specify a service of a class or component? a)
Use Case
b) Actor
c) Interface
d) Relationship
SOLUTION
Answer: c
Explanation: None.
4. What is a physical element that exists at runtime in UML?
a) A node
b) An interface
c) An activity
d) None of the mentioned
SOLUTION
Answer: a
Explanation: A node represents a computational resource.
5. What can be requested from any object of the class to affect behavior? a)
object
53
b) attribute
c) operation
d) instance
SOLUTION
Answer: c
Explanation: An operation is the implementation of a service that can be requested from any
object of the
class to affect behavior.
6. Which things are dynamic parts of UML models?
a) Structural things
b) Behavioral things
c) Grouping things
d) Annotational things
SOLUTION
Answer: b
Explanation: These are the verbs of a model, representing behavior over time and space.
7. Which diagram in UML emphasizes the time-ordering of messages? a)
Activity
b) Sequence
c) Collaboration
d) Class
SOLUTION
Answer: b
Explanation: This diagram is a model describing how groups of objects collaborate in some
behavior over time.
8. Object diagram captures the behavior of a single use case. a)
True
b) False
SOLUTION
Answer: b
Explanation: Sequence Diagram is responsible for this.
9. If you are working on real-time process control applications or systems that involve concurrent
processing, you would use a a) Activity diagram
b) Sequence diagram
c) Statechart diagram
d) Object diagram
54
SOLUTION
Answer: c
Explanation: A statechart diagram shows a state machine, consisting of states, transitions,
events, and activities.
10. Which diagram shows the configuration of run-time processing elements?
a) Deployment diagram
b) Component diagram
c) Node diagram
d) ER-diagram
SOLUTION
Answer: a
Explanation: A Deployment diagram shows the configuration of run-time processing
elements and the software components, processes, and objects.
11. Which things in UML are the explanatory parts of UML models?
a) Structural things
b) Behavioral things
c) Grouping things
d) Annotational things
SOLUTION
Answer: d
Explanation: It include a note which is simply a symbol for rendering constraints and
comments attached to an element or a collection of elements.
12. Which of the following term is best defined by the statement:”a structural relationship that
specifies that objects of one thing are connected to objects of another”? a) Association
b) Aggregation
c) Realization
d) Generalization
SOLUTION
Answer: a
Explanation: None.
13. What refers to the value associated with a specific attribute of an object and to any actions
or side?
a) Object
b) State
c) Interface
d) None of the mentioned
55
SOLUTION
Answer: b
Explanation: In a state chart diagram, effects occur when the attribute’s value changes.
a)
Use Case
56
b) Collaboration Diagram
c) Class Diagram
d) Object Diagram
SOLUTION
Answer: a
Explanation: None.
3. Which UML diagram is shown below?
a) Use Case
b) State Chart
c) Activity
d) Object Diagram
SOLUTION
Answer: b
Explanation: None.
4. Which UML diagram is shown below?
57
a) Use Case
b) Collaboration Diagram
c) Sequence Diagram
d) Object Diagram
SOLUTION
Answer: c
Explanation: None.
5. Which UML diagram’s symbols are shown below?
a) Deployment diagram
b) Collaboration Diagram
c) Component Diagram
58
d) Object Diagram
SOLUTION
Answer: a
Explanation: None.
6. Which UML diagram is shown below?
a) Deployment diagram
b) Collaboration Diagram
c) Object Diagram
d) Class Diagram
SOLUTION
Answer: d
Explanation: None.
7. Which UML diagram is shown below?
59
a) Activity
b) State chart
c) Sequence
c) Collaboration
SOLUTION
Answer: a
Explanation: None.
8. Which UML diagram is shown below?
60
a)
Component
b) Deployment
c) Use Case
d) DFD
SOLUTION
Answer: a
Explanation: None.
61
62
SOLUTION
Answer: d
Explanation: All of the mentioned are true for state diagram.
6. Which of the statements state the name compartment?
a) The first compartment is the name compartment
b) It contains the state name; State names are optional and may be path names
c) The name compartment can never be omitted
d) The first compartment is the name compartment, It contains the state name; State names are
optional and may be path names
SOLUTION
Answer: d
Explanation: State name compartment is the first compartment that contains state name,
name compartment may be omitted.
7. Which of the following is true?
a) A state symbol without a nested state compartment represents a complex state
b) One with a nested state compartment represents a simple state
c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: d
Explanation: A state symbol without a nested state compartment represents a simple state
and One with a nested state compartment represents a complex state.
8. Which of the following are composite states?
a) A sequential composite state
b) A concurrent composite state
c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: c
Explanation: There are two kinds of composite states -A sequential composite state and A
concurrent composite state.
9. What is sequential and concurrent composite state means?
a) A concurrent composite state contains a single state diagram composed of sub-states or
inner states and the transitions between them
b) A sequential composite state contains two or more sequential state diagrams in regions
separated by dashed lines called concurrent region boundary lines c) All of the mentioned
d) None of the mentioned
63
SOLUTION
Answer: d
Explanation: A sequential composite state contains a single state diagram composed of sub-
states or inner states and the transitions between them and A concurrent composite state
contains two or more sequential state diagrams in regions separated by dashed lines called
concurrent region boundary lines.
10. Sequential composite states simplify state models in two ways?
a) They organize states into hierarchies
b) They consolidate many transitions
c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: c
Explanation: All of the mentioned are the two ways to simplify sequential composite states.
64
a) Module D uses module I when a correct version of I must be present for D to work correctly
b) Module D depends for compilation on module I
c) Class I imports elements from package D
d) None of the mentioned
SOLUTION
Answer: c
Explanation: Class D imports elements from package I.
5. What is a collection of model elements called?
a) Box
b) Dependency
c) UML packages
d) Package members
SOLUTION
Answer: d
Explanation: UML Package is a collection of model elements called package members.
6. A package diagram consists of the following?
a) Package symbols
b) Groupings of Use cases, classes, components
c) Interface
d) Package symbols, Groupings of Use cases, classes & components
SOLUTION
Answer: d
Explanation: A package diagram consists of package symbols, groupings of use cases, classes,
components, etc.
7. What types of units does Component follow?
a) Modular Unit
b) Replaceable Unit
c) Unit with well defined interface
d) All of the mentioned
65
SOLUTION
Answer: d
Explanation: A component consists of modular, replaceable unit with well defined interface.
8. Components can be represented by which of the following?
a) Component symbols
b) Stereotypes
c) Rectangular boxes
d) Component symbols & Stereotypes
SOLUTION
Answer: d
Explanation: Components can be expressed by Symbols and stereotypes.
9. What does a component diagram consists of?
a) Components, their Relationship to the environment
b) Packages and dependency
c) Internal structure
d) Internal structure, Components & their Relationship to the environment
SOLUTION
Answer: d
Explanation: Component diagram consists of components, relationship to the environment
and their internal structure.
10. Which of these is true with respect to interfaces?
a) Interfaces in component diagram defines relationship between components and environment
b) Interfaces realized by a class or a component are required interfaces
c) Interface on which a class or component depends are called provided interfaces d) All of the
mentioned
SOLUTION
Answer: a
Explanation: Interfaces realized by a class or a component are provided interfaces whereas
Interfaces on which a class or component depends are called required interfaces.
11. What is a delegation connector?
a) A delegation connector ties a component interface to one or more internal classes or
components
b) Delegation connectors are solid arrows stereotyped <>
c) A delegation connector may also extend from an internal class to an external interface d) All
of the mentioned
SOLUTION
Answer: d
66
Explanation: All of the mentioned options represents delegation connector and are true.
12. Which of these are diagrammatic heuristics?
a) Use notes, constraints, properties and stereotypes to add information to UML models
b) Use Stereotypes to name dependencies
c) Use packages to group elements in static models
d) All of the mentioned
SOLUTION
Answer: d
Explanation: All of the mentioned are the respective heuristics to be followed for the UML
models diagram.
67
SOLUTION
Answer: c
Explanation: All of the mentioned options are true definitions of the notations.
4. Which of these are types of nodes used in the deployment diagram? a)
Device
b) Execution Environment
c) Artifact
d) Device & Execution Environment
SOLUTION
Answer: d
Explanation: The two types of nodes are the Device and execution environment.
5. Which are the ways to represent nodes in a deployment diagram?
a) Nodes instances are underlined identifiers of the form name:type
b) The name may be left off, indicating an unnamed instance of the type
c) The type may be left off, indicating a named instance with an unspecified type d) All of the
mentioned
SOLUTION
Answer: d
Explanation: All of the above are the ways in which a node can be represented in a
deployment diagram.
6. What does a deployment diagram consists of?
a) Computational resource
b) Communication path between resource
c) Artifacts that execute resource
d) All of the mentioned
SOLUTION
Answer: d
Explanation: A deployment diagram consists of all the mentioned options.
7. Which of the following is incorrect in the deployment diagram?
a) Communication connections between nodes are shown by communication paths
b) Communication paths are represented by dotted lines
c) Artifacts are deployed inside nodes where they reside and execute
d) None of the mentioned
SOLUTION
Answer: b
Explanation: Communication paths are represented by solid lines and not dotted lines.
8. Which of these is correct?
68
69
b) Expert designers can benefit from studying patterns too: They can broaden their
repertoire of patterns and deepen their understanding of the patterns they already know c) All
of the mentioned
d) None of the mentioned
SOLUTION
Answer: c
Explanation: Novice designers can benefit from learning SOLUTION patterns that experts
use, without needing design experience whereas Expert designers can benefit from studying
patterns too: They can broaden their repertoire of patterns and deepen their understanding
of the patterns they already know.
3. What benefits does patterns provide?
a) Promoting Communication
b) Streamlining Documentation
c) Increasing Development Efficiency
d) All of the mentioned
SOLUTION
Answer: d
Explanation: Patterns provide all the mentioned benefits.
4. Which of the following Choices and standardizes patterns for a problem domain promotes
software reuse and, hence, quality and productivity? a) Promoting Communication
b) Streamlining Documentation
70
71
72
b) False
SOLUTION
Answer: b
Explanation: Design patterns allow the designer to create the system architecture by
integrating reusable components.
3. The use of design patterns for the development of object-oriented software has important
implications for
a) Component-based software engineering
b) Reusability in general
c) All of the mentioned
d) None of the mentioned
SOLUTION
Answer: c
Explanation: None.
4. Which of the following is a design pattern?
a) Behavioral
b) Structural
c) Abstract Factory
d) All of the mentioned
SOLUTION
Answer: d
Explanation: All the options are design patterns so option d.
5. You want to minimize development cost by reusing methods? Which design pattern would you
choose?
a) Adapter Pattern
b) Singleton Pattern
c) Delegation pattern
d) Immutable Pattern
SOLUTION
Answer: c
Explanation: The delegation pattern is a design pattern in OOP where an object, instead of
performing one of its stated tasks, delegates that task to an associated helper object.
6. You want to avoid multiple inheritance. Which design pattern would you choose?
a) Abstraction-Occurrence Pattern
b) Player-Role Pattern
c) General Hierarchy Pattern
d) Singleton Pattern
73
SOLUTION
Answer: b
Explanation: The answer is self-explanatory. 7.
a) patterns
b) documents
c) structures
d) methods
SOLUTION
Answer: a
Explanation: A pattern is the outline of a reusable SOLUTION to a general problem
encountered in a particular context.
contexts. a) True
b) False
SOLUTION
Answer: a
Explanation: Each design pattern has a name and use of each pattern has consequences.
9. Which pattern prevents one from creating more than one instance of a variable? a)
Factory Method
b) Singleton
c) Observer
d) None of the mentioned
SOLUTION
Answer: b
Explanation: In singleton pattern, the class itself is made responsible for keeping track of its
instance.Thus it ensures that no more than one instance is created.
10. Facade pattern promotes weak coupling between subsystem and its clients. a)
True
b) False
SOLUTION
Answer: a
Explanation: It is one of the patterns benefit.The facade pattern shields clients from
subsystem classes and reduces the number of objects that clients deal with.
74
subsystem.
13. In factory method pattern, the framework must instantiate classes but it only knows about
the abstract classes, which it cannot initiate. How would one solve this problem?
a) encapsulating the knowledge of which document subclass to is to be created and
b) moving this knowledge out of the framework
c) instantiating the application specific documents without knowing their class d) all of the
mentioned
SOLUTION
Answer: d
Explanation: Following all the options in order will solve the factory method problem.
UNIT V TESTING
Object Oriented Methodologies
1. The architecture of object-oriented software results in a series of layered subsystems that
encapsulate collaborating classes. a) True
b) False
SOLUTION
Answer: a
75
Answer: d
Explanation: It is due to the evolutionary nature of the OO software engineering paradigm,
these models begin as relatively informal representations of system requirements and evolve
into detailed models of classes, class connections and relationships, system design and
allocation, and object design.
3. Which testing integrates the set of classes required to respond to one input or event for the
system?
a) cluster testing
b) thread-based testing
c) use-based testing
d) none of the mentioned
SOLUTION
Answer: b
Explanation: Each thread is integrated and tested individually. Regression testing is applied
to ensure that no side effects occur.
4. Which of the following is one of the steps in the integration testing of OO software? a)
cluster testing
b) thread-based testing
c) use-based testing
d) none of the mentioned
SOLUTION
Answer: a
Explanation: Here, a cluster of collaborating classes is exercised by designing test cases that
attempt to uncover errors in the collaborations.
5. methods can be used to drive validations tests
a) Yellow-box testing
b) Black-box testing
c) White-box testing
76
77
SOLUTION
Answer: a
Explanation: For example, operations in the account class can be categorized in initialization
operations (open, setup), computational operations (deposit,withdraw) etc.
10. Which of the following is black-box oriented and can be accomplished by applying the same
black-box methods 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
SOLUTION
Answer: d
Explanation: None.
11. In which of the following testing strategies, a smallest testable unit is the encapsulated class
or object?
a) Unit testing
b) Integration testing
c) System testing
d) None of the mentioned
SOLUTION
Answer: a
Explanation: None.
12. Which of the following testing types is not a part of system testing?
a) Recovery testing
b) Stress testing
c) System testing
d) Random testing
SOLUTION
Answer: d
Explanation: It is a testing method at class level.
78
79
c) warranty work
d) complaint reSOLUTION
SOLUTION
Answer: a
Explanation: External failure costs are associated with defects found after the product has
been shipped to the customer.
6. Which of the following is not an appraisal cost in SQA?
a) inter-process inspection
b) maintenance
c) quality planning
d) testing
SOLUTION
Answer: c
Explanation: It is associated prevention cost.
7. Who identifies, documents, and verifies that corrections have been made to the software? a)
Project manager
b) Project team
c) SQA group
d) All of the mentioned
SOLUTION
Answer: c
Explanation: None.
8. The primary objective of formal technical reviews is to find during the process so
that they do not become defects after release of the software. a) errors
b) equivalent faults
c) failure cause
d) none of the mentioned
SOLUTION
Answer: a
Explanation: Errors lead to faults
9. What is not included in prevention costs?
a) quality planning
b) formal technical reviews
c) test equipment
d) equipment calibration and maintenance
SOLUTION
Answer: d
80
Explanation: The cost of quality includes all costs incurred in the pursuit of quality or in
performing quality-related activities.
10. Software quality assurance consists of the auditing and reporting functions of management.
a) True
b) False
SOLUTION
Answer: a
Explanation: None.
81
a) Regression Test
b) Smoke Test
c) Alpha Test
d) Beta Test
SOLUTION
Answer: a
Explanation: Regression test seeks to uncover new software bugs in existing functional and
non-functional areas of a system after changes have been made to them.
5. Which of the following is a black box testing strategy?
a) All Statements Coverage
b) Control Structure Coverage
c) Cause-Effect Graphs
d) All Paths Coverage
SOLUTION
Answer: c
Explanation: Rest are test strategies of white box testing.
6. A set of inputs, execution preconditions and expected outcomes is known as a a)
Test plan
b) Test case
c) Test document
d) Test Suite
SOLUTION
Answer: b
Explanation: None.
7. In which test design each input is tested at both ends of its valid range and just outside its valid
range?
a) Boundary value testing
b) Equivalence class partitioning
c) Boundary value testing AND Equivalence class partitioning
d) Decision tables
SOLUTION
Answer: a
Explanation: Boundary value analysis is a software testing technique in which tests are
designed to include representatives of boundary values.
8. A white box test scales up well at different granularity levels of testing. a)
True
b) False
82
SOLUTION
Answer: b
Explanation: A white box test is mostly applicable at unit and integration testing level.
9. When does the testing process stops?
a) When resources (time and budget) are over
b) When some coverage is reached
c) When quality criterion is reached
d) Testing never ends
SOLUTION
Answer: c
Explanation: As software testing is an exhaustive process, when the quality assurance is
established and the product is ready to be delivered, testing is stopped.
10. Which of the following is not a part of a test design document? a)
Test Plan
b) Test Design Specification
c) Test Case Specification
d) Test Log
SOLUTION
Answer: d
Explanation: Test log is a part of testing result document.
11. Specifying a set of test cases or test paths for each item to be tested at that level is known as
a) Test case generation
b) Test case design
c) ALL of the mentioned
d) None of the mentioned
SOLUTION
Answer: c
Explanation: None.
12. Acceptance & system test planning are a part of architectural design. a)
True
b) False
SOLUTION
Answer: b
Explanation: They are a part of requirements engineering, while integration & unit test
planning come under architectural design.
13. PRD stands for
a) Product Requirement Document
83
84
Explanation: A run chart is used to monitor the behavior of a variable over time for a process
or system. Run charts graphically display cycles, trends, shifts, or non-random patterns in
behavior over time. It contains lower and upper limits.
4. Maintenance testing is performed using which methodology? a)
Retesting
b) Sanity testing
c) Breadth test and depth test
d) Confirmation testing
SOLUTION
Answer: c
Explanation: Maintenance Testing is done on the already deployed software. The deployed
software needs to be enhanced, changed or migrated to other hardware. The Testing done during
this enhancement, change and migration cycle is known as maintenance testing. 5. White Box
techniques are also classified as
a) Design based testing
b) Structural testing
c) Error guessing technique
d) None of the mentioned
SOLUTION
Answer: b
Explanation: The structural testing is the testing of the structure of the system or
component. Structural testing is often referred to as ‘white box’ or ‘glass box’ or ‘clear-box
testing’ because in structural testing we are interested in what is happening ‘inside the
system/application’. 6. Exhaustive testing is
a) always possible
b) practically possible
c) impractical but possible
d) impractical and impossible
SOLUTION
Answer: c
Explanation: Exhaustive testing is the testing where we execute single test case for multiple
test data.It means if we are using single test case for different product or module under manual
testing.
testing .
7. Which of the following is/are White box technique?
a) Statement Testing
b) Decision Testing
85
c) Condition Coverage
d) All of the mentioned
SOLUTION
Answer: d
Explanation: Statement testing, decision testing, condition coverage all of them uses white
box technique.
8. What are the various Testing Levels?
a) Unit Testing
b) System Testing
c) Integration Testing
d) All of the mentioned
SOLUTION
Answer: d
Explanation: Unit, system, integration testing all of them are levels in testing.
9. Boundary value analysis belong to?
a) White Box Testing
b) Black Box Testing
c) White Box & Black Box Testing
d) None of the mentioned
SOLUTION
Answer: b
Explanation: Boundary value analysis is based on testing at the boundaries between
partitions and checks the output with expected output. 10. Alpha testing is done at
a) Developer’s end
b) User’s end
c) Developer’s & User’s end
d) None of the mentioned
SOLUTION
Answer: a
Explanation: Alpha testing takes place at the developer’s end. Developers observe the users
and note problems. Alpha testing is testing of an application when development is about to
complete. Minor design changes can still be made as a result of alpha testing.
86