单项选择题

下面代码运行后,s的值是()。

A.20
B.12
C.10
D.6


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

如果x=35,y=80,下面代码的输出结果是()。

A.危险
B.报警
C.报警  安全
D.危险  安全

3.单项选择题引用ListBox(列表框)当前被选中的数据项应使用()语句

A.ListBox1.Items[ListBox1.Items.Count]
B.ListBox1.Items[ListBox1.SelectedIndex]
C.ListBox1.Items[ListBox1.Items.Count-1]
D.ListBox1.Items[ListBox1.SelectedIndex-1]

4.单项选择题引用ListBox(列表框)最后一个数据项应使用()语句

A.ListBox1.Items[ListBox1.Items.Count]
B.ListBox1.Items[ListBox1.SelectedIndex]
C.ListBox1.Items[ListBox1.Items.Count-1]
D.ListBox1.Items[ListBox1.SelectedIndex-1]

7.单项选择题若要使TextBox中的文字不能被修改,应对()属性进行设置。

A.Locked
B.Visible
C.Enabled
D.ReadOnly

8.单项选择题若要使命令按钮不可操作,要对()属性进行设置。

A.Visible
B.Enabled
C.BackColor
D.Text

9.单项选择题当运行程序时,系统自动执行启动窗体的()事件。

A.Click
B.DoubleClick
C.Load
D.Activated

10.单项选择题表达式12/4-2+5*8、4%5/2的值为()。

A.1
B.3
C.4
D.10