问题 填空题

本程序的功能是利用随机数函数模拟投币,方法是:每次随机产生一个0或1的整数,相当于一次投币,1代表正面,0代表反面。在窗体上有3个文本框,名称分别是Text1、Text2、Text3,分别用于显示用户输入投币总次数、出现正面的次数和出现反面的次数,如图16-12所示。程序运行后,在文本框Text1中输入总次数,然后单击“开始”按钮,按照输入的次数模拟投币,分别统计出现正面、反面的次数,并显示结果。以下是实现上述功能的程序,请填空。
Private Sub Command1_Click()
Randomize
n=CInt(Text1. Text)
n1=0
n2=0
For i=1 To 【14】
r=Int(Rnd*2)
If r= 【15】 Then
n1=n1+1
Else
n2=n2+1
End If
Next
Text2. Text=n1
Text3. Text=n2
End Sub

答案

参考答案:[14]n [15]1

解析:

[分析]: 从填空[14]的位置来看,此处应该放置For循环的循环终值。根据题意,填空[14]为变量n。因变量n1的结果赋给Text2中,n1应放置正面的次数,所以填空[15]应为1。

单项选择题
完形填空
读下面短文,从短文后面各题的A、B、C、D四个选项中,选出适合填入对应空白处的最佳选项,并在答题卡上将该项涂黑。
Every summer a great many students travel to other countries looking for work and adventure. Most of the    26        are in seasonal work, mainly connected with wourism and    27         
The pay is usually poor, but most people work abroad for the     28    of travel. You can pick grapes on farms in France, entertain kids on American summer camps, and, of course, there are  29    jobs in hotels and restaurants.
But it is not easy now to find work. “    30   you speak the language of the country well, there will be very few openings,” says Althea Ellis, an adviser in     31       for students.
“If you work with a family in Italy, you’ll have to speak Italian. When you wash dishes in a restaurant in Pairs, the owner will expect you to speak   32    . British students only have a language     33     for jobs in the USA and Australia.”
    34     enjoys the experience. Sarah James was employed to help forty American children in Europe. The two teachers with the children had never been     35     .One child lost his passport; another became seriously ill and was      36      home; the whole group was thrown out of one hotel because of the      37      they made, and what’s worse, Sarah herself was robbed on her only    38    evening of the entire trip. “ I did visit a lot of new places,” she says,“ but it wasn’t worth it. The pay was     39     and it really was a 24-hour-a-day job. The kids never slept!”
“The troubles is, students expect to have a(n)     40    time of it.” Althea Ellis points out. “After all, they see it as a    41     .In practice,     42      ,you have to work hard. At the same time, all vacation work is casual (临时的) work. You’ll have a job when the hotel, the restaurant, or the campsite is busy. In the other words, you’ll work if it’s convenient for the company that     43    you. But you have      44    employment rights. As soon as the holiday season      45     ,they’ll get rid of you.”
小题1:
A.works
B.challenges
C.changes
D.hardships
小题2:
A.service
B.industry
C.business
D.science
小题3:
A.pains
B.comfort
C.difficulty
D.excitement
小题4:
A.always
B.hardly
C.never
D.seldsom
小题5:
A.If
B.Unless
C.Because
D.Although
小题6:
A.health care
B.vacation work
C.language studies
D.tourist safely
小题7:
A.Italian
B.English
C.French
D.Spanish
小题8:
A.chance
B.ability
C.possibility
D.advantage
小题9:
A.No one
B.None
C.Not everyone
D.Everybody
小题10:
A.abroad
B.employed
C.sad
D.respected
小题11:
A.driven
B.ridden
C.left
D.flown
小题12:
A.friends
B.decisions
C.noise
D.destruction
小题13:
A.busy
B.free
C.tiring
D.pleasant
小题14:
A.nice
B.reasonable
C.fair
D.poor
小题15:
A.hard
B.easy
C.difficult
D.ordinary
小题16:
A.holiday
B.job
C.festival
D.study
小题17:
A.besides
B.therefore
C.however
D.meanwhile
小题18:
A.fires
B.employs
C.recommends
D.appreciants
小题19:
A.few
B.little
C.all
D.much
小题20:
A.starts
B.lasts
C.approaches
D.finishes