问题 单项选择题

有关SCAN循环结构,叙述正确的是______。

A.SCAN循环结构中的LOOP语句,可将程序流程直接指向循环开始语句SCAN,首先判断EOF()函数的真假

B.在使用SCAN循环结构时,必须打开某一个数据库

C.SCAN循环结构的循环体中必须写有SKIP语句

D.SCAN循环结构,如果省略了<scope>子句1FOR<expll>和WHILE<EXPL2>条件子句,则直接退出循环

答案

参考答案:B

解析:[知识点] 循环结构程序设计
[评析] SCAN--ENDSCAN语句一般用于处理表中记录。语句可指明儒处理的记录范围及应满足的条件。
语句格式:
SCA [NINOOPTIMIZE]
[Scope][FOR 1Expressionl][WHIL E 1Expression2]
[Commands]
[LOOP]
[EXIT]
ENDSCAN
执行语句时,记录指针自动、依次在当前表的指定范围内满足条件的记录上移动,对每一条记录执行循环体内的命令。
如果循环体包含LOOP命令,那么当遇到LOOP时,就结束循环体的本次执行,不再执行其后面的语句,而是转回SCAN重新判断条件。
范围如果不写,默认值是ALL。

单项选择题 A1/A2型题
完形填空
完形填空。
     In 1989 an 8.2 earthquake almost flattened America, killing over 30,000 people in less than four minutes. In
the middle of the complete damage and disorder, a father rushed to the school where his son was supposed to
be, only to   1   that the building was   2  .
     After the unforgettable shock, he   3   the promise he had made to his son, "No matter   4   happens, I'll
always be there for you!" And tears began to   5   his eyes. As he looked at the pile of ruins, it looked hopeless,
but he kept remembering his   6   to his son. He rushed there and started   7   the ruins.
     As he was digging, other helpless parents arrived,   8  , "It's too late! They're all dead! Come   9  , face reality,
there's nothing you can do!" To each parent he responded with one  10 , "Are you going to help me now?" No
one helped. And then he continued to dig for his son, stone by stone.
     Courageously he went on alone because he needed to know  11  himself, "Is my boy  12  or is he dead?" He
dug for eight hours…12 hours…24 hours…36 hours…then, in the 38th  13 , he pulled back a large stone and
heard his son's  14 . He screamed his son's name, "ARMAND!" He heard back. "Dad? It's me, Dad! I told the
other kids not to worry. I told them that if you were alive, you  15  save me and  16  you saved me, they'd be
saved. You promised, 'No matter what happens, I'll always be there for you!' You did it, Dad!"
     "What's going on in there?" the father asked.
     "There are 14 of us  17  out  18  33, Dad. We are scared, hungry, thirsty and thankful you're here. When
the building collapsed, it made  19  and it saved us."
     "Come out, boy!"
     "No, Dad! Let the other kids out first,  20  I know you'll get me! No matter what happens, I know you'll
always be there for me!"
( )1. A. tell                
( )2. A. as flat as a pancake
( )3. A. memorized           
( )4. A. what                
( )5. A. fill                
( )6. A. picture             
( )7. A. digging             
( )8. A. to say              
( )9. A. out                 
( )10. A. word               
( )11. A. for                
( )12. A. live               
( )13. A. month              
( )14. A. sound              
( )15. A. will               
( )16. A. when               
( )17. A. remained           
( )18. A. from               
( )19. A. promise            
( ) 20. A. because            
B. discover            
B. as high as a mountain
B. forgot              
B. how                 
B. fill in             
B. promise             
B. digging through     
B. said                
B. again               
B. sound               
B. of                  
B. living              
B. minute              
B. voice               
B. would               
B. because             
B. missing             
B. in                  
B. space               
B. though              
C. realize          
C. as strong as an ox
C. made             
C. which            
C. come             
C. present          
C. digging out      
C. and saying       
C. on               
C. row               
C. by               
C. alive            
C. day              
C. noise            
C. should           
C. even if          
C. left             
C. of               
C. room             
C. when             
D. make               
D. as weak as a kitten
D. remembered         
D. who                
D. burst              
D. courage            
D. digging into       
D. saying             
D. off                
D. line               
D. to                 
D. lively             
D. hour               
D. tone               
D. must               
D. though             
D. gone               
D. over               
D. a triangle         
D. even though