问题 单项选择题

下列关于栈的叙述中不正确的是( )。

A.在栈的两端都能插入或删除数据

B.在栈中只能从一端插入或删除数据

C.栈中的数据是先进后出

D.栈是一种特殊的线性表

答案

参考答案:A

解析: 栈的插入和删除运算都只在一端进行,即它的一端是封闭的,不允许进行插入与删除元素,一端是开口的,允许进行插入与删除元素,选项B是正确的。栈中的数据是先进后出的,选项C是正确的。栈是一种特殊的线性表,选项D是正确的。

完形填空
完形填空。
     It was Molly's job to hand her father his paper lunch bag each morning before he went to work. One
morning, besides his usual lunch bag, Molly  1  him a second paper bag. This one didn't look so good.
It was 2   and was held together with tape (胶带).
     Her father kissed Molly and started off to work with the  3   bags.
     On his lunch break, while he was eating, he looked  4  the second old bag:two small dolls, three
small stones and some coins. The busy father smiled, finished eating and  5   away the bags, dolls and
stones.
     That  6   when they were having supper, Molly asked, "Where's my bag, Daddy?"
     "What bag?"
     "The one I gave  7  this morning."
     "I left it at the office.   8  ?"
     "I forgot to put this note in it," she said."Those are the  9   I really love. I thought you might like to 
 10  with them. You didn't lose the bag, did you,Daddy?"
     "Oh, no, "he said, lying (说谎). "I  11   forgot to bring it home. I'll bring it tomorrow."
      When Molly put her arms around her father's neck,he opened the  12   that read: "I love you, Daddy."
      Molly had given him her treasures (财富),  13   he had thrown them into the trash can (垃圾箱). So
when he went back to the  14  , he went straight to the trash can and  15  all of Molly's things. He put
the treasures inside the bag and carried it home.
( )1. A. handed    
( )2. A. nice      
( )3. A. two       
( )4. A. for       
( )5. A. gave      
( )6. A. morning   
( )7. A. you       
( )8. A. Who       
( )9. A. foods     
( )10. A. study    
( )11. A. even     
( )12. A. card     
( )13. A. so       
( )14. A. shop     
( )15. A. turned up
B. asked  
B. old    
B. three  
B. after  
B. put    
B. noon   
B. him    
B. When   
B. places 
B. play   
B. just   
B. letter 
B. or     
B. office 
B. used up
C. helped 
C. empty  
C. four   
C. into   
C. ran    
C. evening
C. her    
C. Where  
C. people 
C. deal   
C. still  
C. note   
C. but    
C. bedroom
C. gave up
D. bought     
D. expensive  
D. five       
D. around     
D. threw      
D. midnight   
D. them       
D. Why        
D. collections
D. fight      
D. hardly     
D. book       
D. and                                                     
D. school     
D. picked up  
单项选择题