问题 填空题

在窗体中添加一命令按钮,(其Name属性为Commmld1),然后编写代码。程序的功能是产生100个小于1000(不含1000)的随机正整数,并统计其中5的倍数所占比例。 请在空白处填入适当的内容,将程序补充完整。 Private Sub Command1 Click() Dim a(100) For j=1 To 100 a(j)=Int(______) If a(j)______5=0 Then______ Print a (j); Next i Print Print k/100 End Sub

答案

参考答案:(999*Rnd)+1

解析:Modk=k+1 本题综合考查Visual Basic内部函数、For循环等知识点。根据题意,For j循环用来为数组a(100)赋值,所赋之值为Rnd随机产生。由于需要产生100个小于1000的正整数,故第一处空白填:(999(Rnd)+1。注意,该处不能写成: (1000(Rnd),因为它有可能产生一个小于1的小数,此时会被Int函数转换为0,如此就违反了题目中关于正整数的要求。 If语句判断数组中5的倍数,故第二处空白填: Mod。表示取模。 由于要计算出5的倍数所占的比例,故每判断出一个5的倍数,便令一个变量加1,观察Print k/100可以得出该变量为k。故第三处空白填:k=k+1。

单项选择题
阅读理解

阅读理解。

     Welcome to Germany's largest theme park! In an area covering 68 hectares (公顷), visitors to

Europe Park can experience the architecture (建筑), plants and culture of 12 European countries.

     Set in various themed areas, the popular leisure (休闲) park provides over 100 attractions and

wonderful shows. Visitors can take a leisure walk through Italy, France, Spain, Portugal and

Scandinavia in one afternoon!

     Visitors can experience the rush of our high speed roller coasters (过山车), watch various

acrobatic  (杂技的) shows in our international programs, get lost in the underwater world from their

seat in the 4D cinema, or experience many of our spectacular (壮观的) attractions. You are sure to

make a lasting impression (印象) on your children and family.

     "Atlantis Adventure"-an interactive theme ride for the whole family. Deep below the Greek Village,

"Atlantis Adventure" is waiting for all brave hunters.

     Legend (传奇) or history? Following the myth (神秘) of Atlantis, visitors can get to the bottom of

one of the world's great mysteries in vehicles (汽车) which can rotate (旋转) 360°. Trying to reveal

(揭开) the myth of Atlantis, this adventure takes the visitors past extraordinary scenes with

amazingly-beautiful coral reefs (珊瑚礁), sunken ships and groups of colourful fish. Be fascinated by

the amazing animation (动画) and computer technology used in this fantastic ride! (Children 8 years of

age and under must be accompanied by an adult.)Opening Time 15th Mar. to 2nd Nov. Open from

9am to 6pm (with extended (延长的) opening hours during the peak season (旺季)) 1st Dec. to 6th

Jan., closed on 24th and 25th Dec. Open from 9am to 6pm

1. We know from the passage that Europe Park ______.  

A. is French most popular theme park

B. arranges trips to different American countries

C. has buildings of many different styles

D. has only the Atlantis Adventure theme

2. When visitors take the Atlantis Adventure ride, they can _________.

A. fly back in time to Atlantis using a special vehicle

B. enjoy wonderful scenery with their family

C. drive on the sea and swim with groups of fish

D. explore the remains of a sunken ship

3. You can go to Europe Park on ______.  

A. 24th Dec.    

B. 7th Mar.    

C. 30th Nov.    

D. 1st Jan.

4. The purpose of this passage is to ______.

A. introduce a newly-built theme park to the public

B. inform the public the theme park's business hours

C. attract more people to visit the theme park

D. explain to the public what a theme park is