问题 单项选择题

下列事件过程的功能是:建立一个名为Datal的随机文件,存放角度值及这些角度的正弦函数值和余弦函数值,角度为1,2,3,…,90。请在空白处填入适当的内容,将程序补充完整。 Private Type Ang K As Integer Sinx As Single Cosx As Single End Type Dim Ksc As Ang Private Sub Form_Click() Dim Y As Single Dim i As Integer Dim Ksc As Ang Open______ Y=3.14159/180 For i=1 To 90 Ksc.K=i Ksc.Sinx=Sin(i*Y) Ksc.Cosx=Cos(i*Y) ______ Next i Close #2 End Sub

A."..\Data1.txt"For Random As #1 Len=10 Put #1,i,Ksc

B."..\Data1.txt"For Random As #1 Len=10 Put #1,Y,Ksc

C."..\Data1.txt"For Random As #1 Put #1,i,Ksc

D."..\Data1.txt"For Random As #1 Put #1,Y,Ksc

答案

参考答案:A

解析: 分析程序,程序要将角度值及这些角度的正弦函数值和余弦函数值存入Datal文件中。因此,应先打开Datal文件,应为Datal文件是随机文件,要新建并写入信息,所以应用Random方式打开文件。这里给随机文件指定长度为10,所以第1个空白处应填:"..\Dam1.txt"For Random As#1 Len=10。要向随机文件中写入信息,应用Put语句,因此第2空应填:Put#1,i,Ksc。

单项选择题
完形填空

Today people can use the phone to talk with others almost anywhere on the earth. But  1 you use the phone, you can’t see the person you are talking with. That  2  change in the future.

Now some people are using a kind of telephone called the picture phone or a vision phone(视频电话). Two people  3  are talking can see each other with it.

Picture phones can be useful when you have 4  to show the person you are calling. They may have other uses in the future. One day you may be able to ring up a   5  and ask to see a book. Then you’ll be able to   6  the book over your picture phone. Also you may be able to do shopping through your picture phone. If you see something   7  the newspaper that you want to buy, you can  the shop. People at the shop will show you the thing you’re   9  in over the phone. You’ll be able to shop all over the town and never even leave your room.

The picture phone is really a   10  phone. More and more people will use it.

小题1:A. if                       B. when                C. before

小题2:A. can’t                   B. must                C. may

小题3:A. whom                     B. who                 C. which

小题4:A. something                B. nothing             C. everything

小题5:A. shop                     B. school              C. library

小题6:A. read                     B. see                 C. watch

小题7:A. in                       B. about               C. on

小题8:A. visit                    B. go                  C. call

小题9:A. interested               B. bored               C. interesting

小题10:A. useless                  B. helpless            C. helpful