问题 填空题

我国古代数学家张丘建在其著名的《算经》中提出了百鸡问题:每只公鸡5元,每只母鸡3元,三只雏鸡1元;如何用100元买100只鸡,即公鸡、母鸡、雏鸡各多少只。请在空白处填入适当的内容,将程序补充完整。  Private Sub Commandl_Click()   Dim Cock As Integer   Dim Hen As Integer   Dim Chick As Integer   Forml.Print“公鸡数”,“母鸡数”,“雏鸡数”   For Cock;0 To 20     For Hen=0 To 33       For Chick=0 To 100         If 【】Then          Form1.Print Cock,Hen,Chick         End If       Next Chick     Next Hen   Next Cock  End Sub

答案

参考答案:Cock + Hen + Chick = 100 And 5 * Cock + 3 * Hen + ch/3 = 100

解析:在该题中运用了循环语句的嵌套,即多重循环。从题目来看,需要填入的是一个条件语句,即满足百鸡问题的数的条件。如果满足条件就在窗体上显示出 来,应填入的语句是:Cock + Hen + Chick = 100 And 5 * Cock + 3 * Hen + ch/3; 100。

完形填空
完形填空。
     Peter and James were brothers. One afternoon __1__ the lessons were over, they stayed in school to
help their teacher. They__ 2__ for an hour. Then the teacher said, "Thank you, boys. We will finish the
work tomorrow. Now you must go home."
     When the boys __3__ home, it was seven o'clock. There was light inside their house and the door was
___4__. They could see a man inside, too.
     "Who can it be?" thought Peter. "Father and Mother have gone shopping. They won't be home __5__
eight o'clock."
     When the ___6__ man saw Peter, he smiled and said, "Come in! You don't know me, but I'm your
__7__friend. He  asked me to fetch (取)some money for him." The man did not see James.
     Peter went inside and began talking to the man but James did not. He quietly but quickly ran off to call
the police. He soon found a policeman and __8__ him back to their home. The man was still there, but
when he saw the policeman, he tried to run off. The policeman __9__ him and held his arm.
     Just then Mr. and Mrs. Baker, the boys' parents _10__.
     "No!" said Baker. "I don't know him. He must be a thief. I am glad you have caught him."
( )1. A. if        
( )2. A. studied  
( )3. A. arrived in
( )4. A. open      
( )5. A. at        
( )6. A. away      
( )7. A. father    
( )8. A. brought  
( )9. A. stoped    
( )10. A. returned
B. when        
B. worked      
B. went to    
B. opened      
B. since      
B. out        
B. fathers    
B. bring      
B. stopped    
B. come        
C. before      
C. stayed      
C. got to      
C. opening      
C. until        
C. outside      
C. father's    
C. take        
C. catch        
C. arrive      
D. until      
D. watched    
D. reached    
D. close      
D. after      
D. inside    
D. brother's
D. caught    
D. saw        
D. reached    
单项选择题