问题 单项选择题

窗体上有一个名称为Text1的文本框,一个名称为Command1的命令按钮。窗体文件的程序如下: Private Type x a As Integer b As Integer End Type Private Sub Command1_Click() Dim y As x y.a=InputBox("") If y.a\2=y.a/2 Then y.b=y.a*y.a Else y.b=Fix(y.a/2) End If Text1.Text=y.b End Sub 对以上程序,下列叙述中错误的是()。

A.x是用户定义的类型

B.InputBox函数弹出的对话框中没有提示信息

C.若输入的是偶数,y.b的值为该偶数的平方

D.Fix(y.a/2)把y.a/2的小数部分四舍五入,转换为整数返回

答案

参考答案:D

解析:

x是用户定义的一种变量类型,可以使用它来声明变量。InputBox("")函数的提示信息为 "",即为空,因此弹出的对话框中没有提示信息。在程序中通过比较输入的数被2整除和被2除的值是否相等来判定它是否为偶数,如果是那么y.b的值就是y.a的值的平方。Fix函数是取整函数,它会删除小数部分,直接取表达式的整数部分,不四舍五入,因此D选项错误。

完形填空

根据短文内容,从短文后的选项中选出能填入空白处的最佳选项。选项中有两项为多余选项。

Currently, there is a growing recognition that parental involvement is one key to student achievement.小题1:_____.However, while these may be important for developing a sense of community and parental ownership of the school and its issues, such activities do not translate directly to students achievement.

小题2:_____.Simply asking the question,” So, what did you do in school today?” can start a discussion between parent and child about topics studied in class.Even talks at home about less classroom-specific topics that interest the student are shown to be important to raising student achievement.小题3:____.Teachers can provide students with interesting ideas for starting school-related conversations at home.小题4:____.

The school’s focus should be on how to enable parents and their children to have such meaningful conversations about the topics and ideas flowing from the classroom.小题5:_____.

Finding ways to promote direct parent participation in their children’s lives-at school and at home will have a much greater impact.

A.Some parents expect too much of their children

B.Teenagers can have rich and interesting conversations if encouraged

C.Starting a parent council may not be a top priority

D.Many schools have attempted to find ways for parents to participate in school management by setting up parent councils for parents to volunteerE.Self-education plays an important role in children’s development

F.Another way for parents to be more active in their children’s education pays dividents

G.Telling children that school is valuable is a lot less effective than showing them it is by being involved in what they are doing there.

问答题