本答案对应课程为:点我自动跳转查看
本课程起止时间为:2020-03-15到2020-06-30
本篇答案更新状态:已完结

第四章 面向对象范型 第四章 单元测试

1、 问题:In good design, modules should have _.在良好的设计中,模块应该有_
选项:
A:high coupling and low cohesion
B:low coupling and low cohesion
C:high coupling and high cohesion
D:low coupling and high cohesion
答案: 【low coupling and high cohesion

2、 问题:A module is __cohesion if its actions should be performed in a same time period. 如果模块的动作应在相同的时间段内执行,则模块是__内聚。
选项:
A:temporal
B:procedural
C:communicational
D:logic
答案: 【temporal

3、 问题:A __ is a lexically contiguous sequence of program statements, bounded by boundary elements, with an aggregate identifier.__是由边界元素限定的具有聚合标识符的程序语句的词法连续序列
选项:
A:system
B:document
C:project
D:module
答案: 【module

4、 问题:Which of the following cannot be taken as a module? _以下哪项不能作为模块? _
选项:
A:collection
B:function
C:class
D:method
答案: 【collection

5、 问题:Which of the following statements about module is wrong? ___关于模块的以下语句中哪个是错误的? __
选项:
A:Good module design is important for the quality of the whole software system.
B:Module design is part of software system design.
C:Modules are parts of the whole software system.
D:An array in a program can be taken as a module.
答案: 【An array in a program can be taken as a module.

6、 问题:Two modules are __ coupled if one passes an element of control to the other. 如果一个控制元素传递给另一个,两个模块是__耦合。
选项:
A:control
B:stamp
C:data
D:logical
答案: 【control

7、 问题: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:control
B:stamp
C:data
D:logical
答案: 【stamp

8、 问题:Two modules are __ coupled if one directly references contents of the other.如果一个直接引用另一个的内容,两个模块____耦合。
选项:
A:content
B:stamp
C:data
D:common
答案: 【content

9、 问题:Two modules are __ coupled if they have write access to global data.如果两个模块对全局数据具有写访问权限,则是__耦合。
选项:
A:content
B:stamp
C:data
D:common
答案: 【common

10、 问题:Two modules are __ coupled if all parameters are homogeneous data items, simple parameters, or data structures all of whose elements are used by called module.如果所有参数都是同类数据项,简单参数或数据结构中所有的元素都由被调用的模块使用,则两个模块____耦合。
选项:
A:content
B:stamp
C:data
D:common
答案: 【data

11、 问题:_is to encapsulate the attributes and operations in an object, and hides the internal details of an object as possible. ___是为了在一个对象中封装属性和操作,并尽可能隐藏对象的内部细节。
选项:
A:Inheritance
B:Polymorphism
C:Data encapsulation
D:Message
答案: 【Data encapsulation

12、 问题:Which of the following statements is not correct?下列哪个语句是不正确的?
选项:
A:Information hiding can be used to obviate common coupling.
B:A class is an abstract data type.
C:An abstract data type is just a class.
D:Abstract data type supports data abstraction.
答案: 【An abstract data type is just a class.

13、 问题:Which of the following statements is not correct? __下列哪个语句是不正确的?
选项:
A:Class is a kind of abstract data type.
B:Data encapsulation is a feature of object-oriented paradigm.
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.
答案: 【Encapsulation and information hiding mean that all the components in an object will be totally invisible from outside.

14、 问题:The strategy of inheritance is to use inheritance wherever _.继承的策略是在_的情况下使用继承。
选项:
A:appropriate
B:possible
C:safe
D:nice
答案: 【appropriate

15、 问题:The relationship between super-class and subclasses is called __.超类和子类之间的关系称为____。
选项:
A:association
B:inheritance
C:composition
D:aggregation
答案: 【inheritance

16、 问题:The relationship between whole-class and part-classes is called __. 整体和部分类之间的关系被称为____。
选项:
A:aggregation
B:coupling
C:association
D:inheritance
答案: 【aggregation

17、 问题:Every class engaged in a relationship should have a multiplicity except _.除_关系外,每一个参与关系的类都有多重性。
选项:
A:aggregation
B:association
C:inheritance
D:none of the above
答案: 【inheritance

18、 问题:A verb or a verb phrase must be used to describe the relationship between two classes with _.描述两类之间的_关系时,必须使用一个动词或动词短语。
选项:
A:composition
B:inheritance
C:aggregation
D:association
答案: 【association

19、 问题:Which of the following statements is true? __下列哪个语句是正确的?____
选项:
A:Course “Software Engineering” is a subclass of class “Course”.
B:An arm is a part of a HumanBeing, so it is a subclass of class HumanBeing.
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.
答案: 【Inheritance brings us both advantages and troubles if it is not adopted properly.

20、 问题:Which of the following statements is not correct? _下列哪个语句是不正确的?___
选项:
A:Head is a part of eGame-HumanBeing, so the relationship between Head and eGame-HumanBeing is association.
B:Association should be described with a domain-related strong verb or verb phrase.
C:Association between two classes cannot be implemented with “extends” in Java.
D:In a library management system, the relationship between class Borrower and Book is “borrows/returns”.
答案: 【Head is a part of eGame-HumanBeing, so the relationship between Head and eGame-HumanBeing is association.

21、 问题:UML is an abbreviation of _.UML是_的缩写。
选项:
A:Unified Module Language
B:Unified Modeling Language
C:Universal Module Language
D:United Modeling Language
答案: 【Unified Modeling Language

22、 问题:Which of the following cannot be a way to implement polymorphism in Java? _下列哪项不是java实现多态的方式?_
选项:
A:Multithreading
B:Interface
C:Overloading
D:Overriding
答案: 【Multithreading

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

本门课程剩余章节答案为付费内容
本文章不含期末不含主观题!!
本文章不含期末不含主观题!!
支付后可长期查看
有疑问请添加客服QQ 2356025045反馈
如遇卡顿看不了请换个浏览器即可打开
请看清楚了再购买哦,电子资源购买后不支持退款哦

   

发表评论

电子邮件地址不会被公开。 必填项已用*标注