问题 填空题

在KeyDown和KeyUp事件过程中,当参数Shift的值为十进制数1,2,4时,分别代表Shift、 【8】 【9】 键。

答案

参考答案:[8]Ctrl
[9]Alt

解析:[评析] Shift是在Keydown或Keyup事件发生时响应Shift,Ctrl和Alt键的状态的一个控数。Shift参数是一个位域,它用最少的位响应Shift键(位0)、Ctrl键(位1)和Alt键(位2)。这些位分别对应于值1、2和
4。可通过对一些、所有或无位的设置来指明有一些、所有或零个键被按下.例如,如果Ctrl和Alt这两个键都被按下,则ShiR的值为6。

单项选择题
阅读理解

阅读理解。把答案的编号填在左边的括号内。

       Tom goes to see his grandparents with his father. On the train Tom often puts his head out of the

window. His father says, “Tom, don’t put your head out of the window.” But Tom goes on putting

his head out of the window.       

       His father takes Tom’s hat quietly, hides it behind his back and says to Tom, “You see, your

hat is gone.” Tom is afraid. His father says, “Well, whistle(吹口哨)once. Maybe your hat will

come back.” Tom whistles. His father puts the hat on Tom’s head quickly. “Oh! It’s wonderful!” Tom laughs and says. He quickly takes his father’s hat and throws it out of the window. “Now it’s

your turn to whistle, Dad!” he says happily.

1. Tom goes to see his grandparents with his father             .

A. by bus        

B. by train      

C. by plane          

D. by ship

2. Tom often puts             out of the window.

A. his hat      

B. his father’s hat  

C. his head    

D. his father’s head

3.               and his hat is on his head.

A. Tom whistles                  

B. His father whistles  

C. Both of them whistle                

D. The conductor(列车员) whistles

4. Tom takes his father’s hat and             .

A. hides it behind his back    

B. throws it out of the window  

C. puts it under his seat                

D. puts it n his own head

5. At last Tom’s father’s hat               .

A. is on Tom’s head            

B. is on his father’s head  

C. will come back                      

D. is gone