题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-01-23 21:28:02

[单项选择]下列代码运行后输出结果是
Defstr B-E
Private Sub Command1_Click( )
B$="123"
C="456"
Print B+C$
End Sub
A. 123456
B. "123456"
C. 123+"456"
D. 显示出错信

更多"下列代码运行后输出结果是 Defstr B-E Private S"的相关试题:

[单项选择]下列程序运行后在立即窗口输出的结果是( )。
Private Sub Form_Click( )
x="a":y="b"
z=1:u=2
Debug.Print x;y,z;u
Debug.Print z;x,y;u
End Sub
A. ab 12
B. ab 12
C. ab 12
D. ab 12
[单项选择]以下程序运行后输出的结果是 ______。
Option Base 1
Private Sub Form_Click( )
Dim A(20)
For K=1 To 20
A(K)=K^2
Next K
Print A(K)
End Sub
A. 20
B. 441
C. 400
D. 出错信息
[单项选择]以下程序段运行后,消息框的输出结果是( )。
a=l0
b=20
c=a<b
MsgBox c+l
A. -1
B. 0
C. 1
D. 2
[单项选择]以下程序段运行后,消息框的输出结果是( )。
a=sqr(3)
b=sqr(2)
c=a>b
Msgbox c+2
A. -1
B. I
C. 2
D. 出错
[单项选择]以下程序段运行后,消息框的输出结果是______。
a=sqr(3)
b=sqr(2)
c=a>b
Msgbox c+2
A. -1
B. 1
C. 2
D. 出错
[单项选择]下列程序段运行后窗体上输出结果为( )。
Private Sub Command1 Click( )
a=5:b=4:c=3:d=2
X=3>2*b Or a=c And b<>C Or c>d
Print X
End Sub
A. 1
B. True
C. False
D. 2
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
struct st
int x,y; data[2]=1,10,2,20;
main( )
struet st *p=data;
printf("%d,",p->y);printf("%d/n",(++p)->x);

A. 10,1
B. 20,1
C. 10,2
D. 20,2
[单项选择]有如下程序,运行后输出的是( )。
Option Base 1
Private Sub Commandl_click( )
Dim aj(1 To 10)
Forj=6 To 10
aj(j)=j*2
Nextj
Printaj(1)+aj(j)
End Sub
A. 5
B. 20
C. 22
D. 显示出错信息
[单项选择]以下程序运行后的输出结果是
#include <stdio.h>
main( )
char a=4:
printf("%d/n",a=a<<1);

A. 40
B. 16
C. 8
D. 4
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
int i,j;
for(i=3;i>=1;i--)
for(j=1;j<=2;j++)printf("%d",i+j);
printf("/n");


A. 2 3 4
B. 4 3 2
C. 2 3
D. 4 5
[单项选择]以下程序运行后的输出结果是 void swap(int x, int y) {int t; t=x;x=y;y=t; } main( ) {int a=15, b=16; swap(a, b); printf("% d % d", a, b); }
A. 15, 16
B. 16, 15
C. 15, 15
D. 16, 16
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
int x=1,y=2,z=3;
it(x>y)
if(y<z) printf("%d",++z);
else printf("%d",++y);
printf("%d/n",x++);

A. 331
B. 41
C. 2
D. 1
[单项选择]下面程序运行后的输出结果是_____。
struct abc

int a,b,c;

main( )

struct abc s[2]=1,2,3,4,5,6;
int t=s[0].a+s[1].b;
printf("%d/n",t);

[单项选择]以下程序运行后,输出结果是( )。
#define PT 5.5
#define S(x)PT*x*x
#include<stdio.h>
main( )
int a=1,b=2;
prinf("%4.1f/n",S(a+b));
A. 49.5
B. 9.5
C. 22
D. 45.0
[单项选择]下面程序运行后的输出结果是______。
struct abc

int a,b,c;

main( )

struct abc s[2]=1,2,3,4,5,6;
int t=s[0].a+s[1].b;
printf("%d/n",t);

[单项选择]以下程序运行后的输出结果是
#include <stdio.h>
int fun(int a,int b)
if(b==0) return a;
else return(fun(--a,--b));

main( )
printf("%d/n",fun(4,2));
A. 1
B. 2
C. 3
D. 4
[单项选择]以下程序运行后的输出结果是______。
int d=1;
fun(int p)
static int d=5;d+=p
printf("%d,d");retum d;

main( )
int a=3;printf("%d/n",fun(a+fun(d) ));
A. 699
B. 9
C. 61515
D. 6615
[单项选择]以下程序运行后的输出结果是______。
int d=1:
fun(int p)
static int d=5;d+=p;
printf("%d",d);return d;

main( )
int a=3;printf("%d/n",fun(a+fun(d)));
A. 699
B. 669
C. 61515
D. 6615

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码