在窗体上画一个名称为Combol的组合框,然后画两个名称分别为Label1、Labe

题型:填空题

问题:

在窗体上画一个名称为Combol的组合框,然后画两个名称分别为Label1、Label2,标题分别为“城市名称”和空白的标签。程序运行后,在组合框中输入一个新项目并按回车键,如果输入的项目在组合框的列表中不存在,则自动将其添加到组合框的列表中,并在Label2中给出提示“已成功添加新输入项。”,如图所示。如果输入的项目已存在,则在Label2中给出提示“输入项已在组合框中。”。请填空。

Private Sub Combo1_KeyPress(KeyAscii As Integer)

If KeyAscii=13 Then

For i=0 To Combo1.ListCount-1

If Combo1.Text=()Then

Label2.Caption="输入项已在组合框中。"

Exit Sub

End If

Next i

Label2.Caption="已成功添加新输入项。"

Combo1.()Combo1.Text

End If

End Sub

考点:计算机等级考试VISUALBASIC全国计算机等级考试二级VISUALBASIC真题2006年9月
题型:填空题

商品流通企业的管理信息系统是一个动态的系统,体现在()。

A.系统处理的信息是动态的

B.系统的开发过程是动态的

C.系统的使用环境是动态的

D.系统的开发与维护始终是处在动态过程中

题型:填空题

A famous study was done in a school by a professor from a university. At the start of the school year, the teachers were given the names of five children. They were told that these five were the most excellent students in the class. But the fact was that these students were only average,and they were not the best students at all. Well, guess what? At the end of the year, all the five average students scored among the highest in the class.

 What made these average students change so much to become top students?The only difference was the change in their teachers’ attitude. Because the teachers believed that these five kids were the top students,they expected more from them. And so these five average students began to believe and expect more from themselves. So they worked harder to do as well as they could.

 Do you know why? If you expect the best from people, they’ll usually want to give you their best. A great leader said, “Treat a person just how he appears to be on the outside, and you’ll make him even worse. But treat a person like he’s already a success,and you’ll help make him the best he can be.”

 Like the true story of 7-year-old Johnny, his teacher got so angry with him that one day she said,“Johnny,you’re the naughtiest boy in this class. I’m sure you’ll never change.” The next year Johnny had a new teacher. And on the first day of class,she met with Johnny after school and said,“Johnny, I’ve heard a lot about you! But do you know that I don’t believe a word of it.” And every day after that, this new teacher treated Johnny as if he was one of the smartest students even when Johnny did naughty things. Later on, Johnny became a school leader. Because that’s the power of our belief and attitude toward children.

小题1:The professor started his research by _______.

A.teaching the five children himself

B.asking the five children to find a new teacher

C.telling the five students to work harder than ever before

D.telling the teacher the five students were the best in the class小题2:The five average students became top students mainly because of ________.

A.the professor’s study

B.the teachers’hard work

C.the change in the teachers

D.the change in the teachers’ attitude小题3:What does the passage mainly tell us?

A.Attitude and belief can change a person.

B.Only teachers can make you a top student.

C.A professor’s study can help you score highest.

D.If you want to get more,you should have new teachers.

题型:填空题

硝酸铵是农村常用的化肥,化学式为NH4NO3.某硝酸铵化肥的外包装袋如图所示,推算该袋化肥中硝酸铵的质量分数.

题型:填空题

某发电厂原来用11kV的交流电压输电,后来改用升压变压器将电压升高到220kV输电,输送的电功率都是P,若输电线路的电阻为R,则下列说法中正确的是

A.提高电压后输电线上的电流降为原来的1/20

B.提高电压后输电线上的电流增为原来的20倍

C.提高电压后输电线上的功率损耗减为原来的1/400

D.提高电压后输电线上的功率损耗将增大为原来的400倍

题型:填空题

根据《立法法》的规定,下列关于法律适用的说法正确的是( )

A.同一机关制定的法律、行政法规、地方性法规、自治条例和单行条例、规章,特别规定与一般规定不一致的,适用特别规定;新的规定与旧的规定不一致的,适用新的规定

B.法律、行政法规、地方性法规、自治条例和单行条例、规章一概不溯及既往

C.地方性法规与部门规章之间对同一事项的规定不一致,由国务院作出裁决

D.部门规章之间、部门规章与地方政府规章之间对同一事项的规定不一致的,由国务院裁决

更多题库