问题 填空题

窗体上已有名称分别为Dri、,e1、Dir1、Fite1的驱动器列表框、目录列表框和文件列表框,且有1个名称为Text1的文本框。以下程序的功能是:将指定位置中扩展名为“*.txt”的文件显示在File1中,如果双击File1中的某个文件,则在Text1中显示该文件的内容。
请填空。
Private Sub Form_Load()
File1. Pattern= (13)
End Sub
Private Sub Dirt1_Change()
File1.Path=Dir1. Path
End Sub
Private Sub Drive1_Change()
Dir1. Path=Drive1. Drive
End Sub
Private Sub File1_DblClick()
Dim s As String *1
If Right(File1. Path, 1)="\"Then
f_name=File1. Path+File1. FileName
Else
f_name=File1. Path+"\"+File1. FileName
End If
Open f_name (14) As #1
Text1. Text=""
Do While (15)
s=Input(1, #1)
Text1. Text=Tex 1. Text+s
Loop
Close #1
End Sub

答案

参考答案:(13)"*.txt" (14)For Input (15)Not EOF(1)

解析: 文件列表框的:Pattern属性可返回或设置一个值以决定显示在文件列表框中的文件类型,该值为一个字符串,本题中要显示扩展名为txt的文件,因此为"*.txt"。程序首先要以读文件的方式(Input)打开文件,题中说明这是个顺序文件,那么如果文件指针没有到文件尾(EOF(1)的值为False),就要从文件中读出数据,所以循环条件应以是否到文件尾为依据,判断是否继续循环。

阅读理解

阅读下面短文,根据其内容,补全表格中所缺信息。请将答案按编号依次填入表格内的题号后横线上。 (共 10 小题,每小题 1 分:计 10分)

1、The life difference between east and west.rich and poor becomes clear when we look at how the kids sleep at night.

Jyoti, aged 14, Nepal Jyoti left school at a young age and now lives with one of her sisters in the Nepalese countryside where she works on the farm. 4、①The family sleep on mats on the mud floor in the open air, with an open fire for cooking and keeping warm. Jyoti loves dancing and 5、she wants to become a dancer to make money for her family.

Tzvika, aged 12,West Bank(约旦河西岸), Israel 4、②Tzvika lives in a gated community(社区) of 36,000 Orthodox Jews in an Israeli settlement( 定 居 点 ) on the West Bank. Televisions and newspapers are not allowed from the settlement. The average family has nine children, but Tzvika has just two brothers, with whom he shares his room. Religion(宗教) is the most important subject, followed by Hebrew language and math. Sport is not allowed in the school. Tzvika wants to be a learned man when he grows up.

Lamine, aged 12, Bounk Village, South Africa Lamine studies at the local all- boy Koran school and shares a room with several other schoolmates. 6、His day starts at six o’clock when he and the other boys work on the school farm with the guide of teachers, and in the afternoon the boys study the Koran(可兰经). In his free time, lamine likes to play football with his friends and when he grows up he would like to teach in this school.

Ahkὸxet, aged 15, River Amazon, Brazil 7、①Ahkὸxet is a member of the Kraho tribe(部落) living near the river of Amazon. There are only 1,900 members of the tribe. All the tribe members grow and hunt their own food, and any other material 8、they need is bought, using money made from film companies and photographers who visit their camp. He dreams to be head of the tribe when he grows up. Jasmine, aged 14, Kentucky, the US 7、

②Jasmine lives in a big house with her parents and three brothers in the Kentucky countryside. Her father works as a railroad engineer. Her bedroom is filled with her favorite toys and her wardrobe is filled with her dresses, for 9、she normally gets two new dresses every month. She enjoys being treated like a princess, having her hair done and wearing pretty clothes and make-up and would like to be a rock star when she grows up.  

多项选择题