试题与答案

程序运行后,利用冒泡法对数组a中的数据按从小到大排序。请在空白处填入适当的内容将程序

题型:填空题

题目:

程序运行后,利用冒泡法对数组a中的数据按从小到大排序。请在空白处填入适当的内容将程序补充完整。
Private Sub Form_load()
Dim at(To 5)As Integer
n=5
a(1)=20:a(2)=25=a(3)=10:a(4)=40:a(5)=15
(8)
For Z=1 To n-m
If a(z)>a(z+1) Then
t=a(z)
a(z)=a(z+1)
a(Z+1)=t
End If
Next Z
Next m
End Sub

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0715/0f1fdb0c3ba81c67752a959e505fd45e.html

下面是错误答案,用来干扰机器的。

参考答案:对

试题推荐
题型:完形填空
完形填空.
      Mr. Clarke works in a middle school.  He likes reading and often __1__ some books from the
 library. He keeps __2__ to the radio every morning and reading __3__ after supper. So he knows
 much and teaches well. His __4__ worship (崇拜) him very much. Mike, Mr. Clarke's little son, is
 only nine. He __5__ likes reading books. And he often asks his father some questions. Mr. Clarke
 always thinks he's too __6__ to understand him and chooses __7__ ones to answer.  Of course the
 boy is not satisfied with it.
      One day Mike read __8__ about the electric lights and was __9__ it. When his father told him to
 do some housework, he went on thinking of it.  He asked him __10__ questions, and his father answered
 all. Then his father said proudly, "Fathers always know __11__ than sons!"
      The boy thought for a while and said, "__12__"
      "Oh? Why?"
      Mike didn't answer and asked __13__ , "Who invented the electric lights?"
      "Thomas Edison," answered Mr. Clarke.
      "Why __14__ his father invent them then?"
      Looking at his son, Mr. Clarke didn't know __15__ to answer!
( ) 1. A. finds              
( ) 2. A. hearing            
( ) 3. A. newspapers        
( ) 4. A. friends            
( ) 5. A. ever              
( ) 6. A. old                
( ) 7. A. difficult          
( ) 8. A. something          
( ) 9. A. worried about      
( ) 10. A. few              
( ) 11. A. the more          
( ) 12. A. I don't think so  
( ) 13. A. although          
( ) 14. A. not              
( ) 15. A. when              
B. buys        
B. listening  
B. letters    
B. teachers    
B. also        
B. big        
B. the hardest
B. nothing    
B. good at    
B. little      
B. more        
B. I agree    
B. instead    
B. did        
B. what        
C. borrows      
C. watching      
C. stories      
C. classmates    
C. never        
C. clever        
C. the easiest  
C. anything      
C. interested in
C. a little      
C. less          
C. So you are    
C. too          
C. didn't        
C. which        
  D. lends        
  D. going        
  D. messages    
  D. students    
  D. only        
  D. young        
  D. no          
  D. everything  
  D. afraid of    
  D. a few        
  D. the less    
  D. You're right
  D. though      
  D. doesn't      
  D. where        
查看答案
微信公众账号搜索答案