KT_CuoiKy

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

1. What are the 3 main diagrams of models of Dynamic behavioral modeling?

a. Activity diagrams; State diagrams; Interaction diagrams.


b. Use case diagrams; Activity diagrams; State diagrams.
c. Interaction diagrams; Use case diagrams; Activity diagrams.
d. Interaction diagrams; Use case diagrams; State diagrams.

2. What are main types of responsibility of class/object?


a. Know and Do
b. Implementation and Know
c. Realization and Inheritance
d. Do and Implementation

3. Which of the following is a valid name of actor?


a. To enroll.
b. student().
c. To enroll student.
d. Student.

13. Choose the right statement about polymorphism?

a. A class can be inherited by different sub-classes.

b. Different methods have the same behavior.

c. Methods having the same name are defined differently.

d. A method has many names.

11. What are elements of a use case specification?

a. Use case name, actors, users, description, interactions, references, pre-conditions, post-conditions.

b. Use case id, actors, description, main interactions, references, pre-conditions, post-conditions.

c. Use case name, actors, description, references, pre-conditions, post-conditions, interactions.

d. Use case name, actors, objective, graphical user interface, interactions, references, pre-conditions, post-conditions.

12. What are the main software development activities?

a. Analysis, Design, Implementation, Testing, Demonstration.

b. Analysis, Design, Implementation, Testing, Maintenance.

c. Analysis, Design, Coding, Documenting.

d. Analysis, Design, Coding, Testing, Training, Maintenance.


4. The discovery of responsibilities of object is achieved when ____.
a. converting model to code
b. automatic code generation
c. building interaction diagrams
d. defining the purpose of the element

8. Software development process is ______

a. a sequence of development activities to build software.

b. a method to develop software.

c. a set of tools and methods to develop software.

d. a set of development activities to build software.

9. In object-oriented programming, the notion of encapsulation means ______

a. attributes and functions should be separated.

b. data are hidden.

c. package includes different classes.

d. data (attributes) and data processing (functions) are packaged into the same unit.

10. How to reduce the impact of factor-dependent change based on reliable factors?

a. Assign responsibility to the information expert – the class that has the information to fulfill the responsibility.

b. Assign responsibility for coupling remains low, minimizing dependencies thus making the system maintainable,
efficient, and code reusable.

c. Define the purpose of the element, bringing together the relevant responsibilities into one element.

d. Add more controllers.


5. Fill in the blank: _______ is a run-time physical object that represents a computational resource in deployment
diagram.
a. Node
b. Deployment
c. Object
d. Component

6. Fill in the blank: The essential elements of an interaction diagram: ____.


a. Actors; communication; messages.
b. Objects; actors; communication.
c. Objects; actors; messages.
d. Objects; communication; messages.

7. The question asks to fill in the blank: "Activity diagrams can be used to determine which ____ to add to class
diagrams."

a. Operations

b. Activities

c. Relationships

d. Attributes

7. Which statement about attributes is TRUE?


a. Their values can be changed from object to another of the same class.
b. They cannot change after the object is created.
c. They can perform some calculations.
d. They are always private.
8. Which of the following statements is FALSE?
a. All functions and attributes of a class can be public.
b. A class should have private functions and public attributes.
c. Class having all private attributes and all private functions is unuseful.
d. Generally, class has public functions and private attributes.

37. Which of the following statements is FALSE?

a. To draw a sequence diagrams, you must be a programmer.

b. Sequence diagrams are language-agnostic (can be implemented in many different languages).

c. Sequence diagrams can be somewhat close to the code level.

d. A good sequence diagram is still a bit above the level of the real code (not EVERY line of code
is drawn on the diagram).

24. Which of the following statements is FALSE?

a. A use case should describe the operations implemented in system classes.

b. Each use case has to correspond to a high level objective.

c. A use case should be independent from user interface.

d. A use case is an interaction or a sequence of interactions between system and its


environments.

9. In an activity diagram, which of the following statements is FALSE?


a. Operations/Functions are related to classes.
b. Activities are carried out by the system or the actors.
c. In general, activities do not correspond to operations.
d. An operation/function corresponds to a high-level task in the system.

33. What is NOT a problem of class with low cohesion?

a. Hard to reuse

b. Hard to maintain

c. Hardly affected by change.

d. Hard to understand
25. The question says "Journal has many articles. An article can refer to many other articles.
Choose the best class diagram modeling the statement above."

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

26. Which of the following diagrams is TRUE?


a. Figure 1

b. Figure 3

c. Figure 4

d. Figure 2

31. How do you model the following situation with a UML class diagram? An order is made by
exactly one waiter; one waiter handles multiple orders.

a. Diagram 2
b. Diagram 1
c. Diagram 3
d. Diagram 4

10. How do you model the following situation with a UML class diagram? One team may consist
of several other teams.
ảnh 2

11. How do you model the following situation with a use case diagram? "A man and a woman
go for a walk."

a. Figure 3 b. Figure 4 c. Figure 1 d. Figure 2

12. Users of a library system includes librarian and reader. Librarian can manage readers and
manage documents. Documents include books and journals. User needs to log into the
system before using any functions. Reader can search for documents, borrow and return
documents. Searching for journals is different from searching for books. Choose the
elements to fill the diagram modeling this requirement.

a. A is "Use function", B is "Search for books", C is "Search for journals", D is "Borrow and
return documents"
b. A is "Login", B is "Include books", C is "Include journals", D is "Borrow and return
documents"
c. A is "Login", B is "Search for books", C is "Search for journals", D is "Borrow and return
documents"
d. A is "Login", B is "Borrow documents", C is "Return documents", D is nothing

13. Choose the wrong statement about the diagram

a. Boss inherits from Employee.


b. Boss cannot search for jobs.
c. Boss can search for jobs.
d. Employee can search for jobs.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy