问题 单项选择题

在模块测试的过程中,采用自底向上的测试比自顶向下的测试______。

A.好

B.差

C.一样

D.不确定

答案

参考答案:A

解析: 自底向上测试和自顶向下测试都是增量式的测试方法,在自底向上测试中,首先测试最底层的模块,利用辅助的驱动模块调用,然后测试高层次的模块。而自顶向下测试则刚好相反,它是首先测试顶层模块,无须编写驱动模块,但要使用桩模块,然后测试下一层模块。二者各有优缺点,但权衡来看,自底向上测试的方法要优于自顶向下测试方法。

阅读理解

阅读下列短文,从每个小题所给的选项中选出最佳答案。

     One afternoon Mrs Green's husband wanted to catch the 3:30 flight to London to have an

important meeting. She was very surprised when he telephoned her at 5 0'clock and said that

he was still at the airport.

     "What happened to you?" asked Mrs Green.  

     "Well," said Mr Green, "everything was going fine.  I got my ticket, checked my luggage 

and waited in line at the gate.  I walked across the  runway to the airplane and I saw my friend 

Jack Scott, who was an airplane engineer.  I shouted to him and a policeman caught me. "      

     "Why did he catch you?"         

     "I don't know," said Mr Green.  "As soon as he heard my shout, he ran towards me and 

caught me. "      

     "What did you shout to your friend?"       

      "All I said was 'Hi, Jack'.  You know that's the usual way we say hello to our friends. "      

      "But you don't know the sentence 'Hi, Jack' also means to take control of a plane by force (武力). " 

1. How did Mr Green want to go to London?   [ ]

A. By train.

B. By bus.

C. By airplane.

2. Why was Mrs Green surprised?  [ ]

A. Because her husband didn't arrive at the airport in time.

B. Because her husband was still at the airport at 5 0'clock.

C. Because her husband didn't want to go to London

3. When did Mr Green get to the airport that afternoon? [ ]

A. Before 3:30.

B. After 3:30.

C. At about 5:00.

4. What was Jack Scott in the passage? [ ]

A. He was a pilot.

B. He was a policeman at the airport.

C. He was an engineer.

5. According to the passage we know _____.[ ]

A. Jack Scott asked Mr Green not to fly to London

B. Mr Green would take control of a plane by force

C. the policemen mistook what Mr Green said

单项选择题