问题 填空题

下面程序的功能是计算给定正整数序列中奇数之和y与偶数之和x,最后输出x平方根与 y平方根的乘积。请在画线处填上适当的内容使程序完整。
Private Sub Form_Click()
a=Array(3,6,8,11,64,13,24,9,42,35,22)
y=Fun1(a)
print y
End Sub
Private Function Fun1(b)
x=0:y=0
for k=0 to 10
If 【9】 Mod 2=0 then
x=x+b(x)
else
y=y+b(x)
End If
Next
Fun1=Sqr(x)*Sqr(y)
End Function

答案

参考答案:a(0)

解析: 数据的奇偶性,在默认的情况下数组的下标从0开始,所以填a(0)。

完形填空
完形填空。
     Ten years later, I will be 23 years old. Our city will be a __1__ living place then. There will be many
tall __2__ and trees. Many people will visit our __3__. Almost every family will have one or two cars.
People will __4__ their cars to work every day. The libraries will have more computers, and people
can __5__  books on them. The restaurants will have robot waiters (服务员) to __6__ you food.
Schools will have more __7__ living in England to teach you English. With the __8__ of televisions and
computers , transport will be fast (快的). You can only need two __9__ to get to Africa by plane.
People will keep houses _10__ by using the solar energy (太阳能). In a word, the way people live will
change a lot in the future.
(      )1. A. good    
(      )2. A. pubs    
(      )3. A. factory
(      )4. A. shop    
(      )5. A. look    
(      )6. A. bring  
(      )7. A. managers
(      )8. A. life    
(      )9. A. hours  
(      )10. A. warm  
B. weak        
B. buildings  
B. library    
B. leave      
B. have        
B. take        
B. doctors    
B. help        
B. weeks      
B. cool        
C. smooth    
C. floors    
C. city      
C. ride      
C. watch      
C. help      
C. teachers.  
C. technology
C. days      
C. cold      
D. difficult  
D. hills      
D. school    
D. drive      
D. read      
D. make      
D. farmers    
D. tradition  
D. years      
D. hot        
选择题