题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-11 15:37:24

[单项选择]以下程序运行后输出的结果是 ______。
a = 12.3
b=-123
m=Len(Str$(A)+Str$(B))
Print m
End
A. 9
B. 5
C. 7
D. 8

更多"以下程序运行后输出的结果是 ______。 a = 12.3 b="的相关试题:

[单项选择]以下程序运行后的输出结果是
#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
[单项选择]以下程序运行后的输出结果是
#include <stdio.h>
main( )
char a=4:
printf("%d/n",a=a<<1);

A. 40
B. 16
C. 8
D. 4
[单项选择]以下程序运行后输出的结果是 ______。
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. 出错信息
[单项选择]以下程序运行后的输出结果是
#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
[单项选择]以下程序运行后的输出结果是
#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>
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
[单项选择]阅读以下程序,写出程序运行后的输出结果是 ______。
#include<iostream.h>
void main( )
char a[]='H','e','1','1','o','/0';
int i,j;
i=sizeof(
A. /sizeof(char);
[单项选择]以下程序运行后,输出结果是( )。
#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
[单项选择]以下程序运行后的输出结果是______。
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
[单项选择]以下程序运行后的输出结果是_______。
int d=1;
fun(int p)
printf(%d",d);return d;

main( )
int a=3; printf("%/n",fun(a+fun(d)));
A. 699
B. 669
C. 61515
D. 6615
[单项选择]以下程序运行后,输出结果是______。
#include<stdio.h>
ss (char *s)
char *p=s;
while(*.p)p++;
return(p-s);main( )
char *a="abded";
int i;
i=ss((A);
print ("%d/n",i);

A. 8
B. 7
C. 6
D. 5
[单项选择]以下程序段运行后,消息框的输出结果是( )。
a=l0
b=20
c=a<b
MsgBox c+l
A. -1
B. 0
C. 1
D. 2
[单项选择]以下程序运行后的输出结果是______。
main ( )
int y=18,i=0,j,a[8];
do
a[i]=y%2;i++;
y=y/2;
while(y>=1);
for(j=i-1;j>=0;j--)printf("%d",a[j]);
printf("/n");

A. 1000
B. 10010
C. 00110
D. 10100
[单项选择]以下程序段运行后,消息框的输出结果是( )。
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 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
[单项选择]以下程序段输出的结果是( )。
char str[]="BCDE",*ptr=str;
cout<<*(ptr+4)<<endl;
A. 0
B. 69
C. 字符E的地址
D. 一个空字符

我来回答:

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

订单号:

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