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

[单选题]下面程序的运行结果是 :# i nclude "stdio.h" main() {int
A,b; for(a=1,b=1;a=20) break; if(b%3==1) {b+=3;continue;} b-=5;} printf("%d\n",a);}
A.7
B.8
C.9
D.10

更多"[单选题]下面程序的运行结果是 :# i nclude 'stdio."的相关试题:

[单选题]下面程序的运行结果是#i nclude main() { int num= 0; while(num
A.1 2 3 4
B.1 2 3
C.1 2
D.1
[单选题]下面程序的运行结果是 #i nclude main() {int a==1,b=10; do {b-=a;a++;}while(b--
A.a=3,b=11
B.a=2,b=8
C.a=1, b=-1
D.a=4,b=9
[单选题]下面程序的运行结果是 : #i nclude main() {int i,b,k=0; for(i=1;i< =5;i++) {b=i%2; while(b-->=0) k++; } printf("%d,%d",k,b); }
A.3,-1
B.8,-1
C.3,0
D.8,-2
[单选题]下面程序运行的结果是? 1.String s = "Hello" + 9 + 1; 2.System.out.println(s);
A.Hello10
B.Hello91
C.Hello10.0
D.程序编译失败
[单选题]下面程序的运行结果是() String str1 = "hello"; String str2 = "he" + new String("llo"); System.err.println(str1 == str2);
A.true
B.false
C.1
D.0
[单选题]下面程序段的运行结果是 :for (y= 1;y
A.x=27,y=27
B.x=12,y=13
C.x=15,y=14
D.x=y=27
[单选题]下面程序段的运行结果是 if n=0; while(n++
A.2
B.3
C.4
D.有语法错误
[单选题]下面程序段的运行结果是 : x = y= 0; while(x
A.20,7
B.6,12
C.20,8
D.8,20
[单选题]下面程序的运行结果是 #indude main() {int y=10; do{y--;} while(--y); printf("%d\n",y--); }
A.-1
B.1
C.8
D.0
[单选题]下面程序的运行结果是main() {int i,j,a=0; for (i=0;i
A.4
B.5
C.6
D.7
[单选题]以下程序的结果是()。
Int
A,b;
Void fun()
{ a=10; b=20; }
Main()
{ int a=5,b=7;
Fun();
Printf("%d%d\n",a,b);
}
A.1020
B.57
C.2010
D.75
[单选题]阅读下面的程序,运行结果是()。 main() { char *str="ABCabcd"; bubble(str,5); printf("\n%s",str); } bubble(str,count) char *str; int count; { int i,j=count; char tmp; while(j-->1) for(i=0;iA.bacdCBA
B.baCBAcd
C.cdbaCBA
D.bCBAacd
[单选题]以下程序的输出结果是()。
Main()
{ int
A,b;
For(a=1,b=1;a<=100;a++)
{ if(b>=10) break;
If(b%3==1)
{ b+=3; continue; }
}
Printf("%d\n",a);
}
A.101
B.6
C.5
D.4
[单选题]分析下面的C#代码,该程序的运行结果是( ) int index=1; int[] foo=new int[3]; int bar=foo[index]; int baz=bar+index; Console.WriteLine(baz);
A.0
B.1
C.2
D.编译错误
[单选题]分析下面的C#代码,该程序的运行结果是( )。 int x=1; String[]names={"A","B","C"}; names[--x]+=","; for(int i=0;iA.打印输出A,BC
B.打印输出AB,C
C.打印输出ABC,
D.打印输出ABC
[单选题]若执行下面的程序时从键盘上输入3和4,
Main()
{ int
A,b,s;
Scanf("%d %d",&a,&b);
S=a;
If(aS=s*s;
Printf("%d\n",s);
}
则输出是()。
A.9
B.16
C.18
D.20
[单选题]下面程序的运行结果:() public class NULL { public static void haha(){ System.out.println("haha"); } public static void main(String[] args) { ((NULL)null).haha(); } }
A.无法正常运行
B.NULL
C.haha
D.null
[单选题]下面程序的运行结果:() public static void main(String args[]) { Thread t = new Thread() { public void run() { pong(); } }; t.run(); System.out.print("ping"); } static void pong() { System.out.print("pong"); }
A.pingpong
B.pongping
C.pingpong和pongping都有可能
D.都不输出
[单选题]在C#程序中,下述程序的运行结果是( ) int c; c = 2; Console.WriteLine(c); Console.WriteLine (c++); Console.WriteLine (c);
A.2 2 2
B.2 3 3
C.2 2 3
D.3 4 4

我来回答:

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

订单号:

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