Design Patterns/Software Design Modeling MCQ QUESTIONS AND ANSWER Sample Test,Sample questions

Question:
	
In an Activity Diagram, organizing the activities into groups is called ________

1.forking

2.joining

3.swimlane

4.synchronization


Question:
	
State that is active after the completion of the transition is called ________

1.source state

2.target state??

3.history state??

4.final state??


Question:
 A visitor class is used which changes the executing algorithm of an element class…

1. Business Delegate Pattern

2.Composite Entity Pattern

3.Visitor Pattern

4.MVC Pattern


Question:
 Forward engineering and reverse engineering can be applicable to _____

1.class diagram??

2.stereotypes

3.tagged values??

4.adornments


Question:
A model is a _________ of reality. 

1.complication

2.simplification

3.realization

4.generalization


Question:
A set of messages exchanged among a set of objects is called as  ________

1.use case??

2.activity

3.interaction

4.deployment


Question:
A set of ________ models are used to approach a complex system. 

1.dependent

2.independent

3.both dependent and independent??

4.different


Question:
A state that has substates, that is nested states, is called ________

1.composite state??

2.history state??

3.target state??

4.source state??


Question:
A The relationship between two states is called ________

1.transition

2.state

3.association

4.generalization


Question:
A ______ is a behaviour that specifies the sequence of states, an object goes through during its life time in reponse to an events.

1.class

2.state machine??

3.use case??

4.activity


Question:
A ________   is a condition during the life of an object during which it satisfies performs some activity or waits for some event

1.class

2.state

3.actor

4.component


Question:
A ________  is a relationship between two states indicating that an object in the first s will enter the second state

1.transition

2.state

3.association

4.generalization


Question:
A ________  is a stream of messages exchanged between objects

1.sequence

2.modeling

3.transition

4.objects


Question:
Absolute time of an event is modeled as ________

1.timing constraint??

2.timing mark??

3.timing expression??

4.timing semantics??


Question:
Activity diagram is a special kind of ________

1.use case diagram??

2.state chart diagram??

3.interaction diagram??

4.component diagram


Question:
All public methods in business model objects are defined directly or indirectly because of a ________ requirement. 

1.use case??

2.dependency

3.association

4.sequence


Question:
An operation can be described as__________.

1.object

2.class

3.functions

4.object & class


Question:
An ________ shows an interaction consisting of a set of objects and their relationships, including the messages. 

1.interaction diagram??

2.class diagram??

3.use case diagram??

4.activity diagram


Question:
Consider the code below, class class1{ public: void func1(); }; class class2 : protected class1 { }; Function func1 of class1 is ______ in class2

1.public

2.private

3.protected

4.none of these


Question:
Design Axioms are 1.Maintain the independence of components2.Minimize the information content of the design

1.only 1 is correct

2.only 2 is correct

3.both 1 and 2 are correct

4.both 1 & 2 are wrong


Question:
designers look for candidate classes ?why?

1.to model entities in charge of or involved in program tasks

2.to model things in the world that interact directly with the program

3.to model structures and collections of objects

4.all of the mentioned


Question:
During the design phase, the overall ———— of the system is described.

1.architecture

2.system flow

3.data flow

4.none


Question:
Executable atomic computations are called as  ________

1.action states??c

2.activity states

3.composite states??

4.concurrent states


Question:
Executable non atomic computations are called as _______

1.action states??

2.activity states??

3.transitions

4.simple states


Question:
Fork and Join terms are associated with

1.activity diagram

2.use case diagram

3.class diagram

4.object diagram


Question:
Forward engineering in UML is the process of transforming ____

1.a code into a model??

2.a code into design n??

3.a model into a code

4.a model into test??


Question:
How is class visibility expressed?

1.through symbols like +,-,#

2.through cohesion coefficient

3.through coupling coefficient

4.through use case model


Question:
If the system is performing no function then it is in ___

1.clear state

2.initial state

3.final state

4.reset state


Question:
In a sequence diagram, the _____ indicates when an object sends or receives a message

1.command line

2.focus

3.request link

4.lifeline


Question:
In an Activity Diagram, transitions belongs to ________

1.trigger oriented transitions??

2.self transitions??

3.internal transitions??

4.completion transitions


Question:
In which of the following phase, the class objects and the interrelationships of these classes are translated and actually coded by using an object-oriented programming language?

1.analysis

2.design

3.development

4.testing


Question:
Inside the states, the events are encountered to handle without leaving the state. This is known as________

1.state machine??

2.state transition??

3.internal transition??

4.external transition


Question:
Interaction diagrams are of ________ types. 

1.1

2.2

3.3

4.4


Question:
Name the data type which exists between the versions of the program

1.transient data

2.coupling data

3.persistent data

4.global data


Question:
Name the data type which is involved in procedure activation.

1.local data

2.transient data

3.persistent data

4.protected data


Question:
Objects placed in an Activity Diagram are connected to the activity or transition using  ________  relationship

1.association

2.generalization

3.dependency

4.realization


Question:
Patterns important due to…

1.They captured design accessible to novices and other experts

2.They capture expert design knowledge

3.None of these

4.All of these


Question:
Patterns is…

1. It solves a software design problem

2.It is a model proposed for imitation

3.All of these

4.None of these


Question:
Properly sequence the object oriented design process -

1.apply design axioms, design access layer, design view layer classes,iterate

2.design access layer , design view layer,apply design axioms, iterate

3.design view layer, iterate,design access layer, apply design axioms

4.design view layer, design access layer, iterate,apply design axioms


Question:
Select the diagram that is used to model the vocabulary of a system.

1.object diagram

2.activity diagramc

3.both a and b

4.class diagram


Question:
Select the view which is shown by object Object diagram.

1.logical

2.dynamic

3.static

4.process


Question:
Select where the class diagrams are not convenient

1.??simple interactions model

2.the vocabulary of a system model

3.simple collaborations model

4.??logical database schema model


Question:
Sequence of messages is emphasized by ________ diagram. 

1.state chart??

2.sequence

3.activity

4.collaboration


Question:
State chart Diagrams are needed ________

1.when a class has complex life cycle??

2.when the execution of scenario is to be traced??

3.to allocate classes and objects to modules??

4.to allocate processes to processors


Question:
The association stereotype «Extends» indicates ___

1.delegation of part of a task to another use case??

2.the target use case is a subprocess of the source use cases??

3.a specialized form of a use case??

4.a deviation from the uml standard??


Question:
The CRC modeling primarily requires

1.identifying classes and their responsibilities

2.)identifying collaborators of each class and their responsibilities

3.developing a collaboration graph

4.all of the mentioned


Question:
The next step is to evaluate the class diagram to check that all candidate classes are present and that the diagram reflects their descriptions, Designers apply which of the following heuristics to this activity?

1.check each class for important but overlooked attributes, operations, or associations

2.discard candidates that do something out of scope

3.apply design patterns were not appropriate

4.all of the mentioned


Question:
The OMT consists of three related but different viewpoints each capturing important aspects of the system

1.the static, dynamic, and functional behaviors of the system

2.analysis, design, coding

3.real-life environment, objects, and behavior of a system

4.none


Question:
The scenario of a use case is graphically represented using ________

1.deployment diagram??

2.sequence diagram??

3.use case diagram??

4.interaction diagram


Question:
The state diagram

1.depicts relationships between data objects

2.depicts functions that transform the data

3.indicates how data are transformed by the system

4.indicates system reactions to external events


Question:
The time oriented diagram include …

1.sequence

2.classes

3.activity

4.none of these


Question:
The vertical dimension of a sequence diagram shows

1.abstract

2.line

3.time

4.messages


Question:
To distunguish between active and non-active object which property is applied?

1.abstraction

2.polymophism

3.concurrency

4.aggregation


Question:
UML activity diagrams are useful in representing which analysis model elements?

1.behavioral elements

2.class-based elements

3.flow-based elements

4.scenario-based


Question:
Use case description contents include ______________

1.use case name and number

2.actors

3.stakeholder and needs

4.all of the mentioned


Question:
Use case descriptions consist of interaction among which of the following?

1.product

2.use case

3.actor

4.product & actor


Question:
What is multiplicity for an association?

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

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

3.all of the mentioned

4.none of the mentioned


Question:
What is the purpose of Destructor methods?

1.destructor methods creates instances of the class

2.destructor methods releases memory and resources allocated to objects when they were created

3.destructor methods converts type of objects.

4.destructor methods copies contents of one object to another.


Question:
What is the quality of design?

1.functionality

2.architecture

3.low coupling

4.high cohesion


Question:
What is used to express rules and semantics of UML?

1.rul

2.ocl

3.sql

4.ucl


Question:
Which descriptions are true for the use case description format?

1.underline text refers to another use case

2.extensions section uses complicated numbering scheme

3.indentation is used in order to make extensions easier to read

4.all of the mentioned


Question:
Which design pattern suggest multiple classes?

1.Chain of responsibility pattern

2.Bridge pattern

3.Singleton pattern

4.State pattern


Question:
Which diagram is a special form of Sequence diagram?

1.timing diagram

2.class diagram??

3.object diagram

4.use case diagram


Question:
Which diagram is used to explore the behaviors of objects throughout a given period of time

1.timing diagram

2.class diagram??

3.object diagram

4.object diagram


Question:
which diagram is used to show interactions between messages are classified as?

1.activity

2.state chart

3.collaboration

4.object lifeline


Question:
Which of the following are concerned with communication between objects?

1. J2EE Design Patterns

2.Behavioral Design Patterns

3.Creational Design Pattern

4.Structural Design Patterns


Question:
Which of the following benefits provide patterns?

1.Increasing Development Efficiency

2. Promoting Communication

3.Streamlining Documentation

4. All of these


Question:
Which of the following component is used to clarify which actor performs which activity in an activity diagram?

1.forks

2.joins

3.swimlanes

4.state


Question:
Which of the following diagrams is used to model business workflows? 

1.deployment diagram??

2.activity diagram??

3.use case diagram??

4.interaction diagram


Question:
Which of the following doesn't include in message types? 

1.call

2.return

3.send

4.delete


Question:
Which of the following is a pattern language?

1.resembles the structure of natural languages

2.encompasses a collection of patterns

3. is implemented using hypertext

4.All of the above


Question:
Which of the following is a weak relationship between two objects?

1.inheritance

2.composition

3.aggregation

4.none of these


Question:
Which of the following is followed for Evaluating and Selecting Candidate Classes?

1.discard classes with vague names or murky responsibilities

2.??discard classes will not do something out of scope

3.??look for actors

4.all of the mentioned


Question:
which of the following is NOT present in an Activity Diagram? 

1.action states??

2.objects

3.events

4.notes


Question:
Which of the following is present in a nested concurrent state machine? 

1.initial state??

2.final state??

3.history state??

4.concurrent sub state


Question:
Which of the following is type of UML diagram?

1.collaboration

2.context

3.user interface

4.er diagram


Question:
Which of the following is used to model the life time of an object?

1.use case??

2.class

3.state machine??

4.interface


Question:
Which of the following represents the structure and behavior of the pattern?

1.Consequences

2.Form

3.Aplication

4.Name


Question:
Which one pattern creating duplicate object?

1.Filter Pattern

2. Prototype Pattern

3.Bridge Pattern

4.Builder Pattern


Question:
which term are combined Interaction Diagram?

1.sequence diagram + collaboration diagram

2.activity diagram + state chart diagram

3.deployment diagram + collaboration diagram

4.activity diagram + deployment diagram


Question:
Which type of coupling involves direct reference to attributes or methods of another object?

1.common coupling

2.content coupling

3.control coupling

4.stamp coupling


Question:
Which type of coupling involves passing an aggregate data structure to another object which uses only a portion of that component?

1.common coupling

2.content coupling

3.control coupling

4.stamp coupling


Question:
Which type of the couling involves two objects accessing a global data space for both reading and writing?

1.common coupling

2.content coupling

3.control coupling

4.stamp coupling


Question:
Which UML diagram shows the objects participating in the interaction by their links to each other and the messages that they send to each other

1.class

2.objects

3.activity

4.collaboration


Question:
who consider diagrams as a type of Class diagram, component diagram, object diagram, and deployment diagram?

1.structural

2.behavioral

3.non-behavioral

4.non structural


Question:
______ shows a set of objects and their relationships. 

1.class diagram??

2.??object diagram??

3.use case diagram??

4.activity diagram??


Question:
_______  is a physical element that exists at runtime and represents a  computational resource. 

1.node

2.actor

3.name

4.object & class


Question:
________   are handled without causing a change in state. 

1.transitions

2.events

3.signals

4.state


Question:
________   are used to model the dynamic aspects of collaborations. 

1.sequence diagrams??

2.structural

3.interactions

4.messages


Question:
________  can model the behavior of an individual object.

1.class

2.use case??

3.state machine??

4.activity


Question:
________  diagram illustrates use case realizations.

1.sequence

2.class

3.use case

4.activity


Question:
________  is a path from one activity state to the next activity state. 

1.action state

2.activity state

3.transition

4.fork


Question:
________  is the state that is active after completion of the transition. 

1.composite state??

2.history state??

3.target state??

4.source state??


Question:
________  is the state that is active after completion of the transition. 

1.composite state??

2.history state??

3.target state??

4.source state??


Question:
________  is the state that is active after completion of the transition. 

1.composite state??

2.history state??

3.target state??

4.source state??


Question:
________  specifies a path to send and receive messages between two objects

1.link

2.sequencing

3.object

4.role


Question:
________  uses the services of the system under design to fulfill the goals. 

1.primary actor??

2.supporting actor??

3.offstage actor??

4.secondary actor


Question:
________ is used to represent concurrent flows in an Activity Diagram

1.slide bar

2.synchronization bar

3.swim lane

4.branch


Question:
___________diagram is time-oriented?

1.collaboration

2.sequence

3.activity

4.use case


Question:
—– design pattern defines one-to-many dependency between objects…

1.Observer pattern

2. Factory Pattern

3. Facade pattern

4.Singleton method pattern


Question:
——– is a design pattern?

1.Structural

2.Abstract Factory

3.Behavioral

4. All of these


More MCQS

  1. Design Pattern Mcq Set 1
  2. Design Patterns MCQ QUESTIONS AND ANSWER
  3. Software Design Modeling MCQ QUESTIONS AND ANSWER
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!