问题 填空题

下列程序段的功能是:从文本框中输入一个数值,如果该数值满足“除以4余1,除以5余2”条件,则在窗体上输f“文本框中的数值,否则,将焦点定位在文本框中,并清除文本框的内容。请填空。
Private Sub Command1_Click()
x=1Val(Text1. Text)
If______Then
Print x
Else
______
Text1.Text=""
End If
End Sub

答案

参考答案:x Mod 4=1And x Mod 5=2 Text1. SetFocus

解析: 题目要求程序满足的条件是“除以4余1,除以5余2”,这个条件中包含了一个逻辑并和两个求模运算。其中,逻辑并运算符用“And”表示,取余运算符用Mod表示,因此,程序中的If条件应是“x Mod 4=1 Andx Mod 5=2”;SetFocus方法是将焦点移至指定的控件或窗体。

填空题

先阅读短文,然后根据短文内容从方框内所给的单词中选择最恰当的词(注意词形变化)填入短文

空白处,使短文完整、通顺。一词只用一次,一空限填一词。方框中有两个词是多余的。

     Talk to someone if you are having problems with schoolwork. Speak up as soon as you can, so you can

get help right away before you fall behind.

     Your 1_____ are often a great place to start if you need help. Talk about your problem with them. They

might be able to 2_____ you how to do a difficult math problem or help you think of a topic to write about

for English class. They also can be helpful by finding that perfect place in the house for you to do your

homework and keeping supplies, like pencils, on hand. They also can cut down on distractions (分心的事)

like 3_____ younger brother and sisters!

     Teachers are also important to you because they can give you advice about the assignment (作业) you

are 4_____ trouble with. They also can help you set up a good system for writing down your assignments

and remembering to put all necessary books and papers in your backpack. Teachers can give you study tips

and offer ideas about how to 5_____ with homework. Helping kids learn is their job, 6_____ be sure to ask

for advice.

     Many schools, towns and cities offer after-school 7_____ to kids. They often help kids with their

homework and organize kids to 8_____ in different kinds of activities. There, you will not only be able to get

some help from adults, but also from other kids.

     You can also use the Internet to 9_____ online homework help sites. These sites can lead you to good

resources (资源) for research and offer tips and guidance about many 10_____. But be careful about just 

11_____ the information from an Internet website. Talk with your teachers about bow to use the resources

properly.

问答题 简答题