网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
以下程序段的输出结果是____。 Dim c as Boolean Dim a as Double,b as Double a = Sqr(3) b = Sqr(2) c = a < b Print c
A.-1
B.0
C.FALSE
D.TRUE
参考答案和解析
C intx=3;打印出1,此时while(!(——x))为真,之后x=0,继续循环。打印出一2,此时while(!(——x))为假,之后x=-3退出循环。所以答案为1和-2。
更多 “以下程序段的输出结果是____。 Dim c as Boolean Dim a as Double,b as Double a = Sqr(3) b = Sqr(2) c = a < b Print cA.-1B.0C.FALSED.TRUE” 相关考题
考题
以上程序段运行的结果是:______. Dim a(-1 To 5) As Boolean Dim flag As Boolean flag = False Dim i As Integer Dim j As Integer Do Until flag = True For i = -1 To 5 j=j+1 if a(i)= False Then a(i)= True Exit For End If If i = 5 Then flag = True End If Next Loop Print jA.20B.7C.35D.8
考题
以下程序段运行的结果是: ______。 Dim a(-1 To 5)As Boolean Dim flag As Boolean flag=False Dim i As Integer Dim j As Integer Do Until flag=True For i=-1 To 5 j=j+1 If a(i)=False Then a(i)=True Exit For End If If i=5 Then flag=True End If Next Loop Print jA.20B.7C.35D.8
考题
语句:print sgn(-6^2)+Abs(-6^2)+int(-6^2)的输出结果是( )A.-36B.1C.-1D.-7252967.以下语句a=sqr(3)print format(a,####.###)的输出结果是( )A.1.732B. 0001.732C.###1.732D. 1.7320
考题
以下程序段a=sqr(3)b=sqr(2)c=a>bprint c的输出结果是( )A.-1B.0C.falseD.true
以下程序段a=sqr(3)b=sqr(2)c=abprint c的输出结果是( )A.-1B.0C.falseD.true
考题
以下程序的输出结果是 ( ) # define SQR (X) X*X main( ) { int a=16,k=2,m=1; a/=SQR(k+m)/SQR(k+m); printf("%d\n",a); }A.16B.2C.9D.1
考题
以下程序的输出结果是 ______。 # defineSQR(X) X*X main() { int a=10,k=2,m=1; a/=SQR(k+m)/SQR(k+m); printf("d\n",a); }A.16B.2C.9D.1
考题
以下程序的输出结果是 ______。 #define SQR(X) X * X main() { int a=16,k=2,m=1; a/=SQR(k/m)/SQR(k+m); printf("%d\n",A) ; }A.16B.2C.9D.1
考题
以下程序段运行的结果是______。 Dima(-1 To 5)As Boolean Dim flag As Boolean flag=False Dim i As Integer Dim j As Integer Do Until flag=True For i=-1 To 5 j=j+1 If a(i)=False Then a(i)=True Exit For End If If i=5 Then flag=True End If Next Loop Print jA.20B.7C.35D.8
考题
以下程序的输出结果是 ______。includedefine SQR(x)x*xmain((){ int a,k=3;a=++SQR(K
以下程序的输出结果是 ______。#include<stdio.h>#define SQR(x)x*xmain((){ int a,k=3; a=++SQR(K+1); printf("%d\n",A) ;}A.8B.9C.17D.20
考题
以下程序的输出结果是_______。includedefine SQR(x)x*xmain(){int a;k=3; a=++SQR(k+
以下程序的输出结果是_______。 #include<stdio.h> #define SQR(x)x*x main() { int a;k=3; a=++SQR(k+1); printf("%d\n",a) ; }A.8B.9C.17D.20
考题
以下程序运行后的输出结果是 。includemain(){int a;a=(int)((double)(3/2)+0.5+(int)1.99*2);print{(“%d\n”,a);}
考题
以下程序的输出结果是______。includedefme SQR(x)x*xmain(){int a,k=3; a=++SQR(k+1)
以下程序的输出结果是______。 #include<sulio.h> #defme SQR(x)x*x main() { int a,k=3; a=++SQR(k+1); printf("%d\n",a) ; }A.8B.9C.17D.20
考题
下列程序段运行后,消息框的输出结果是( )。 a=sqr(3)b=sqr(2)c=abMsgbox c十2 A.一1
下列程序段运行后,消息框的输出结果是( )。 a=sqr(3)b=sqr(2)c=a>;bMsgbox c十2A.一1B.1C.2D.出错
考题
下列程序的输出结果是______。 #define SQR(X) X*X main ( ) { int a=16, k=2, m=1; a/=SQR (k+m)/SQR (k+m); printf ("d\n", a); }A.16B.2C.9D.1
考题
设有Function过程:Private Function f(a As Integer, b As Integer) As Integera = a * a:b = b * bf = CInt(Sqr(a - b))End Function则如下程序段的运行结果是( )。Private Sub Command1_Click()Dim X As Integer, Y As IntegerX = 5: Y = 4a = f(X, Y)Print aEnd SubA. 5B. 4C. 3D. 9
考题
下面程序的输出结果是( )。 #define SQR(X) 2*X+1 main() { int a,b,C; a=3;b=2;C=1; a* =SQR(b+c)/SQR(b+c); printf("%d",a); }A.3B.18C.21D.24
考题
试题35运行下列程序,在立即窗口显示的结果是()Private Sub Command0_Click()Dim I As Single , J As SingleFor I= 2 To 10For J = 2 To I/2If I mod J = 0 Then Exit ForNext JIf J sqr (I) Then Debug .Print I;Next IEnd SubA.1 5 7 9B.4 6 8C.3 5 7 9D.2 3 5 7
考题
单选题以下程序段的输出结果是() a=Sqr(3) b=Sqr(2) c=ab Print cA
-1B
0C
FalseD
True
热门标签
最新试卷