勃狗腔抬扰抬题达妮容俗频快
对应课程:点击查看
起止时间:2020-04-20到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.
如需购买完整答案,请点击下方红字:
获取更多中国大学慕课答案,请点击这里,进入mooc.mengmianren.com
拎牧惮丘乓葛究窖秃焊申哦刊