问题 填空题

软件测试分为白箱(盒)测试和黑箱(盒)测试。等价类划分法属于 【2】 测试。

答案

参考答案:黑箱或黑盒或黑箱(盒)

解析: 本题考查软件工程的测试。对于软件测试而言,黑箱(盒)测试是把程序看成一个黑盒子,完全不考虑程序的内部结构和处理过程,它只检查程序功能是否能按照规格说明书的规定正常使用,程序是否能适当的接收输入数据产生正确的输出信息。与黑箱(盒)测试相反,白箱(盒)测试的前提是可以把程序看成装在一个透明的白盒子里,也就是完全了解程序的结构和处理过程。它按照程序内部的逻辑测试程序,检验程序中的每条通路是否都能按照预定要求正确处理,等价类划分是把所有可能的输入数据(有效的和无效的)划分成若干个等价类,则可以合理的做出下述假定:每类中的一个典型值在测试中的作用与这一类中所有其他值的作用相同。显然,等价类划分完全不考虑程序的内部结构和处理过程,因此它属于黑箱(盒)测试。

阅读理解

阅读理解:

      Skin-diving is a new sport today.

      This sport takes you into a wonderful new world. It is like a visit to the moon! When you are under water,

it is easy for you to climb big rocks, because you are no longer heavy. 

      Here, under water, everything is blue and green. During the day, there is enough light. When fish swim near

by(附近), you can catch them with your hands. When you have tanks (罐子) of air on your back, you can stay

in deep water for a long time. But you must be careful. 

      To catch the fish is one of the most interesting parts of this sport. On the other hand, you can clean the

ships without taking them out of the water. You can get many things from the deep sea. 

      Now you can see that skin-diving is both useful and interesting.

1. Skin-diving can take you to _______. [ ]

A. the moon

B. mountains

C. the sun

D. the deep sea

2. You can climb big rocks under water because _______. [ ]

A. you are stronger

B. the fish can help you

C. you are not as heavy as on the land

D. there is a lot of light

3. A skin-diver _______ under water in the day. [ ]

A. can see everything clearly

B. can't see anything clearly

C. can see nothing

D. can see only fishes

4. With a tank of air on your back, you can _______. [ ]

A. catch fish very easily

B. stay under water for a long time

C. be in safe place

D. have more fun

5. Which of these sentences is NOT TRUE? [ ]

A. Skin-diving is a new sport.

B. Skin-diving is like visiting the moon.

C. The only use of skin-diving is to have more fun.

D. Skin-diving is both interesting and useful.

选择题