【软件工程习题答案】第七章 实现与集成

第七章 单元测试

1单选(5分)
The languages Fortran, Pascal, COBOL, and C++ are examples of which generation of programming languages?
语言Fortran,Pascal,COBOL和C ++是哪一代编程语言?D
A.fourth
B.second
C.first
D.third

2单选(5分)
Which of the following statements about good programming practice is wrong? ______
以下语句中哪个关于良好的编程实践的描述是错误的? D
A.Comments are helpful for code readers.
B.In a software program, variable names should be consistent.
C.In a software program, variable names should be meaningful.
D.If the programmers are careful and experienced enough, they can write self-documenting code.

3单选(5分)
Which of the following statements about good programming practice is correct? _______
以下语句中哪个关于良好的编程实践的描述是正确的? C
A.If there is already prologue comments, inline comments won’t be needed.
B.Nested “if” statements should be recommended.
C.Good variable names are good for both debugging and maintenance.
D.Nice code layout aims for nice interface.

4单选(5分)
The following graph shows the modules of a software system, and the line in the graph shows the invocation relation between the modules. If the system is implemented and integrated using the bottom-up type, module_________ is the driver of the module b.
下图显示了软件系统的模块,图中的线显示了模块之间的调用关系。 如果系统是使用自底向上类型实现和集成的,模块_________是模块b的驱动程序。D
【软件工程习题答案】第七章 实现与集成_第1张图片
A.b
B.c
C.d
D.a

5单选(5分)
Which of the following will be the last one to be considered when choosing a programming language?
在选择编程语言时,应该最后考虑以下哪项?B
A.cost
B.personal emotion
C.application domain
D.product efficiency

6单选(5分)
Which of the following are disadvantages of top-down integration and implementation?
下列哪些是自顶向下集成和实现的缺点?A
A.Operational modules may not be adequately tested.
B.Logical modules may not be adequately tested.
C.Major design faults show up late.
D.Fault isolation

7单选(5分)
The primary purpose of careful and nice code layout of a software system is to __________.
仔细和漂亮的软件系统代码布局的主要目的是 A
A.improve readability
B.conform to standards
C.please managers
D.help the SQA team

8单选(5分)
If a decision by a programmer results in a violation of coding standards, the programmer should ________. C
如果程序员的决定导致违反编码标准,程序员应该
A.rewrite the code to meet standards
B.keep the code in violation and hide the fact
C.check with the manager to determine whether the code can stand as it is
D.argue that the standards do not apply to every kind of code

9单选(5分)
Which of the following statements is correct?、
下列哪个语句是正确的?C
A.Stubs are needed for bottom-up implementation and integration.
B.Drivers are needed for top-down implementation and integration.
C.Drivers are needed for bottom-up implementation and integration.
D.Surely, integration should follow implementation.

你可能感兴趣的:(【软件工程习题答案】第七章 实现与集成)