Unified Modeling Language (UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop (问题1) , in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the (问题2) 。 An object also has (问题3) ,which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n) (问题4) is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n) (问题5) , which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.
本题考察的是UML面向对象分析与设计的核心概念,包括对象、类、属性、方法、状态等。
问题1
A选项 database models:用于表示数据结构和关系,属于数据库设计范畴,不是UML描述对象的主要模型,错误。
B选项 object models:UML可以用来开发对象模型,其中对象代表对信息系统重要的事物,这是正确答案。
C选项 event models:关注事件触发与响应,不符合题意,错误。
D选项 static system models:描述静态结构的模型,范围更广,不特指UML对象模型,错误。
所以选择 B。
问题2
A选项 systems maintenance process:是系统运行后的维护阶段,不涉及对象属性定义,错误。
B选项 systems implementation process:是将设计转化为实际系统的阶段,非属性定义阶段,错误。
C选项 systems design process:对象属性在系统设计阶段由分析人员定义,正确。
D选项 systems testing process:测试阶段是验证系统,不涉及定义属性,错误。
所以选择 C。
问题3
A选项 methods:对象的方法是其能执行的操作或功能,符合题意,正确。
B选项 interactions:表示对象之间的交互,不是对象自身功能的定义,错误。
C选项 interfaces:定义类对外暴露的方法集合,但不是直接描述对象功能的术语,错误。
D选项 behaviors:行为可以描述对象表现,但在UML术语中,对象的具体可执行操作叫方法,错误。
所以选择 A。
问题4
A选项 actor:用例图中代表与系统交互的外部实体,不是相似对象的集合,错误。
B选项 instance:是类的具体实现个体,不是类的概念,错误。
C选项 component:代表系统中的可替换部分,不是对象集合,错误。
D选项 class:类是相似对象的集合,具有相同的属性和方法,正确。
所以选择 D。
问题5
A选项 state:状态是描述对象当前情况的属性,正确。
B选项 constant:常量是不可变的数据,不是描述对象状态的术语,错误。
C选项 instance:对象的具体化,不是属性,错误。
D选项 member:成员是类中的变量或方法,范围不同于状态,错误。
所以选择 A。
