问题 单项选择题

测试用例是为了测试而设计的一组数据,在测试之前应精心选择。测试用例主要用来检验程序,因此测试用例应包括______。

A.测试输入数据和与之对应的输出结果

B.测试输入数据和软件产生的效果

C.软件的执行流程和执行结果

D.软件的执行结果和结果分析

答案

参考答案:A

解析: 测试用例主要用来检验程序,因此不仅要有测试的输入数据,而且要指明这些输入数据的预期结果。如果对测试输入数据没有给出预期的程序输出结果,那么就缺少了检验实测结果的基准,就有可能把一个似是而非的错误当成正确的结果。

完形填空
完形填空
     When I was in primary school, I got into a major argument with a boy in my class. I can't  1  what it
was about, but I have never forgotten the  2  I learned that day.
      I was  3  that I was right and he was wrong and he was sure that I was wrong and he was right. The   4  decided to teach us very important lessons. She  5  both of us up to the  6  of the class and  7  him
on one side of her desk and me on  8  . In the middle of her desk was a large, round object. I could  9  
see that it was black. She asked the boy what  10  the objects was. "White", he answered.
     I couldn't believe he said the object was white,  11  it was obviously black !Another  12  stared
between my classmates and me, this  13  abut the color of the object.
     The teacher told me to go to stand where the boy was standing and told him to come to stand where
I had been. We changed   14  , and now she asked me what the color of the object was. I  15  answer,
"White". It was an object with two  16  colored sides, and from his side it was white.  17  from my side
was the color black.
     My teacher taught me a very important lesson that day: You must   18  in the other person's shoes and
look at the  19  through their eyes in order to   20  understand their view.
( )1. A. think        
( )2. A. lesson        
( )3. A. told          
( )4. A. officer      
( )5. A. told          
( )6. A. back          
( )7. A. planted      
( )8. A. the other      
( )9. A. happily      
( )10. A. width        
( )11. A. when        
( )12. A. fight        
( )13. A. time        
( )14. A. places      
( )15. A. needed to    
( )16. A .similarly    
( )17. A. Still        
( )18. A. seat        
( )19. A. situation    
( )20. A. unexpectedly
B. suppose    
B. lecture    
B. wished      
B. teacher    
B. came        
B. front      
B. placed      
B. another    
B. fortunately  
B. shape      
B. unless      
B. argument    
B .year        
B. seats      
B. was able to
B. differently
B. Since      
B. stand      
B. movement    
B. suddenly    
C. remind      
C. class        
C. convinced    
C. doctor      
C. brought      
C. middle      
C. had          
C. other        
C. clearly      
C. color        
C. until        
C. conversation
C. month        
C. attitudes    
C. hoped to    
C. beautifully  
C Only          
C. lie          
C. condition    
C. quietly      
D. remember        
D. text            
D. allowed        
D. parent          
D. woke            
D. side            
D. fixed          
D. others          
D. nearly          
D. size            
D. if              
D. game            
D. day            
D. glasses        
D. had to          
D. surprisingly    
D. Also            
D. put            
D. behavior        
D. truly          
单项选择题