第四章 单元测试

1单选(5分)
In good design, modules should have ________.
在良好的设计中,模块应该有 B
A.low coupling and low cohesion
B.low coupling and high cohesion
C.high coupling and low cohesion
D.high coupling and high cohesion

2单选(5分)
Which of the following cannot be taken as a module? ________
以下哪项不能作为模块?D
A.class
B.function
C.method
D.collection

3单选(5分)
Which of the following statements about module is wrong? _________
关于模块的以下语句中哪个是错误的?C
A.Good module design is important for the quality of the whole software system.
B.Modules are parts of the whole software system.
C.An array in a program can be taken as a module.
D.Module design is part of software system design.

4单选(5分)
_____is to encapsulate the attributes and operations in an object, and hides the internal details of an object as possible. _
____是为了在一个对象中封装属性和操作,并尽可能隐藏对象的内部细节。C
A.Message
B.Polymorphism
C.Data encapsulation
D.Inheritance

5单选(5分)
Which of the following statements is not correct? ________
下列哪个语句是不正确的?D
A.Data encapsulation is a feature of object-oriented paradigm.
B.Class is a kind of abstract data type.
C.Information hiding is a feature of object-oriented paradigm.
D.Encapsulation and information hiding mean that all the components in an object will be totally invisible from outside.

6单选(5分)
Every class engaged in a relationship should have a multiplicity except _______.
除_______关系外,每一个参与关系的类都有多重性。B
A.none of the above
B.inheritance
C.association
D.aggregation

7单选(5分)
A verb or a verb phrase must be used to describe the relationship between two classes with _______.
描述两类之间的_______关系时,必须使用一个动词或动词短语。D
A.inheritance
B.aggregation
C.composition
D.association

8单选(5分)
Which of the following statements is true? ______
下列哪个语句是正确的?D
A.An arm is a part of a HumanBeing, so it is a subclass of class HumanBeing.
B.Course “Software Engineering” is a subclass of class “Course”.
C.If we code properly, we can get inheritance with structural programming languages.
D.Inheritance brings us both advantages and troubles if it is not adopted properly.

9单选(5分)
UML is an abbreviation of __________.
UML是__________的缩写。A
A.Unified Modeling Language
B.Universal Module Language
C.Unified Module Language
D.United Modeling Language

10单选(5分)
Which of the following statements is wrong? ________
下列哪个语句是不正确的?C
A.The classical/procedural paradigm is inferior to the object-oriented paradigm.
B.An object is an instance of abstract data type.
C.Operation-oriented technique primarily considers both the operations and the data of the product.
D.In all object-oriented technique, data and operations are considered of the same importance; neither takes precedence over the other.

11单选(5分)
Invoking the correct method to be done at run time (dynamically) and not at compile time (statically), the act of connecting an object to the appropriate method is termed _________.
调用正确的方法是在运行时完成(动态)而不是在编译时(静态),将对象连接到适当方法的这种行为称为 A
A.dynamic binding
B.inheritance
C.data coupling
D.polymorphism

12单选(5分)
Which of the following is not a UML diagram? __________
下列哪一个不是UML图?B
A.User case diagram.
B.ER diagram.
C.Sequence diagram.
D.Class diagram

13单选(5分)
A ________ is a lexically contiguous sequence of program statements, bounded by boundary elements, with an aggregate identifier.
________是由边界元素限定的具有聚合标识符的程序语句的词法连续序列 B
A.document
B.module
C.project
D.system

14单选(5分)
Two modules are ________ coupled if one passes an element of control to the other.
如果一个控制元素传递给另一个,两个模块是________耦合。B
A.data
B.control
C.logical
D.stamp

15单选(5分)
Two modules are ______ coupled if a data structure is passed as a parameter, but the called module operates on some but not all of the individual components of the data structure.
如果将数据结构作为参数传递,但被调用模块对数据结构的一些但不是所有组件进行操作,则两个模块______耦合。A
A.stamp
B.logical
C.data
D.control

16单选(5分)
Two modules are ______ coupled if one directly references contents of the other.
如果一个直接引用另一个的内容,两个模块______耦合。D
A.common
B.data
C.stamp
D.content

17单选(5分)
Which of the following statements is not correct?
下列哪个语句是不正确的?B
A.A class is an abstract data type.
B.An abstract data type is just a class.
C.Information hiding can be used to obviate common coupling.
D.Abstract data type supports data abstraction.

18单选(5分)
The relationship between whole-class and part-classes is called ______.
整体和部分类之间的关系被称为 D
A.inheritance
B.coupling
C.association
D.aggregation

19单选(5分)
Which of the following statements is not correct? __________
下列哪个语句是不正确的?C
A.Association between two classes cannot be implemented with “extends” in Java.
B.In a library management system, the relationship between class Borrower and Book is “borrows/returns”.
C.Head is a part of eGame-HumanBeing, so the relationship between Head and eGame-HumanBeing is association.
D.Association should be described with a domain-related strong verb or verb phrase.

【软件工程习题答案】第四章 面向对象范型相关推荐

  1. 计算机原理第四章答案,计算机组成原理习题答案第四章

    <计算机组成原理习题答案第四章>由会员分享,可在线阅读,更多相关<计算机组成原理习题答案第四章(6页珍藏版)>请在人人文库网上搜索. 1.计算机组成原理习题答案第四章1.指令长 ...

  2. 《设计模式解析》第1章 面向对象范型

    第1章 面向对象范型 概述 本章通过和另外一种你熟悉的范型--标准结构化编程相对比,来向你介绍面向对象范型. 面向对象范型的产生是因为使用标准化结构编程,过去的实践面临着挑战.通过清楚地了解这些挑战, ...

  3. 《C语言的科学与艺术》课后习题答案第四章(部分)

    自看着本书以来,一直没有在网上找到这本书的课后习题答案,所以把自己写的贴出来方便与大家交流,有不准确的地方,望大家批评指正... 4.3://读取输入的N值,计算前N项奇数的和,如N=4,则输出16( ...

  4. 面向对象程序设计c++版董正言张聪课本课后习题答案第四章

    4.1找出一维数组中的最大值 #include <iostream> using namespace std; int main() {int a[10] = { 1,2,3,4,6,7, ...

  5. 计算机网络谢希仁第七版课后习题答案(第四章)

    4-1 网络层向上提供的服务有哪两种?是比较其优缺点. 网络层向运输层提供 "面向连接"虚电路(Virtual Circuit)服务或"无连接"数据报服务前者预 ...

  6. 「武汉理工大学 软件工程复习」第四章 | 面向对象 UML建模

    目录 [对象.属性.方法] [面向对象分析与设计] 专有名字的缩写 面向对象的分析 OOA 面向对象的设计 OOD UML介绍 [面向对象设计原则] SOLID原则 OO设计时需要注意的一些问题 CR ...

  7. 【考研复习】《操作系统原理》孟庆昌等编著课后习题+答案——第七章

    CSDN话题挑战赛第2期 参赛话题:学习笔记 前言 此书在最后的附录 B 中,有给出部分重难点部分的参考答案.如果想要此书习题答案,可点以下链接:为一个压缩包,以图片形式,习题图片按章节排序,答案图片 ...

  8. 【考研复习】《操作系统原理》孟庆昌等编著课后习题+答案——第三章

    前言 此书在最后的附录B中,有给出部分重难点部分的参考答案.会在最后放上图片.如果想要此书习题答案,可点以下链接:为一个压缩包,以图片形式,习题图片按章节排序,答案图片按书页排序. <操作系统原 ...

  9. html第四章课后作业,物理化学答案——第四章化学平衡习题解答.doc

    物理化学答案--第四章化学平衡习题解答.doc 第四章 化学平衡一.基本公式和内容提要1. 化学反应的方向和限度(1)反应系统的吉布斯自由能和反应进度反应进行过程中,A和B均各以纯态存在而没有相互混合 ...

最新文章

  1. SQL Server数据库中使用sql脚本删除指定表的列
  2. MIT正式发布编程语言Julia 1.0:Python、R、C++三合一
  3. WebLogic启动失败:java.lang.AssertionError: Could not obtain the localhost address.
  4. 顺丰控股:1月速运物流业务营收172.8亿元 同比增长14.23%
  5. 对接海外faceid
  6. NIPS论文遭受全面质疑:论证过程普遍不完整,又何谈对错?
  7. 什么是pisa测试_什么是好作业?十年前,上海开启一项作业改革探索,专家发现了这些问题……...
  8. html 富文本编辑器相关--向编辑器内部插入文字图片等各种dom元素 通用方法
  9. 设计模式(二)Adapter模式
  10. 利用HISTFILESIZE和HISTSIZE在ubunutu中调整命令行History的Size
  11. [nlp] LLS减少学习捷径:分析和缓解伪特征标签相关性
  12. 5款热门的远程控制软件,让你事半功倍
  13. 我们都在过着「抽奖」的人生
  14. 华为OD机试Golang解题 - 最快到达医院方式
  15. php excel 设置下拉菜单,phpexcel setFormula下拉选择列表 序列
  16. python的几个有趣小程序
  17. 前辈们的面试经验总结——对于BAT等企业如何面试之面试流程及问题解析、以及面试时的基本礼仪及着装
  18. Qt音视频开发12-mpv解码播放
  19. Wordpress用文件记录访客 IP和访问量
  20. js对call 和apply的理解

热门文章

  1. 光纤收发器指示灯图解
  2. 【Delphi】实现登陆教务系统并获取课表的艰苦历程
  3. php 判断联通移动电信,Android 判断SIM卡是中国移动\中国联通\中国电信(移动运营商)...
  4. 频谱分析仪TFN TA9180(9KHZ-18GHZ)台式频谱分析仪 高端版 高性能无线综合测试仪
  5. 男士健康不可缺的11种食物
  6. html表格中加入内容吗,制作html帖第二课:在表格中添加文字和图片
  7. . mysql host.frm_Mysql Can't find file: './mysql/host.frm' (errno: 13) 的解决方法
  8. 【电脑运用及修理】Opera 浏览器
  9. android预警信息:是在AndroidStudio的控制台里的信息Invalid ID 0x00000001.解决参考
  10. 什么是USB Server?工作原理是什么?