第四章 单元测试

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. Swift中使用构建配置来支持条件编译-b
  2. python环境变量配置_21 python环境的配置
  3. 【数据结构与算法】之深入解析“按要求补齐数组”的求解思路与算法示例
  4. 【多媒体开源技术栈】
  5. apex 查询_加速器关联好司机下载器下载的apex
  6. Vue3传值(一) props: 父组件向子组件传值
  7. nagios无法安装check_mysql插件的问题
  8. java安卓开发改变图片大小_Android代码中动态设置图片的大小(自动缩放),位置...
  9. 分享美容护肤门店预约下单小程序开发制作功能介绍
  10. 「微服务系列」统一网关Gateway
  11. C语言中EOF的应用
  12. 起底被阿里相中的汇通达:另类农村电商独角兽如何炼成
  13. 前端入门篇(八)表单
  14. 开源电商系统源码|前后端分离|uni-app开发
  15. 3DMax下载与安装(注册机为网上收集,仅供学习与研究,支持正版)
  16. 小学三年级计算机上册课后反思,三年级上册数学教学反思
  17. 抖音【实战】内容优化,选题脚本创作
  18. Vegas Pro 16安装教程
  19. 简单的banner代码,用css实现滚动banner焦点图, 不用jq也能滚动banner
  20. 【产品设计】Android 和 IOS 的交互设计对垒

热门文章

  1. 柚子的营养价值,吃柚子有什么好处?
  2. 搜集到30道有意思的数学题目
  3. 解决:Caused by: java.sql.SQLException: Access denied for user ‘root‘@‘hadoop102‘ (using password: YES)
  4. dcdc开关电源硬件总结(一)
  5. 先说好,千万别用这个 App 做坏事
  6. 营销大数据如何帮助企业深入了解客户—镭速
  7. List 接口相关知识 - ArrayList数据结构 - Java - 细节狂魔(估摸着有几万字)
  8. excel、wps中用VLOOKUP函数查找相同产品对应的价格
  9. Git和Idea中Git的使用
  10. 正弦余弦怎么用计算机计算公式,Excel 的正弦、余弦怎么编制计算公式?