问题 填空题

在n个运动员中选出任意r个人参加比赛,有很多种不同的选法,选法的个数可以用公式:计算,在窗体上设计3个文本框,名称依次是Text1、Text2和Text3文本框中,请填空。
Private Sub Command1_Click()
Dim r As Integer,n As Integer
n=Text1
r=Text2
Text3=fun(n)/(______)/fun(r)
End Sub
Function fun(n As Integer)As long
Dim t As gong
______
For k=1 To n
T=t*k
Next k
Fun=t
Fnd Function

答案

参考答案:fun(n)—fun(r) t=1

解析: 函数定义的内部和函数调用的方式上可以看出,函数fun求的是阶乘。所以存放变量乘积的变量t要赋初值为1,再按公式调用就可以了。

阅读理解

阅读理解。

     News 1

     Yuan Longping, the father of hybrid rice, won the World Food Prize on Monday. Yuan developed the

world's first popular and widely known hybrid rice. Hybrid rice plants can make more rice than regular ones.

     News 2

     Have you ever got angry at books that are full of mistakes? Don't worry, things will get better soon. Last

week, China started checking textbooks, dictionaries and children's books all over the country. The

government said the results of the check would come out at the end of June.

     News 3

    People will see a new"star" in the sky soon. China plants to send a satellite into space by December 2006.

It will stay in space for one year. It will go around the moon and take pictures. It must be very expensive,

right? That's for sure; 1.4 billion yuan!

     News 4

     Have you ever thought of being able to fly around the world in a few hours? One day, maybe you can.

Last Saturday, the American X-43A airplane made its first flight. It reached a speed of 8,000 kilometers per

hour. This makes it the fastest plane in the world.X-43A is only three to four meters long, but it's very heavy.

It weighs 1,270 kilograms.

1. The satellite sent by China will move around ________.

A. the moon

B. the earth

C. the sun

D. the mars

2. The speed of the fastest plane in the world is ________.

A. 1.4 kilometers per second

B. 43 kilometers per minute

C. 1,270 kilometers per hour

D. 8,000 kilometers per hour

3. The checking of textbooks, dictionaries and children's books will ________.

A. make a lot of money

B. make the children sad

C. make sure there are no mistakes in them

D. make sure the books are not too expensive

4. Which of the following statements about the new star is NOT true?

A. It will go around the moon.

B. It will stay in space for two years.

C. It costs a lot.

D. It will go into space by December 2006.

5. Yuan Longping won the World Food Prize because ________.

A. he likes to eat hybrid rice

B. he is a successful father

C. he grows more rice than others

D. he developed the world's first popular and widely grown hybrid rice

单项选择题