问题 填空题

在名称为Form1的窗体上画一个文本框,其名称为Text1,在属性窗口中把该文本框的MultiLine属性设置为True,然后编写如下的事件过程:Private Sub Form_Click() 5Open "d:\test\smtext1.txt" For Input As #1Do While Not _________Line Input #1, aspect$whole$ = whole$ + aspect$ + Chr$(13) + Chr$(10) Loop Text1.Text = whole$Close #1 Open "d:\test\smtext2.txt" For Output As #1Print #1, _________Close #1 End Sub 上述程序的功能是,把磁盘文件smtext1.txt的内容读到内存并在文本框中显示出来,然后把 该文本框中的内容存入磁盘文件smtext2.txt。请填空。

答案

参考答案:EOF(A) , TextA.Text

解析:EOF 函数是判断 Random 或顺 序 Input 打 开 的文件是否 已 到结尾。本 题 中首先是要 读出 "d:\test\smtext1.txt"中的内容,使用 Do While 语句来循环读出内容并赋值给变量 whole$,而结束循环的条件 是到达文件的尾部,所以第一空应该填 EOF(1)。读完以后把内容赋值给 Text1 文本框。程序的第二部分就 是向文件 "d:\test\smtext2.txt"写内容,题目 要求把文本框 中的内容写入 文件 smtext2.txt ,所以第二空填 Text1.Text。

选择题
完形填空
完形填空。
     In the depths of my memory, many things I did with my father still live. These things come to represent,
in fact, what I call   1   and love.
     I don't remember my father ever getting into a swimming tool. But he did   2   the water. Any kind of   3   
ride seemed to give him pleasure.   4   he loved to fish; sometimes he took me along.
     But I never really liked being on the water, the way my father did. I liked being   5   the water, moving
through it,   6   it all around me. I was not a strong   7  , or one who learned to swim early, for I had my   8  .
But I loved being in the swimming pool close to my father's office and   9   those summer days with my father,
who  10   come by on a break. I needed him to see what I could do. My father would stand there in his suit,
the  11  person not in swimsuit.
     After swimming, I would go  12  his office and sit on the wooden chair in front of his big desk, where he
let me  13  anything I found in his top desk drawer. Sometimes, if I was left alone at his desk  14  he worked
in the lab, an assistant or a student might come in and tell me perhaps I shouldn't be playing with his  15 . But
my father always  16  and said easily, "Oh, no, it's  17 ." Sometimes he handed me coins and told me to get  18 
 an ice cream…
     A poet once said, "We look at life once, in childhood; the rest is  19 ." And I think it is not only what we
"look at once, in childhood" that determines our memories, but  20 , in that childhood, look at us.
( )1.A. desire     
( )2.A. avoid     
( )3.A. boat       
( )4.A. But         
( )5.A. on          
( )6.A. having      
( )7.A. swimmer    
( )8.A. hopes      
( )9.A. spending   
( )10.A. should      
( )11.A. next        
( )12.A. away from   
( )13.A. put up      
( )14.A. the moment     
( )15. A. fishing net
( )16. A. stood up   
( )17. A. fine     
( )18. A. the student
( )19. A. memory    
( )20. A. which     
B. joy         
B. refuse        
B. bus          
B. Then         
B. off           
B. leaving       
B. rider        
B. faiths       
B. saving       
B. would         
B. only        
B. out of        
B. break down   
B. the first time
B. office things 
B. set out      
B. strange     
B. the assistant         
B. wealth      
B. who          
C. anger       
C. praise      
C. train       
C. And        
C. by           
C. making      
C. walker      
C. rights    
C. wasting    
C. had to      
C. other      
C. by        
C. play with   
C. while      
C. wooden chair     
C. showed up  
C. terrible   
C. myself    
C. experience  
C. what     
D. worry         
D. love          
D. bike          
D. Still         
D. in            
D. getting       
D. runner        
D. fears         
D. ruining       
D. ought to      
D. last          
D. inside        
D. work out      
D. before        
D. lab equipment               
D. turned out    
D. funny         
D. himself       
D. practice      
D. whose