问题 问答题


利用广义表的head和tail操作,可从广义表
L=((a,b),(c,d))
中分解得到原子c,其操作表达式为
head(head(tail(L)));
分别写出从下列广义表中分解得到b的操作表达式。
(1)L1=(a,b,c,d);
(2)L2=(((a),(b),(c),(d)))。

答案

参考答案:

解析:head(head(tail(head(L2))))

完形填空
完形填空
       One day, Tom was on his way home. When he passed a corner, he heard a weak(微弱lyj)
cry. Tom stopped  1   and looked around. At last he found a little  2  . It was thin and dirty. Its
cry sounded    3  .Tom went to it,“Come on! I'll take you  4 
       Tom's mother didn't like animals. She said to Tom, "You know, your father  5  dogs. We
can't keep the dog with us. What about giving it to a person who likes dogs? Then it will  6   a
home." Tom said, "OK! But can we keep it for some time  7   giving it to others?" His mother 
 said, "Of course, but you must look after it yourself. "
       So every day after Tom got home from school, he gave the  dog some  8   and then cleaned
it. One month later,they were all surprised to  9   the dog was so white with long hair and it looked
   10  ! Tom and his parents liked it very much,and they didn't want to give it to others.
      Now Tom's family lived a happy life with the dog.
( )1. A. writing          
( )2. A. dog              
( )3. A. happy            
( )4. A. school          
( )5. A. doesn't mind    
( )6. A. lose            
( )7. A. after            
( )8. A. clothes              
( )9. A. see              
( )10.A.lazy              
B. eating    
B. cat        
B. sad        
B. hospital  
B. loves      
B. buy        
B. if                               
B. food      
B. watch      
B. shy      
C. walking      
C. bird          
C. interesting  
C. restaurant    
C. can't stand  
C. have          
C. when                        
C. rules        
C. look          
C. dirty         
D. working          
D. baby            
D. exciting        
D. home            
D. welcomes        
D. live                
D. before          
D. toys            
D. read            
D. beautiful            
单项选择题