【单选题】【消耗次数:1】
在窗体上画1个命令按扭(名称为Command1)和1个文本框(名称为Text1),然后编写如下事件过程: ???? Private Sub Command1_Click() ???? ? x=Val(Text1.Text) ???? ? Select Case x ???????? Case 1,3 ????????????? y=x*x ???????? Case Is>=10,Is<=-10 ????????????? y=x ???????? Case -10 To 10 ????????????? y=-x ?End Select ?????? End Sub 程序运行后,在文本框中输入3,然后单击命令按扭,则以下叙述中正确的是______。
先执行y=x*x,再执行y=-x
执行y=-x
执行y=x*x
程序出错
参考答案:
复制
纠错
相关题目
【单选题】 以下程序段的运行结果是( )。 for(y=1;y) y=((x=3*y,x+1),x-1); printf(x=%d,y=%d,x,y);
①  x=27,y=27
②  x=12,y=13
③  x=15,y=14
④  x=y=27
【单选题】 以下程序段:x=1:y=4:DoUntily4:x=x*y:y=y+1:Loop执行后x的结果为()。
①  1
②  4
③  8
④  20
【单选题】 执行下列语句后,x和y的值是() int x,y; x=y=1; ++x || ++y;
①  1和1
②  1和2
③  2和1
④  2和2
【单选题】 执行下面程序后,运行结果是 #includevoid main( ) { int x=41,y=1; if (x%3==0 x%7==0) { y+=x;printf(y=%d\n} else {y=x;printf(y=%d} }
①  y=41
②  y=43
③  y=42
④  y=1
【单选题】 假定在窗体是有两个命令按钮Command1和Command2及一个文本框Text1。有如下事件过程代码: Private Sub command1_click() Text1.Text = 中国 End Sub Private Sub command2_click() Text1.Text = China End Sub 若首先单击command1,再单击Command2,则在文本框中显示 ( )。
①  China
②  中国
③  China中国
④  中国China
【单选题】 窗体上画一个名为Command1的命令按钮,然后编写以下程序: Private Sub Command1_Click() Dim m(10) As Integer For k = 1 To 10 m(k) = 12 - k Next k x = 8 Print m(2 + m(x)) End Sub 运行程序,单击命令按钮,在窗体上显示的是 。
①  6
②  5
③  7
④  8
【单选题】 设X,Y独立同分布P(X=-1)=P(Y=-1)=1/2,P(X=1)=P(Y=1)=1/2则
①  X=Y
②  P(X=Y)=0
③  P(X=Y)=1/2
④  P(X=Y)=1
【单选题】 设x和y均为int型变量,则执行下的循环后,y值为fory=1,x=1;y=10))break;ifx%2==1){x+=5;continue;}x-=3;}
①  2
②  4
③  6
④  8
【单选题】 在窗体上画一个命令按钮和一个文本框,其名称分别为Command1和Text1,把文本框的Text属性设置为空白,然后编写如下事件过程: Private Sub Command1_Click() ??? a = InputBox(Enter an integer) ??? b = InputBox(Enter an integer) ??? Text1.Text = b + a End Sub 程序运行后,单击命令按钮,如果在输入对话框中分别输入8和10,则文本框中显示的内容是______。
①  出错
②  18
③  810
④  108
【简答题】 设 A={1, 2, 4, 6}, 分别求关系 R={|x, y∈Aùx+y12}、{|x, y∈Aù|x-y|=1}、{|x, y∈Aùx/y∈A}和{|x, y∈Aùy 为素数}。
随机题目
【单选题】 21.Sex education in primary school is still a big _____ in China today.
①  question
②  issue
③  problem
④  event
【单选题】 24.All the President’s Men _____ one of the important books for scholars who study the Watergate Scandal.
①  remains
②  remained
③  remain
④  is remaining
【单选题】 22.Plant your fig-tree _________ there is plenty of sunshine.
①  that
②  where
③  which
④  how
【单选题】 17.She is stupid, but it’s different _____ Mary; she is just lazy.
①  in case
②  in case of
③  in case that
④  in the case of
【单选题】 15.We would have arrived two hours ago _____the traffic jam.
①  because of
②  as a result of
③  despite
④  but for
【单选题】 17.Some tourists went to the beach; _____ explored the town.
①  the other
②  other
③  others
④  . another
【单选题】 8. The Labour Party ______ that the government give an explanation.
①  asked
②  demanded
③  told
④  said
【单选题】 2. He was _______ manager of the office.
①  appointed
②  objected
③  ensured
④  promoted
【单选题】 25. I can’t go—for one thing, I have no money, and ___, I have too much work.
①  what’s more 
②  as well 
③  for another 
④  in addition
【单选题】 14. Don’t turn the lights on, _______you ?
①  won’t
②  can
③  will
④  . do