單項(xiàng)選擇題設(shè)a=5,則執(zhí)行x=IIf(a>6,-1,0)后,x的值為()。

A.5
B.6
C.0
D.-1


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題下列不能打開代碼窗口的操作是()。

A.雙擊窗體上的某個(gè)控件
B.雙擊窗體
C.單擊查看代碼按鈕
D.單擊窗體或控件

2.單項(xiàng)選擇題

已知在“通用”代碼有以下語句:
Dim stu()As String
則,在某一事件代碼中使用()是正確的。

A.ReDim stu(120) 
B.ReDim  stu(4,120) 
C.ReDim stu( ) 
D.ReDim stu( ) As  Integer

3.單項(xiàng)選擇題以下不能實(shí)現(xiàn)符號函數(shù)y=sgn(x)的程序段是()。

A.if x>0 then y=1 else if x=0 then y=0 else y= -1
B.if x>0 then y=1 else if x<0 then y= -1 else y=0
C.if x>=0 then if x=0 then y=0 else y= -1 else y=1
D.if x<>0 then if x<0 then y= -1 else y= 1 else y=0