题目详情

某模块实现两个功能:向某个数据结构区域写数据和从该区域读数据。该模块的内聚类型为( )内聚

  • A.过程
  • B.时间
  • C.逻辑
  • D.通信

正确答案及解析

正确答案
D
解析

题考查软件工程内聚度知识点。内聚是指一个模块内各个元素彼此结合的紧密程度,它是信息隐蔽和局部的概念的自然扩展。设计时应该力求高内聚,理想内聚的模块应当恰好做一件事情。

偶然内聚:一个模块的各成分之间毫无关系。比如:一组语句在程序的多处出现,为了节省内存空间,这些语句放在一个模块中,该模块的内聚是偶然内聚的。

逻辑内聚:把几种逻辑上相关的功能组放在同一模块中。

瞬时内聚(时间内聚):一个模块所包含的任务必须在同一时间间隔内执行,例如初始化模块。

过程内聚:一个模块的处理元素是相关的,而且必须按特定的次序执行。

通信内聚:一个模块的所有成分都结合在同一个数据结构上。

顺序内聚:模块的成分同一个功能密切相关,且输出,作为另外一个成分的输入。

功能内聚:模块内的所有成分属于一个整体,完成单一的功能。

在以上的内聚中,内聚度从低到高,偶然内聚度最低,功能内聚度最高。模块的高内聚、低耦合的原则称为模块独立原则,也称为模块设计的原则。本题选择D选项

包含此试题的试卷

你可能感兴趣的试题

单选题

Advancements in ( )have contributed to the growth of the automotive industry through the creation and evolution of self-driving vehicles.

  • A.Artificial Intelligence
  • B.Cloud Computing
  • C.Internet of Things
  • D.Big Data
查看答案
单选题

In project human resource management , ( )is not a source of power for the project manager.

  • A.referent power
  • B.expert power
  • C.reward power
  • D.audit power
查看答案
单选题

At the project establishment stage , the feasibility study mainly includes techinical feasibility analysis , ( ), operation environment feasibility analysis and other aspects of feasibility analysis.

  • A.detail feasibility analysis
  • B.opportunity analysis
  • C.economic feasibility analysis
  • D.risk analysis
查看答案
单选题

( )is a grid that shows the project resources assigned to each work package.

  • A.Stakeholder engagement assessment matrix
  • B.Requirements traceability matrix
  • C.Probability and impact matrix
  • D.Responsibility assignment matrix
查看答案
单选题

Xinhua News Agency reported in January 2022,Chian will further promote the developmet of a digital economy during the 14th Five-Year Plan eriod(2021-2025). The plan also emphasized industrial ( )transformation.

  • A.digital
  • B.networking
  • C.intelligentize
  • D.informatization
查看答案

相关题库更多 +