为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

南理工uml考试2008年4月30日B,南京理工大学泰州科技学院(南理工泰科院)UML试卷

2017-10-24 12页 doc 37KB 107阅读

用户头像

is_266065

暂无简介

举报
南理工uml考试2008年4月30日B,南京理工大学泰州科技学院(南理工泰科院)UML试卷南理工uml考试2008年4月30日B,南京理工大学泰州科技学院(南理工泰科院)UML试卷 南京理工大学课程考试试卷 (学生考试用) 课程名称: 面向对象建模技术 学分: 2 大纲编号 0626602 试卷编号: B 考试方式: 闭卷 满分分值: 80 考试时间: 120 分钟 组卷日期: 2008年4月30 日 组卷教师(签字): 审定人(签字): 学生班级: 学生学号: 学生姓名: 说明:1.所有试题做在答卷纸上 2.考试完毕后连考卷一起交 一、选择题(选择一个最合适的答案,每题2分,共40分) 1、面向对象设计的...
南理工uml考试2008年4月30日B,南京理工大学泰州科技学院(南理工泰科院)UML试卷
南理工uml考试2008年4月30日B,南京理工大学泰州科技学院(南理工泰科院)UML 南京理工大学课程考试试卷 (学生考试用) 课程名称: 面向对象建模技术 学分: 2 大纲编号 0626602 试卷编号: B 考试方式: 闭卷 满分分值: 80 考试时间: 120 分钟 组卷日期: 2008年4月30 日 组卷教师(签字): 审定人(签字): 学生班级: 学生学号: 学生姓名: 说明:1.所有试题做在答卷纸上 2.考试完毕后连考卷一起交 一、选择题(选择一个最合适的,每题2分,共40分) 1、面向对象设计的基本特性除了封装和多态之外,还包括 。 A 一致性 B 完整性 C继承性 D 可移植性 2、关于继承性,下列说法错误的是 。 A 父类的protected成员可被其子类访问。 B 子类的对象可代替其父类的对象。 C 子类的每个对象都是其父类的一个对象。 D 一个父类可以有多个子类,每个子类只能有一个父类。 3、关于UML的一般命名规则,名称首字母应该大写的元素是 。 A 类的属性 B类的操作 C 类的实例 D 类 4、UML中,用例图展示了外部Actor与系统所提供的用例之间的连接,UML中的外部Actor是指 。 A 人 B 硬件设备 C 人和硬件设备 D人、硬件设备或外部系统 5、UML中,对象行为是通过交互来实现的,是对象间为完成某一目的而进行的一系列消息交换。消息序列可用两种图来示,分别是 。 A 状态图和顺序图 B 活动图和通信图 C 状态图和活动图 D 顺序图和通信图 6、通常把一组具有相同数据结构和相同操作的对象的集合定义为_______。 A 类 B 属性 C 对象 D 消息 7、UML中关联的多重性是指 。 A 一个类由多少个方法被另一个类调用 B 一个类的实例能够与另一个类的多少个实例相关联 C 一个类的某个方法被另一个类调用的次数 D 两个类所具有的相同的方法和属性 8、下面 不是UML2.0的新图。 A 复合结构图 B 通信图 C 交互纵览图 D 计时图 9、关于约束,下列描述错误的是 。 A 约束是对特定模型元素附加的语义信息。 B 可以在注解中表示约束。 C 约束必须表示为规范的约束语言。 D 约束允许增加新的规则或者修改已有的规则。 production and non-production areas and non-production areas and water sources are on a chicken farm in the wind, net road and dirt road separating uncrossed, dung farm is located in the field is downwind, brood care and adult care homes apart, brood care in chicken farms of the upper hand to the 6. Understand the poultry epidemic situation on the ground, trying to avoid the endemic or outbreaks have occurred in area 7. Avoid contaminated areas of the city, take appropriate environmental measures to minimize pollution to the environment, building the second design 1. chicken coop construction General requirements (1) to meet the needs of the broiler (2) left room for technological transformation, ease of reproduction. Construction, and energy savings funds (3) meet GA requirements in chicken farm 2, chicken coop chicken coop building type of the construction of closed-end and open-end, closed henhouse four-week window, using artificial light, mechanical ventilation for energy Coop, microclimate environment is easy to control and easy to manage. Windows that open sheds sheds are used outside of natural resource and energy saving the hen house. General no power ventilation, sufficient artificial lighting is used. Disadvantages are subject to external influence. Design of building structure is built on chicken the best environment of rational index and building cost index based on both, mainly related to the hen house ventilation, warmth, cooling, water supply and drainage, lighting and other factors. 3, ventilation air is designed to exclude as much as possible residential air pollution: the introduction of fresh 10、用于对面向对象系统的物理方面建模进行描述图形是 。 A 部署图 B 对象图 C 包图 D 类图 11、下列关于用例图的描述,错误的是 。 A 用例图中的参与者和用例之间是关联关系。 B 包含是用例之间的一种依赖关系,指向被包含的用例。。 C 参与者和参与者之间、用例和用例之间都可能出现泛化关系。 D 扩展关系规范了扩展用例的行为如何及何时插入到被扩展用例的行为之中,由被扩展用例 指向扩展用例。 12、在UML提供的图中,用于描述系统与外部系统及用户之间的交互的图是 。 A 用例图 B 类图 C 对象图 D 部署图 13、顺序图是强调消息随时间顺序变化的交互图,描述顺序图的组成部分不包括 。 A角色 B 转换 C 生命线 D 消息 14、关于构件,下面说法错误的是 。 A 一个构件所实现的接口被称为它的供口(provided interface)。 B 一个构件所需要的接口被称为它的需口(required interface)。 C 如果构件的供口和需口数量较大,可把一组相关的供口和需口组织为一个端口(port)。。 D构件的替换只能发生在设计时刻,不可能发生在运行时刻。 15、A向B发送一个手机短信,这属于 消息。 A 同步调用 B 异步调用 C 异步信号 D 创建消息 16、下面 不是活动图中的基本元素。 A 状态、分支 B 转移、汇合 C 泳道、转移 D 用例、状态 17、关于构造型stereotype,下列说法不正确的是 。 A 一个构造型定义了一个已有元类如何被扩展的规范。 B 建立构造型的目的是适应特定平台或领域的建模需要。 C 可以为构造型定义图标,并把该图标放在名字的右边。 D UML未提供预定义的构造型,故此需要用户自行定义。 18、关于抽象类和具体类,下列说法不正确的是 。 A 如果一个类有父类,该类就是具体类。 B 如果一个类继承了父类的抽象操作/方法,而该类未提供实现,那么该类是抽象类。 C 抽象类没有任何直接的实例,而具体类则有直接实例。 D 在UML中,通过把一个类的名称写为斜体来指明该类是抽象类。 19、事件表示对一个在时间和空间上占据一定位置的有意义的事情的规格说明,事件的类型不包括 。 A 信号事件 B 调用事件 C 源事件 D 时间事件 20、关于制品和制品图,下列说法错误的是 。 A 制品是类、接口和协作之类的逻辑元素的物理实现。 B 制品可以分为部署制品、工作产品制品和执行制品三种类型。 C 制品和类一样,可以拥有属性和操作。 D 制品图可以用于对源代码、可执行程序的发布以及物理数据库建模。 production and non-production areas and non-production areas and water sources are on a chicken farm in the wind, net road and 第 2 页 共 5 页 dirt road separating uncrossed, dung farm is located in the field is downwind, brood care and adult care homes apart, brood care in chicken farms of the upper hand to the 6. Understand the poultry epidemic situation on the ground, trying to avoid the endemic or outbreaks have occurred in area 7. Avoid contaminated areas of the city, take appropriate environmental measures to minimize pollution to the environment, building the second design 1. chicken coop construction General requirements (1) to meet the needs of the broiler (2) left room for technological transformation, ease of reproduction. Construction, and energy savings funds (3) meet GA requirements in chicken farm 2, chicken coop chicken coop building type of the construction of closed-end and open-end, closed henhouse four-week window, using artificial light, mechanical ventilation for energy Coop, microclimate environment is easy to control and easy to manage. Windows that open sheds sheds are used outside of natural resource and energy saving the hen house. General no power ventilation, sufficient artificial lighting is used. Disadvantages are subject to external influence. Design of building structure is built on chicken the best environment of rational index and building cost index based on both, mainly related to the hen house ventilation, warmth, cooling, water supply and drainage, lighting and other factors. 3, ventilation air is designed to exclude as much as possible residential air pollution: the introduction of fresh 二、填空题(15分) 1、 下图是饮料销售系统的用例图。图中购买饮料和购买一瓶饮料的关系是 ,供货和根据销售情况供货的关系是 ,取钱和打开销售机的关系是 ,顾客和购买饮料的关系是 。(4分) 饮料销售系统 购买一罐饮料 购买饮料 购买一瓶饮料顾客 根据销售情况 供货 供货 供货人打开销售机 取钱 关闭销售机 收款人 2、 下图是关于一个学校的信息系统的类图。图中School和Department之间的关系是 ,School和Student之间的关系是 ,这两个关系的共同点是 ,而区别则是 。(4分) SchoolDepartmenthas 0..1assigned to 11..* 1..* 1..*1 members 0..1dean1..**1..* StudentCourseTeacherattendsteaches ***1..* production and non-production areas and non-production areas and water sources are on a chicken farm in the wind, net road and 第 3 页 共 5 页 dirt road separating uncrossed, dung farm is located in the field is downwind, brood care and adult care homes apart, brood care in chicken farms of the upper hand to the 6. Understand the poultry epidemic situation on the ground, trying to avoid the endemic or outbreaks have occurred in area 7. Avoid contaminated areas of the city, take appropriate environmental measures to minimize pollution to the environment, building the second design 1. chicken coop construction General requirements (1) to meet the needs of the broiler (2) left room for technological transformation, ease of reproduction. Construction, and energy savings funds (3) meet GA requirements in chicken farm 2, chicken coop chicken coop building type of the construction of closed-end and open-end, closed henhouse four-week window, using artificial light, mechanical ventilation for energy Coop, microclimate environment is easy to control and easy to manage. Windows that open sheds sheds are used outside of natural resource and energy saving the hen house. General no power ventilation, sufficient artificial lighting is used. Disadvantages are subject to external influence. Design of building structure is built on chicken the best environment of rational index and building cost index based on both, mainly related to the hen house ventilation, warmth, cooling, water supply and drainage, lighting and other factors. 3, ventilation air is designed to exclude as much as possible residential air pollution: the introduction of fresh 3、下图是一个活动图,图中按 组织以区分合作中的不同职责。图中的水平粗线表示 ,而方框和圆角矩形之间的虚线箭头表示 。(3分) SalesWarehouseCustomer H Request product Process order o:OrderPull materials[in process] Ship order o:OrderReceive orderBill customer[filled] b:Bill[unpaid] Pay bill HClose orderb:Bill [paid] 4、下图是一个状态图,CourseAttempt和Studying都是 状态,不同的是,Studying是一 个 ,它被分成三个区域。有人认为,当控制从CourseAttempt的初始状态传送到Studying 状态时,控制将被分岔为三个并发的流,对象同时处于三个区域的初始状态,你认为是否正确, 而当Studying状态的一个区域到达其终态时,对象就可以转移到Passed状态,你认为是否正确, (4分) CourseAttempt Studying lab,donelab,doneLab1Lab2 project,doneTerm,Project passFinal,Test failed FailedPassed production and non-production areas and non-production areas and water sources are on a chicken farm in the wind, net road and 第 4 页 共 5 页 dirt road separating uncrossed, dung farm is located in the field is downwind, brood care and adult care homes apart, brood care in chicken farms of the upper hand to the 6. Understand the poultry epidemic situation on the ground, trying to avoid the endemic or outbreaks have occurred in area 7. Avoid contaminated areas of the city, take appropriate environmental measures to minimize pollution to the environment, building the second design 1. chicken coop construction General requirements (1) to meet the needs of the broiler (2) left room for technological transformation, ease of reproduction. Construction, and energy savings funds (3) meet GA requirements in chicken farm 2, chicken coop chicken coop building type of the construction of closed-end and open-end, closed henhouse four-week window, using artificial light, mechanical ventilation for energy Coop, microclimate environment is easy to control and easy to manage. Windows that open sheds sheds are used outside of natural resource and energy saving the hen house. General no power ventilation, sufficient artificial lighting is used. Disadvantages are subject to external influence. Design of building structure is built on chicken the best environment of rational index and building cost index based on both, mainly related to the hen house ventilation, warmth, cooling, water supply and drainage, lighting and other factors. 3, ventilation air is designed to exclude as much as possible residential air pollution: the introduction of fresh 三、建模与应用(25分) 1、某大学教务部计划采用计算机管理学生选课的过程,以帮助管理人员更快、更好的做好选课管理工作。其功能如下: , 教务处课程管理人员显示本学期可以选择的课程; , 学生选课完毕后,学校的财务系统学生的缴费金额 , 在选定后的一段时间内,学生可以添加、删除选定的课程。 , 教师可以通过选课系统得到选修自己课程的学生名单。 , 学生和教师登录时需要验证。 在需求分析阶段,采用UML的用例图描述该系统的功能需求。(8分) 2、根据下面的通信图绘制语义等价的顺序图。(6分) 2:addStudent(s) r:RegisterAgent:School 1:create()3:register() 3.3:setRegistered(true) 3.1:courses:=getSchedule(){local} s:Student self 3.2:*[c,in,courses]:add(s) 3、银行帐户可以有打开、关闭或透支3种不同的状态,绘制银行帐户3种状态及激活相互转换 事件的状态图。(6分) :Course 4、建模一个网上扫描系统的部署图。(5分) 其详细的需求如下所示: , 扫描仪用来扫描产品信息。扫描仪通过内部的PCI总线连接到网卡。需要编写代码 (ScanEngine构件)来控制扫描仪,代码驻留在扫描仪内部。 , 扫描仪通过无线网卡与插入到Web服务器KONG的无线hub通信,服务器通过HTTP协 议向客户PC机提供Web页。 , Web服务器安装定制的Web服务器软件(WebSeverSoft构件),通过专用数据访问构 件(DataAccess)与产品数据库交互。 , 在客户的PC机上将提供专用的浏览器软件(Browser构件),它运行产品查询插件 (ProductLookupAddIn构件),只与定制的Web服务器通信。 production and non-production areas and non-production areas and water sources are on a chicken farm in the wind, net road and 第 5 页 共 5 页 dirt road separating uncrossed, dung farm is located in the field is downwind, brood care and adult care homes apart, brood care in chicken farms of the upper hand to the 6. Understand the poultry epidemic situation on the ground, trying to avoid the endemic or outbreaks have occurred in area 7. Avoid contaminated areas of the city, take appropriate environmental measures to minimize pollution to the environment, building the second design 1. chicken coop construction General requirements (1) to meet the needs of the broiler (2) left room for technological transformation, ease of reproduction. Construction, and energy savings funds (3) meet GA requirements in chicken farm 2, chicken coop chicken coop building type of the construction of closed-end and open-end, closed henhouse four-week window, using artificial light, mechanical ventilation for energy Coop, microclimate environment is easy to control and easy to manage. Windows that open sheds sheds are used outside of natural resource and energy saving the hen house. General no power ventilation, sufficient artificial lighting is used. Disadvantages are subject to external influence. Design of building structure is built on chicken the best environment of rational index and building cost index based on both, mainly related to the hen house ventilation, warmth, cooling, water supply and drainage, lighting and other factors. 3, ventilation air is designed to exclude as much as possible residential air pollution: the introduction of fresh
/
本文档为【南理工uml考试2008年4月30日B,南京理工大学泰州科技学院(南理工泰科院)UML试卷】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索