2012VB练习题 下载本文

2012VB理论练习题

后,窗体系统时间显示上的颜色为:

A、蓝、绿色交替 B、蓝色 C、绿色 D、红色 (4) 如果要同时显示系统日期、时间,对Timer过程中Print语句之输出列表不可取的是: A、Date,Time B、Date;Time C、Date-Time D、Date + Time

试题29

【程序】

Private Sub Form_Load()

Timer1.Interval = 100 : Form1.WinDowState = 2 Label1.Width = ScaleWidth / 2: Label1.Left = ScaleLeft Label1.Alignment = 0: Label1.Caption = \运行中...\End Sub

Private Sub Timer1_Timer() Static m As Byte

m = m + 8: Label1.FontSize = m Timer1.Interval = Timer1.Interval + 100 If m > 80 Then Timer1.Enabled = False

End Sub

(1) 程序运行后,事件过程Timer1_Timer自动执行的次数为: A、9

B、10

C、11 D、0

C、窗体的右边 D、Label1的中

(2) “运行中...”这段文字的显示位置始终在窗体的 A、窗体的左边 B、Label1的右边 间

(3) Label1的标题在窗体上的显示多次变化,其规律为: A、字体变大、变化减慢

B、字体变小、变化减慢 D、字体变大、变化加快

C、字体变小、变化加快

25