把窗体的KeyPreview属性设置为True,并编写如下两个事件过程: Pri

题型:填空题

问题:

把窗体的KeyPreview属性设置为True,并编写如下两个事件过程:
Private Sub Form_KeyDown( KeyCode As Integer, Shift As Integer)
Print KeyCode;
End Sub
Private Sub Form_KeyPress( KeyAscii As Integer)
Print Key Ascii
End Sub
程序运行后,如果按下a键,则在窗上输出的数值为 【14】

考点:计算机等级考试VISUALBASIC二级VISUALBASIC笔试
题型:填空题

How often one hears children wishing they were grown-ups and old people wishing they were young again. Each age has its pleasures and its pains, and the happiest person is the one who enjoys what each age gives him without wasting his time in useless regrets(后悔).

Childhood is a time when there are few responsibilities to make life difficult. If a child has good parents, he is fed, looked after and loved, whatever he may do. It is impossible that he will ever again in his life be given so much without having to do anything in return. In addition, life is always presenting new things to the child — things that have lost their interest for older people because they are too well-known. But a child has his parents. He is not so free to do what he wishes to do; he is continually being told not to do things or being punished for what he has done wrong.

When the young man starts to earn his own living, he can no longer expect others to pay for his food, his clothes, and his room, but has to work if he wants to live comfortably. If he spends most of his time playing about in the way that he used to as a child, he will go hungry. And if he breaks the laws of society(社会) as he used to break the laws of his parents, he may go to prison. If, however, he works hard, keeps out of trouble and has good health, he can have the great happiness of building up for himself his own position in society.

小题1:After a child grows up, he __________.

A.will have little time playing

B.has to be successful in finding a job

C.can still ask for help in time of trouble

D.should be able to take care of himself小题2:Which of the following statements is NOT true according to the passage?

A.People are often satisfied with their life.

B.Life is less interesting for old people.

C.Adults are free to do what they want to do.

D.Adults should no longer rely on others.小题3:The underlined word "responsibilities" in the second paragraph means__________.

A.duties

B.jobs

C.suggestions

D.desires(渴望)小题4:The main idea of the passage is _________ .

A.life is not enjoyable since each age has some pains

B.young men can have the greatest happiness if they work hard

C.childhood is the most enjoyable time in one's life

D.one is the happiest if he can make good use of each age in his life

题型:填空题

在评价儿童现实营养状况时,除了国际上通用的方法外,目前学术界还常用哪一指标()

A.克托莱指数

B.BMI指数

C.劳雷尔指数

D.身高坐高指数

E.Livi指数

题型:填空题

新民主主义革命的主力军是()

A.工人阶级

B.农民阶级

C.城市小资产阶级

D.民族资产阶级

题型:填空题

我国实行社会主义市场经济,企业应是( )的主体。

A.投资活动

B.经济活动

C.城市规划

D.资金来源

题型:填空题

公安民警依法扣押或者收缴需要作为证据使用的物品、文件,应当根据(),分别依照公安机关办理行政案件或者刑事案件的有关规定处理。

A.违法犯罪危害性

B.违法犯罪严重程度

C.案件性质

D.警情敏感性

更多题库