0% found this document useful (0 votes)
59 views46 pages

ONTAP

The document contains multiple choice questions about UML class diagrams and object-oriented design concepts. It tests knowledge of class diagram notation and how to interpret class diagrams including relationships like inheritance, composition, and interface implementation.

Uploaded by

Vinh Nguyễn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views46 pages

ONTAP

The document contains multiple choice questions about UML class diagrams and object-oriented design concepts. It tests knowledge of class diagram notation and how to interpret class diagrams including relationships like inheritance, composition, and interface implementation.

Uploaded by

Vinh Nguyễn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 46

1. What does this mean in a UML class diagram?

a. Composition
b. Inheritance
c. Interface Type implementation
d. Aggregation
2. Which statement is true about this UML class diagram?

a. SaleableItem interface is implemented by CashTill


b. SaleableItem interface is required by CashTill
c. SaleableItem interface is implemented by CashTill
d. SaleableItem interface is required by publication
3. Adding notes/comments to a UML class diagram are indicated with?
a. solid line
b. dotted line
c. sticky note
d. dashed line
4. A class…
a. obtains attributes from library routines.
b. Is an instance of an object
c. Acts as storage for objects with state and behavior.
d. Describes shared attributes and methods.
5. What does ‘…’ mean in a class diagram
a. This helps to show all the operations/attributes
b. This simplifies the diagram
c. I have no idea. Goddammit!
d. There are more operations/attributes available
6. The class diagram, component diagram, object diagram and development
diagram are considered as types of
a. behavioral diagrams
b. structural diagrams
c. non-behavioral diagrams
d. non structural diagrams
7. What does this diagram show?

OtherClass is composed of SomeClass


OtherClass implements SomeClass
SomeClass inherits from OtherClass
SomeClass is composed of OtherClass
8. What does this diagram show?

a.OtherClass inherits from Somelnterface


b.Somelnterface is composed of OtherClass
c.Somelnterface implements OtherClass
d.OtherClass implements Somelnterface
9. Which of the following statements about compositions(composite
aggregations) are FALSE?
a. when the composite element is deleted, the parts also die
b. The multiplicity of a composite aggregation may be >=1
c. The composite aggregation is a transitive relationship
d. In a composite, a part may belong to only one composite at a time
10.How do you model the following situation with a UML class diagram:
Players partictpate in multiple games. Each player scores in each game a
certain number of goals.

A.

B.
C.

D.
11.Inheritance relationships are represented in the UML notation by
A.Lines with solid diamond at one end
B.Lines with solid triangular arrow at both ends
C.Lines with hollow triangular arrow at one end
D.Lines with hollow diamond at one end
12.You are given the following state machine diagram. Are the following
statements true?
A.eject cigarettes is an activity.
B.insert ATM card is an event.
C.when(card invalid) is a guard condition.
D.insert ATM card is an activity.
13.You are given the state diagram. What is the value of x after the
occurrence of the event chain e2 e4 e4 el e4 e2 ?

13
14
6
12
14.You are given the state diagram. What is the value of x after the
occurrence of the event chain e1 e2 e4 e4 e6 e1 ?

8
6
4
9
15.What does the syntax for labeling a transition look like?
[guard]action/event
[action]event/guard
event[guard]/action
[action]guard/event
16.You are given the state machine diagram. What is the value of x after the
occurrence of the event chain el e2 e5?

12
26
13
6
17.How do you model the following situation with a UML class diagram:
has when treated which patent. The date and time of each treatment are
stored. It has to be possible that a doctor treats the same patient
multiple times.

A.

B.

C.

D.
18.Modeling class diagrarn: FurnitureFritz charges custorn-made furniture
which is assembled from prefabricated components.

A.

B.

C.

D.
19.A_is a relationship between two states indicating that an Object in the first
s will enter the second state.
A.generalization
B.association
C.state
D.transition
20.A state that has substates, that is nested states, is called_
A.source state
B.target state
C.history state
D.composite state

1. Which of these is the functionality of ‘Encapsulation’?


a) Binds together code and data
b) Using single interface for general class of actions.
c) Reduce Complexity
d) All of the mentioned
2. Which of the following is the functionality of ‘Data Abstraction’?
a) Reduce Complexity
b) Binds together code and data
c) Parallelism
d) None of the mentioned
3. How will a class protect the code inside it?
a) Using Access specifiers
b) Abstraction
c) Use of Inheritance
d) All of the mentioned
4. Which of the following concept is often expressed by the phrase, ‘One
interface, multiple methods’?
a) Abstraction
b) Polymorphism
c) Inheritance
d) Encapsulation
5. A class diagram describes
a) the static view of a system.
b) the interaction view of a system.
c) the practical view of a system.
d) the dynamic view of a system.
6. You are trying to add a class already written in another application to
serve clients, beside other classes, in your system. All other classes have
the same interface, the incoming class has a totally different interface than
the clients expect, but contains all required functionalities. What kind of
refactoring is needed to make this class fit in with minimum changes in
your system? Please choose only one answer:
a) apply the Proxy Pattern
b) apply the Adapter Pattern
c) create a new class which implements the expected interface and copy
and paste the code from the class in the other application to this new class
7. It is also known as Wrapper, it is used when subclassing is not possible
or practical to add functionality and it is used to add functionality at
runtime. This pattern is :
Please choose only one answer:
a) Composite
b) Adapter
c) Decorator
d) Proxy
8. What are the common implementation strategies of the GOF Adapter
pattern?
a) Factory Adapter
b) Object Adapter
c) Class Adapter
d) Interface Adapter
e) Both b and c
f) Both c and d
g) All of the above
9. Which pattern is most appropriate when a decision must be made at the
time a class is instantiated?
a) Bridge
b) Composite
c) Factory Method
d) Command
10. The testing technique that requires devising test cases to demonstrate
that each program function is operational is called:
a) Black-Box Testing
b) Glass-Box Testing
c) Grey-box Testing
d) White-box Testing
***
11. To test a function, the programmer has to write a ______ which calls
the function and passes it test data.
a) stub
b) driver
c) Proxy
d) None of the above
12. Data collected during testing should include:
a) Test Factors
b) Functions/Subroutines
c) all of the above
d) None of the above
13. Which of the following could be a reason for failure
1) testing fault, 2) software fault, 3) design fault, 4) environment fault, 5)
documentation fault
a) 2 is valid; 1,3,4,5 are not
b) 1,2,3,4 are valid reasons; 5 is not
c) 1,2,3 are valid reasons; 4 and 5 are not.
d) All of them are valid reasons for failure
Câu 14: The process starting with the terminal modules is called
a) Top-down integration
b) Bottom-up integration
c) None of the above
d) Module integration
Câu 15: Consider the following statements:
i. 100% statement coverage guarantees 100% branch coverage.
ii. 100% branch coverage guarantees 100% statement coverage.
iii. 100% branch coverage guarantees 100% decision coverage.
iv. 100% decision coverage guarantees 100% branch coverage.
v. 100% statement coverage guarantees 100% decision coverage.
Please select the correct answer from the following options:
a). ii is True; i, iii, iv & v are False
b) i & v are True; ii, iii & iv are False
c) ii & iii are True; i, iv & v are False
d) ii, iii & iv are True; i & v are False
Câu 16: Code Coverage is used as a measure of what?
a) Defects
b) Trends analysis
c) Test Effectiveness
d) Time Spent Testing
Câu 17: Which of the following is NOT a white box technique?
a) Statement testing
b) Path testing
c) Data flow testing
d) State transition testing
Câu 18: System Integration testing should be done after:
a) System testing
b) Component integration testing
c) Unit testing
b) Integration testing

Câu 1: What does this mean in a UML class diagram?

a. Inheritance
b. Aggregation
c. Interface Type Implementation
d. Composition

Câu 2: What does this mean in a UML class diagram?

a. Interface Type Implementation


b. Inheritance
c. Composition
d. Association

Câu 3: An operation in a class diagram can be described as?


a. None of them
b. Object behavior
c. Functions
d. Class behavior

Câu 4: The second compartment of a class diagram is for


a. class name
b. attribute / variables
c. methods

Câu 6: What does this diagram show?


a. OtherClass implements SomeClass
b. OtherClass inherits from SomeClass
c. OtherClass is composed of SomeClass
d. SomeClass inherits from OtherClass

Câu 7: What does this diagram show?

a. OtherClass inherits from SomeInterface


b. SomeInterface is composed of OtherClass
c. OtherClass implements SomeInterface
d. SomeInterface implements OtherClass

Câu 8: What are the three sections of a Class in a Class Diagram called in top to
bottom order?
a. Class Name, Attributes, Operations
b. Object Name, Attributes, Operations
c. Class Name, Operations, Attributes
d. Object Name, Attributes, Messages

Câu 9: The arrow in this diagram denotes

a. association
b. inheritance
c. polymorphism
d. abstraction

Câu 10: You are given the following clipping of a UML class diagram. Which
of the following statements are FALSE?
a. An instance of A can see y.
b. Objects of B and D can see g.
c. Objects of C and B can see f.
d. An object of A may or may not contain objects of C.
Câu 11: Does the Class "Tool" have the attribute "Price"?

a. Yes
b. No
Câu 12: Which of the following statements about compositions (composite
aggregations) are FALSE?
a. When the composite element is deleted, the parts also die.
b. In a composition, a part may belong to only one composite at a time.
c. The composite aggregation is a transitive relationship.
d. The multiplicity of a composite aggregation may be ≥1

Câu 13: Which is an example of a Structural diagram?


a. State
b. Activity
c. Use Cases
d. Class

Câu 14: Which diagram does this statement refer to?


a. class
b. sequence
c. activity
d. state

Câu 15: Which of these is a derived class of nurse?

a. Staff
b. SeniorNurse

Câu 17: In an inheritance relationship, this is the general class


a. subclass
b. superclass
c. child class
d. the big class

Câu 18: In an inheritance relationship, this is the specialized class


a. subclass
b. parent class
c. masterclass
d. superclass

Câu 19: Which of the below diagram is NOT a Unified Modeling Language
(UML) diagram?
a. Data flow diagram (DFD)
b. Class diagram
c. Object diagram
d. State diagram

Câu 20: What is the relationship between Order and SpecialOrder in the
diagram?

a. NormalOrder is the derived class of Order


b. SpecialOrder is the derived class of Order
c. Order is the superclass of SpecialOrder
d. SpecialOrder is the superclass of Order

Câu 21: Which of the following UML diagrams represent the structural View of
the software?
a. Both Class diagram and Object diagram
b. Object diagram
c. Class diagram
d. None of the above
Câu 22: You are given the state diagram. What is the value of x after the
occurrence of the event chain e2 e4 e4 e1 e4 e2 ?

a. 12
b. 13
c. 14
d. 6

Câu 23: You are given the state diagram. What is the value of x after the
occurrence of the event chain e1 e2 e4 e4 e6 e1 ?

a. 6
b. 4
c. 9
d. 8

Câu 24: You are given the state machine diagram. What is the value of x after
the occurrence of the event chain e1 e2 e5 ?
a. 13
b. 6
c. 12
d. 26

Câu 25: How do you model the following situation with a UML class diagram:
A vehicle comprises of multiple parts. Each part can be built in a maximum of
one super-part. One super-part comprises of multiple sub-parts.

a. A
b. B
c. C
d. D

Câu 26: What is a diagram that shows view of the structure of a modeled system
at a specific time?
a. Sequence diagram
b. Class diagram
c. Object diagram
d. State diagram
Câu 27: Which of the following diagram types below is NOT classified as
dynamic diagrams?
a. Activity diagram
b. Class diagram
c. State diagram
d. Sequence diagram

Câu 28: You are given the following clipping of a UML class diagram. Which
of the following statements are FALSE?

a. One object of B is associated with two other objects of B


b. One object of A may be associated with one object of B.
c. If instance of B is deleted, all contained instances of A are deleted as well
d. one object of B is contained in exactly one object of A

Câu 29: You are given the following clipping of a UML class diagram. Which of
the following statements are true?

a. An appointment can be made for multiple participants.


b. Several persons are in charge of one appointment.
c. Groups can only consist of persons, they cannot comprise of other groups
d. One group can consist of several persons.
Câu 30: You are given the following clipping of a UML class diagram. Which of
the following statements are true?

a. There are appointments that do not have any participants assigned ye


b. One person can be included in several groups.
c. There are groups that do not have any persons assigned.
d. If a group is deleted all persons that are in that group are deleted as well

Câu 31: Inside the states, the events are encountered to handle without leaving
the state. This is known as________
a. state transition
b. external transition
c. internal transition
d. state machine

Câu 1: 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

Câu 2: 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

Câu 3: 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

Câu 4: 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

Câu 7: A state that has substates, that is nested states, is called ________
a. source state
b. target state
c. history state
d. cornposite state
Câu 8: An activity diagram clearly shows __________

a. Alternative behaviors
b. All of the above
c. Parallel behaviors
d. Conditional logic

Câu 9: An activity diagram can be used for all of the following except
a. help in use case analysis
b. model work flow and business processes
c. to show the links between objects
d. to depict the flow of control from activity to activity
Câu 10: Activity diagram shows the ________ from activity to activity
within a system.
a. flow
b. sequence
c. nodes
d. link
Câu 11: How many condition symbols used in this Activity diagram?

a. 4
b. 3
c. 2
d. 7

Câu 12: Which symbol can initiate an activity?

a. b.d
b. a,c
c. a,b,c,d
d. b,c
Câu 13: With reference to the figure, which one represents a Fork Node?

a. C
b. D
c. A
d. B
Câu 14: What does an Activity diagram NOT do?

a. Graphical representation of a data flow


b. Describe the data model
c. Model system functions
d. Model business activity
Câu 15: Activity partition is represented using
a. Swimlane
b. Dotted Line
c. Plane Line
d. None of this
Câu 16: In an UML Activity diagram the alternate paths after a decision
are know as?

a. Leaves
b. Branches
c. Twigs
d. Roots
Câu 17: The state machine diagram may be classified under one of the
following headings?
a. Package Diagram
b. Behavioural Diagram
c. Object Diagram
d. Structure Diagram
Câu 18: Which one of the following statements is TRUE about Activity
Diagrams?
a. An Activity diagram is a dynamic diagram that shows the activity and
the event that causes the object to be in the particular state.
b. Activity diagrams represent database design of a system.

c. In an activity diagram, the parallel flow and the swim lane are the same.

d. Activity diagram is the same as a flow chart.

Câu 19: What is the purpose of swimlanes in an activity diagram?


a. to show what activities can be done in parallel
b. to indicate who performs the activity
c. to show alternatives
d. the help the swimmer stay on track
Câu 20: What is wrong with the following activity diagram?

a. arrows should be lines


b. arrows are facing the wrong way
c. the lines coming out of the decision should be labelled
d. the activity names are incorrect
Câu 21: In an activity diagram, what does this symbol represent?

a. start state
b. decision
c. fork
d. end or stop state

Câu 22: In an activity diagram, what does this symbol represent?


a. activity
b. start state
c. merge
d. fork

Câu 23: An Activity Diagram and a Flowchart are one in the same?
a. True
b. False
Câu 24: See Diagram:

a. A Cashier. Because it sounds more like an object

b. Manager. Because if there is only 1 why do you need a class


c. Item. Because there will be too many objects of this class
d. Price. As it does not have independent state and behaviour.
Câu 25: A fork in an activity diagram alows activities to go in series
a. True
b. False
Câu 26: Which feature of an activity diagram uncovers too much back and
forth among actors
a. Actions
b. Transition Arrows
c. Decisions
d. Swimlanes
Câu 27: What do activity diagram show

a. What activities can be done in parallel


b. They’re all correct
c. The flow of control from activity to activity in the system
d. Alternate paths through the flow

Câu 28: You are given following sequence diagram.Which traces are
possible?

a. a -> c -> b -> d


b. a -> b -> d -> c
c. b -> d -> a -> c
d. a -> b -> c -> d
Câu 29: You are given following sequence diagram.Which traces are
possible?

a. a -> b -> c -> d


b. d -> a -> b -> c
c. a -> d -> c -> b
d. d -> c -> b -> a
Câu 30: An activity diagram models...
a. ...the movement of objects through the system
b. ...object interactions and communication
c. ...processes, conditional logic, and concurrency
d. ...thes sequence of activities to implement the model
Câu 31: A sequence diagram models...
a. The relationships among objects
b. The sequence of activities to implement the model
c. The order in which the class diagram is constructed
d. The way that objects communicate
Câu 32: A lifeline in a sequence diagram is drawn using a dotted line
a. True
b. False
Câu 33: In a sequence diagram a horizontal represents what?
a. an event
b. a lifeline
c. a return message
d. an input message
Câu 34: In a sequence diagram the message-name is usually given in what
format?
a. action-object
b. adjective
c. verb-noun
d. participle
Câu 35: What are the three things available in a Use Case Diagram
a. Actor, Goals, Dependencies
b. Actors, Actions, Goals
c. Actors, Goals, Successes
d. Stickman, Arrows, Textboxes
Câu 36: in astate transition diagram, the circle to the left is the final state
a. false
b. true
Câu 37: This is a asynchronous message

a. True
b. False
Câu 38: What is an asynchronous message?
a. Rest of program continues independent of the message
b. Messages used in the clock class
c. Rest of program waits until message is processed
d. A message that is deemed to be on time
Câu 39: Which message type does NOT appear in the sequence diagram
below?

a. Synchronous
b. Asynchronous
c. Return
d. Reflexive
Câu 40: The vertical dimension in a sequence diagram shows
a. objects
b. space
c. classes
d. time
Câu 41: On sequence diagram, the destruction of an object is shown as a:
a. transverse tick mark
b. large X
c. wavy line
d. filled in circle
Câu 42: In a sequence diagram this represents what?

a. Activation Box
b. Object Symbol
c. Package Symbol
d. Lifeline Symbol
Câu 43: With reference to the following sequence diagram.Which
operations does class A have according to the diagram
a. y(int):void
b. x(void)
c. x():void
d. x(int):void
Câu 44 : With reference to the following sequence diagram.Which
operations does class C have according to the diagram

a. y(int):void
b. x(void)
c. z():void
d. x():void.
Câu 45: The type of the first message appearing in the below diagram

(finalAppl) is
a. Reflexsive
b. Asynchronous
c. Return
d. Destruction
Câu 46: What does a message mean?
a. Pass all communication from 1 object to another on msg arrow
b. All of the above mentioned
c. rectangle containing an identifier with a dashed line
d. Msg go from the sending object's lifeline to the receiving
Câu 47: Which diagram indicates object creation

a. b
b. c
c. d
d. a
Câu 48: 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

Câu 49: For the above diagram, which statement is true?

a. All the above


b. D and E will be executed conditionally
c. D and E will be executed sequentially
d. D and E will be executed concurrently
Câu 50: What is the State Diagram telling about the system?

a. I have no clue at all


b. It is a State Diagram for an independent learning system
c. It is a State Diagram that decides your University course
d. It is a State Diagram for a course system in University
Câu 51: On a sequence diagram, an asynchronous message is shown as
a(n):
a. hollow arrowhead.
b. full, solid arrowhead.
c. transverse tick mark.
d. half arrowhead.
Câu 52: In an activity diagram, __________ are the vertical lines with the
length of the diagram which allow activities to be assigned to objects.
a. Action
b. Initial Node
c. Swimlanes
d. Decision
Câu 53: In an activity diagram, is the solid circle inside the hollow circle
representing the end of the process.
a. Decision
b. Activity Final
c. Swimlane
d. Fork
Câu 54: In an activity diagram are the symbols (in square brackets called
Guard) which qualify the transitions.
a. Fork
b. Transitions
c. Merge
d. Conditions
Câu 55: In an activity diagram are the diamond shapes with multiple flows
coming in and one flow going out. This combines flows previously
a. Join node
b. Decision node
c. Merge node
d. Fork node
Câu 56: Action Flow represent:

a. the creation and modification of objects by activities

b. the non-interruptible action of objects


c. initial action state or the start point
d. illustrate the transitions from one action state to another
Câu 57: Merge is used to:

a. split a single incoming flow into multiple concurrent flows


b. group related activities into one column
c. brings together multiple flows that are not concurrent
d. interrupts the flow denoted with a lightning bolt
Câu 58: Which UML diagram is shown below?

a. Use Case
b. Activity
c. State Chart
d. Object Diagram
Câu 59: What does a message mean?
a. The message goes from the sending object's lifeline to the receiving object's
lifeline
b. It Passes all communications from one object to another and are
represented by message arrows in sequence diagrams
c. It is a rectangle containing an identifier with a dashed line extending below
the rectangle
d. All of the mentioned
Câu 60: 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. All of the mentioned
c. A diagram that shows the change of an individual's state over time
d. A diagram that shows messages superimposed on a diagram depicting
collaborating individuals and the links among them
Câu 61: Which of the following determines the state diagram?
a. In state diagram, states are represented by rounded rectangles
b. None of the mentioned
c. The UML notation for specifying finite automata is the state diagram
d. All of the mentioned
Câu 62: Which of the following statement is true?
a. An event is a noteworthy occurrence at a particular time; event have no
duration
b. All of the mentioned
c. Transitions may be spontaneous, but usually some event triggers them
d. A transition is a change from one state to another
Câu 63: Which of the following statements are TRUE?
a. If the user presses play, then pause, followed by flip and flip, then the motor is
running.
b. If no previous history is available, then the stopped state is entered.
c. Whenever the motor is running, the head is engaged.
d. Correctness of answer a) would be changed if H <- would have been replaced by
H.
Câu 64: Consider the following sequence diagram. Which of the following
statements are TRUE?

a. Message msg2 is sent after msgl has been received.


b. Message msg2 is received before msg3 has been sent.

c.

d.
Câu 65: Which of the following represents the State Diagram?
a. Transitions are represented by solid arrows labeled with one or more
transition strings that describe the circumstances under which the transition is
triggered and the actions that may ensue
b. All of the mentioned
c. A finite automaton may execute forever or it may halt in a final state
d. The finite automaton initial state is designated by a special initial pseudo-state
depicted as a large black dot at the tail of an arrow pointing at the initial state
Câu 66: What is purpose of a Use Case Diagram
a. Helps non-technical users understand what the system does
b. Identifies the systems' features and behaviours
c. None of the options
d. Make the system look more attractive

Câu 67: Where is the uml usecase diagram categorized on theUML


hierachy
a. Structure
b. Behaviour
Câu 68: A Usecase specification is NOT UML noatation

a. True
b. False
Câu 69: In UML the two types of diagram are?
a. Structural / Dynamic diagram and Behavioral / Static diagram
b. Structural / Non-Functional diagram and Behavioral / Functional diagram
c. Structural / Static diagram and Behavioral / Dynamic diagram
d. Structural / System diagram and Behavioral /Actor diagram
Câu 70: What type of relationship is used between Actor and Usecases?
a. Aggregation
b. Generalization
c. Dependency
d. Association
Câu 71: UML stands for?
a. Unique Modelling Language
b. Uniform Modelling Language
c. Unified Modelling Language
d. United Modelling Language
Câu 72: A UML model used to graphically show uses cases and their
relationships to …
a. RMO Tradeshow
b. System usecase
c. actor
d. SBRU service

Câu 73: Major contributors of UML are


a. Grady Booch
b. Ivar Jacobson
c. James Pumbaugh
d. All Bahrami
Câu 74: Which of the following is not a UML diagram?
a. Class diagram
b. Use case model
c. Object Diagram
d. Interface diagram
Câu 75: A model is a _________ of reality.
a. Simplification
b. Complication
c. Realization
d. Generalization
Câu 76: Which is not included in UML?
a. Programming Language
b. Views
c. Model Elements
d. Diagrams
Câu 77: Inheritance relationships are represented in the UML notation by
a. Lines with solid triangular arrow at both ends
b. Lines with solid diamond at one end
c. Lines with hollow diamond at one end
d. Lines with hollow triangular arrow at one end
Câu 78: Which is not a extensible Machanism in UML
a. Constraints
b. Stereotypes
c. Tagged Values
d. External Values
Câu 79: What object-oriented methods are combined in UML?
a. all of the above
b. OMT
c. OOD
d. OOSE
Câu 80: A Usecase is used to model the ______ offered by the system
a. Services
b. Roles
c. Output
d. Vertification
Câu 81: What statement is True about a Use case
a. They are oval in shape
b. They are outside the system
c. Must be written in verbs
Câu 82: What is the first thing to consider before the creation of a use case
diagram
a. System
b. Actors
c. Association
d. Use case
Câu 83: What stage in the software development life cycle is the Use case
Diagram
a. Analysis Stage
b. Design Stage
c. Maintenance Stage
d. Development Stage
Câu 20: A Use Case that always involes the steps of another can shown by

an?
a. Stick man
b. Ellipse
c. <<includes>>
d. <<extends>>
Câu 84: What are the three things available in a Use Case Diagram?
a. Stickman, Arrows, Textboxes
b. Actors, Actions, Goals
c. Actors, Goals, Successes
d. Actors, Goals, Dependencies
Câu 85: The three types of relationships use cases have in a use case
diagram include:
a. Inclusion, representation, realization
b. Extension, representation, elaboration
c. Elaboration, generalization, boundarization
d. Extension, inclusion, and generalization
Câu 86: In a Use Case the square box represents the?

a. Association

b. System Boundary
c. Functionality
d. Actor
Câu 87: A Use Case is always described from what point of view?
a. The User’s
b. The Actor’s
c. The System’s
d. The Function’s
Câu 88: The activity diagram, use case diagram, collaboration diagram and
sequence diagram are considered as types of
a. behaviour diagram
b. non structural diagram
c. non-behaviour diagram
d. structural diagram
Câu 89: Controller pattern decides what first object after UI layer should
receive the message from UI layer.
a. True
b. False
Câu 90: Which of the following is true?

a. B closely uses A
b. B records A
c. All of the mentioned
d. B know about A

Câu 91: Which of the following statements about GRASP is correct?


a.GRASP is a methodology for object-oriented design based on
responsibility-driven design
b. GRASP consists of a collection of design patterns that help us think in
terms of object-oriented design
c.GRASP is not well suited for visual modeling
d.GRASP is a visual modeling tool just like UML
Câu 92: Which GRASP pattern could we use when we areAW,. about
change in the system and its impact?
a. Low Coupling
b. High Cohesion
c. Creator
d. Information Expert
Câu 93: By not representing ? pure fabrication achieve low coupling, high
cohesion, and reuse potential
a. ... a concept in the problem domain ...
b. ... it's interface ...
c. ... the hood ...
d. ... a service ...
Câu 94: A class unrelated to the problem domain, made up to achieve low
coupling, high cohesion & reuse
a. Don't Talk To Strangers (Structural)
b. Pure Fabrication (Structural)
c. Pure Fabrication (Fundamental)
d. Don't Talk To Strangers (Fundamental)
Câu 95: GRASP is a common Architectural Pattern
a. True
b. False
Câu 96: In GRASP, who is an "expert"?
a. a method
b. a variable
c. a class object
d. someone who knows alot
Câu 97: Subsystem is typically a __________ in UML2.
a. interface
b. connection
c. component
d. package
Câu 98: Structural view uses _________ to capture the model view
controller pattern
a. links
b. interfaces
c. connection
d. packages
Câu 99: Which is NOT a grasp principle?
a. Pure Fabrication
b. Indirection
c. Type Progression
d. Protected Variation
Câu 100: Choose the component from the MVC pattern that is an example
of the "Indirection" principle

a. Model

b. Controller
c. View
Câu 101: High cohesion pattern used to
a. Decrease modularity
b. Decrease dependency
c. Increase dependency
d. Increase modularity
Câu 102: What is the typical relationship between coupling and cohesion?
a. There is no relationship between coupling and cohesion
b. As cohesion increases, coupling increases
c. As cohesion increas , coupling decreases
Câu 103: Expert pattern has...
a. Information necessary to fulfill a responsibility
b. Information necessary to create an object
c. Information necessary to fulfill an application
d. Information necessary to call a method
Câu 104: Patterns are used in GRASP...
a.To fulfill responsibilities
b.To create responsibilities
c.To assign responsibilities
Câu 105: Benefits of the information expert pattern are...
a. Both
b. Encapsulation
c. Distributed behavior
Câu 106: What is purpose of a Use Case Diagram
Helps non-technical users understand what the system does
Identifies the systems' features and behaviours
None of the options
Make the system look more attractive
Câu 107: Where is the uml usecase diagram categorized on the UML
hierachy
Behaviour
Structure
Câu 109: In UML the two types of diagram are?
Structural / Dynamic diagram and Behavioral / Static diagram
Structural / Nonfunctional diagram and Behavioral /Functional diagram
Structural / Static diagram and Behavioral / Dynamic diagram
Structural / System diagram and Behavioral / Actor diagram
Câu 110:A Usecase is used to model the__offered by the system.
Services
Output
Roles
Verification
Câu 111: A Use Case that always involves the steps of another can be shown by
an?
Stick man
<<includes>>
Ellipse
<<extends>>

You might also like