问题 单项选择题

若看到程序中有以下事件过程,则可以肯定的是,当程序运行时
Private SubClick_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
Print "VB Program"
End Sub
A) 用鼠标左键单击名称为"Command1"的命令按钮时,执行此过程
B) 用鼠标左键单击名称为"MouseDown"的命令按钮时,执行此过程
C) 用鼠标右键单击名称为"MouseDown"的控件时,执行此过程
D) 用鼠标左键或右键单击名称为"Click"的控件时,执行此过程

答案

参考答案:D

解析: 在鼠标单击事件过程中,Button属性值为1时代表按下鼠标左键,值为2时代表按下鼠标右键,题中所述代码中没有定义Button值,所以单击鼠标左键或者右键都能触发MouseDown事件;代码中控件名称为Click,所以答案为D) 。

单项选择题

Extract 1

A stylish dining room with cream walls and curtains and black carpet as perfect foil to an eclectic array of furniture. Many of the pieces are classics of their particular era, and demonstrate how old and new designs can be happily mixed together. The prototype chair in the foreground has yet to prove its staying power and was thought up by the flat’s occupant. He is pictured in his living room which has the same decorative theme and is linked to the dining room by a high Medieval-styled archway where was once a redundant and uninspiring fireplace.

Extract 2

Old bathrooms often contain a great deal of ugly pipework in need of disguising. This can either be done by boxing in the exposed pipes, or by fitting wood paneling over them.

As wood paneling can be secured over almost anything — including old ceramic tiles and chipped walls — is an effective way of disguising pipework as well as being an attractive form of decoration. The paneling can be vertical, horizontal or diagonal.

An alternative way to approach the problem of exposed pipes is to actually make them a feature of the room by picking the pipework out in bright p colours.

Extract 3

Cooking takes second place in this charming room which; with its deep armchairs, is more of a sitting room than a kitchen, and the new Rayburn stove as a good Choice, as it blends in well with the old brick and beamed fireplace. There are no fitted units or built-in appliances, so all food preparation is done at the big farmhouse table in the foreground; and the china, pots and pans have been deliberately left on show to make an attractive display, What about the kitchen sink It’s hidden away behind an archway which leads into a small scullery. Here there’s a second cooker and — in the best farmhouse tradition — a huge walk-in larder for all food storage.

Compared with Extract 1 the room described in Extract 3 appears to().

A.be more comfortable

B.be more colourful

C.contain more furniture

D.possess a greater variety of style

选择题