问题 单项选择题

在进行单元测试时,常用的方法是( )。

A.采用白盒测试,辅之以黑盒测试

B.采用黑盒测试,辅之以白盒测试

C.只使用自盒测试

D.只使用黑盒测试

答案

参考答案:A

解析: 本题考查软件测试方法的应用。白盒测试是测试程序内部的逻辑结构及有关信息,黑盒测试只依据程序的需求规格说明书,检查程序的功能是否符合它的功能说明。从程序内部的逻辑结构对系统进行测试才是测试的根本,即是比较深层次的测试,更容易发现和解决程序中的问题,因此单元测试时应该以白盒测试为主,而黑盒测试只能作辅助。

填空题
词语填空(共10小题,计10分)
用方框中所给单词的适当形式填空,使短文通顺、正确、连贯(每个单词限用一次).
many  usual   mile  reply  rich  come  use   live  they  chase
For 25 years Terry Cemm was a policeman, but for the last seventeen years he has been walking up and down five____小题1:____ of beach every day, looking for things that might be ___小题2:____to someone. Terry is a beachcomber.
Nearly everything in his cottage has ___小题3:___from the sea - chairs, tables, even tins of food. What's the most ___小题4:__thing he has ever found? “A barrel of beer just before Christmas. That was nice”, he remembers. He finds lots of bottles with messages in_小题5:__, mainly from children. They all get a reply if there's an address in the bottle. “Shoes? If you find one, you'll find the other the next week”, he says.
But does he really make a ___小题6:___? “Half a living,” he___小题7:___. “I barter (物物交换)with a lot of things I find, and I have my police pension(退休金). But I don't actually need money. My life is ___小题8:___ in variety. ”
Terry seems to be a very happy man. “You have to find a way to live a simple, honest life. People spend all their lives ___小题9:____ things they don't really need. There's so much waste.”
“Some people say I'm mad,” says Terry, “But there are a lot___小题10:____ who'd like to do what I do. Look at me. I've got everything that I could possibly want.”
选择题