网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下述程序执行后,输出结果是( )。 For n = 3 To 1 Step-1 x$ = String$(n, "#") Print x$ Next n

A.1# 2# 3#

B.### ##

C.# ## ###

D.3# 2# 1#


参考答案

更多 “ 下述程序执行后,输出结果是( )。 For n = 3 To 1 Step-1 x$ = String$(n, "#") Print x$ Next nA.1# 2# 3#B.### ##C.# ## ###D.3# 2# 1# ” 相关考题
考题 下列程序执行后,输入结果是()。 For n = 3 To 1 Step - 1 x$ = String$(n,"#") Print x$ Next inA. 1# 2# 3# B. ### ## #C. # ## ### D. 3# 2# 1#

考题 下列程序段的执行结果为 ______。 For x=5 To 1 Step-1 For Y=1 To 6-x Print Tab(Y+5);"*"; Next Y Print Next xA.***** **** *** ** *B.***** **** *** ** *C.* ** *** **** *****D.* *** ***** ******* *********

考题 假定有如下事件过程: Privte Sub Form_Click0 Dim x As Integer,n As Integer x=1 n=0 Do While x<28 x=x*3 n=n+1 Loop Print x,n End Sub 程序运行后,单击窗体,输出结果是( )。A.81 4B.56 3C.28 1D.243 5

考题 下列程序运行后的输出结果是 Function Fun(n) x=n*n Fun=x一11 End Function Private Sub Command1_Click() For k=1 To 2 Y=Fun(k):Print Y Next End SubA. -10 -7B.10 8C.1 3D.0 4

考题 下列程序段的执行结果为( )。 ForX=5 To 1 Step-1 For Y=1 To 6-X Print Tab (Y+5);"*" Next Y Print Next XA.***** **** *** ** *B.***** **** *** ** *C.* ** *** **** *****D. * *** ***** ******* *********

考题 (16)在窗体上画一个命令按钮,其名称为Commandl.程序运行后,单击命令按钮,输出结果是 Private Sub p1(n As Integer) For i=n To 1 Step -1 x=String(i,"*") Print x Next i End Sub Private Sub Commandl_Click() P1(3) End SubA.*** ** *B.* ** ***C.* * *D.******

考题 有如下程序: Private Sub Commandl_Click( ) Dim i As Integer For i=1 To 2 DS Next i End Sub Sub DS( ) Dim x As Integer,m As String Static y,n X=X + 1 y=y + 1 m=m "*”:n=n"#" Print x,y,m,n End Sub 程序运行后,输出的结果是A.1 1 * #B.1 1 * #C.1 1 * # 1 1 * # 1 2 * #D.1 1 * # 1 1 * ## 1 2 * ##

考题 有以下程序: include difine F(X, Y)(X)*(Y)main(){int a=3, b=4; print("% d\n", 有以下程序: # include<stdio. h> # difine F(X, Y) (X)*(Y) main() { int a=3, b=4; print("% d\n", F(a++, b++)); } 程序运行后的输出结果是______。A.12B.15C.16D.20

考题 有以下程序: #include stdio.h main( ) { struct node{int n; struct node*next;} *P; struct node x[3]={{2,x+1),{4,x+2},{6,NULL}}; P= X; printf("%d,",p-n); printf("%d\n",p-next-n); } 程序运行后的输出结果是( )。A.2,3B.2,4C.3,4D.4, 6

考题 下列程序段的执行结果为 ______。 n=16 For k=n To 1 Step-1 x=Sqr(k) x=x-2 Next k Print x-2A.-3B.-1C.1D.2

考题 下列程序执行后,输出结果是( )。For n=3 To 1 Step-1x$=String$(n,"#")Print x$Next nA.1# 2# 3#B.)### ## #C.# ## ##D.3# 2# 1#

考题 有如下事件过程: Private Sub Commaild1_Click( ) Dim i As Integer For i =1 To 2 DC Next i End Sub Sub DC( ) Dim x As Integer,m As String Static y,n x=x + 1 y=y + 1 m=m"*":n=n "#" Print x,y,m,n End Sub 程序运行后,输出的结果是A.1 1 * # 1 1 * #B.1 1 * # 1 2 * #C.1 1 * # 1 1 * ##D.1 1 * # 1 2 * ##

考题 下述程序的运行结果是 For m=3 Tol Step-1 x$=String$(m,"#") Print x$ NextA.1# 2# 3#B.### ## #C.# ## ###D.3# 2# 1#

考题 下列程序段的执行结果为 n=0 For i=1 To 3 For j=5 To 1 Step-1 n=n+1 Next j,i Print n;j;iA.12 0 4B.15 0 4C.12 3 1D.15 3 1

考题 以下程序段的执行结果是 ______。 Dim A(3, 3) For m = 1 To 3 For n = 1 To 3 If n = m Or n = 3 - m + 1 Then A(m, n) =m + n Else A(m, n) = 0 End If Next n Next m For m = 1 To 3 For n = 1 To 3 Print A(m, n); Next n Print Next mA. 1 1 1 1 1 1 1 1 1B.2 0 4 0 4 0 4 0 6C.0 0 0 0 0 0 0 0 0D.1 0 1 0 1 0 1 0 1

考题 现有如下一段程序: Option Base 1 Privalc Sub Command1 Click( ) Dim a a=Array(3,5,7,9‘) x=1 For i=4,10 j Step-1 s=s+a(i)*X x=x*10 Next i Print s End Sub 执行程序,单击Command1命令按钮键,执行上述事件过程,输出结果是( )。A.9753B.3579C.35D.79

考题 下列程序段的执行结果为______ 。 Dim A(4) N= 3 A(1) =1 For K=0 To N-1 For L=1 To K+1 X=K+2 -L A(X)=A(X)+A(X-1) If K<N-1 Then Exit For Print A(X); Next L Next KA. 1 2 1B.1 2 3C.2 4 6D.1 3 1

考题 在窗体上画一个命令按钮,其名称为Command1。程序运行后,单击命令按钮,输出结果为( )。 Private Sub p1(n As Integer) For i=n To 1 Step-1 x=String(i,"*") Print x Next i End Sub Private Sub Command1_Click() p1(3) End SubA.*** ** *B.* ** ***C.* * *D.******

考题 在窗体上画一个命令按钮,其名称为Command1。程序运行后,单击命令按钮,输出结果是( )。 Private S.b p1(n As Integer) For i=n To 1 Step=1 x=String(i,"*") Print x Next i End Sub Private Sub Command1 Click( ) pl(3) EndSubA.*** ** *B.*** ***C.* * *D.******

考题 有下列程序: fun(int x) {int p; if(x= =0 ‖ x= =1) return(3); p=x-fun(x-2); return p; } main( ) { print f("%d\n",fun(7 ));} 执行后输出的结果是( )。A.7B.3C.2D.0

考题 有以下程序#ncludestdio.hmain(){ struct node{int n;struct nodc*next;}*p;struct node x[3]={{2,x+1},{4,x+2},{6,NULL}};p=x:printf("%d,",p-n);printf("%d\n",P-next-n);}程序运行后的输出结果是A.2,3B.2,4C.3,4D.4,6

考题 下列程序运行后的输出结果是 Private Sub Command1_Click() For k=3 To 1 Step-1 x=String(k,"*") Print x Next End SubA.* * * * * *B.1 * 2 * 3 *C.3 * 2 * * 1 * * *D.* * * * * *

考题 下列程序段的执行结果为 ______。 N=10 For K=N To 1 Step -1 X=Sqr(K) X=X-2 Next K Print X-2A.-3B.-1C.1D.1.16227765

考题 下述程序执行后,输出结果是( )。 For n=3 To 1 Stew -1 x$=String$(n,"#") Print x$ Next nA.1# 2# 3#B.### ## #C.# ## ###D.3# 2# 1#

考题 有以下程序: main() { int n=0,m=l,x=2; if(!n) x-=l: if(!m) x-=2; if(!x) x-=3; printf (" %d\n",x); } 执行后的输出结果是 ______。A.2B.1C.3D.6

考题 下列程序段的执行结果为______。 N=0 For I=1 To 3 For J=5 To 1 Step-1 N=N+1 Next J Next I Print N; J; IA.12 O 4B.15 0 4C.12 3 1D.15 3 1

考题 单选题有以下程序:#include main(){ struct node {  int n;  struct node *next; } *p; struct node x[3] = {{2,x+1},{4,x+2},{6,NULL}}; p=x; printf(%d,,p-n); printf(%d,p-next-n);}程序运行后的输出结果是(  )。A 2,3B 2,4C 3,4D 4,6