重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 计算机科学与技术
网友您好,请在下方输入框内输入要搜索的题目:
搜题
拍照、语音搜题,请扫码下载APP
扫一扫 下载APP
题目内容 (请给出正确答案)
[单选题]

下列程序段的输出结果是()。public class operatorsandExpressions{ void stringPlus(){ int x=3,y=4,z=5; System.out.println(x+y+z); } }

A.以上答案均不正确

B.xyz

C.x+y+z

D.12

答案
查看答案
更多“下列程序段的输出结果是()。public class operatorsandExpressions{ void stringPlus(){ int x=3,y=4,z=5; System.out.p…”相关的问题

第1题

下列程序段输出的结果是_______。public class NewClass { public static void main(String args[]){ int x=0; boolean b1,b2,b3,b4; b1=b2=b3=b4=true; x=(b1|b2&b3^b4)?++x:x--; System.out.printl
下列程序段输出的结果是_______。public class NewClass { public static void main(String args[]){ int x=0; boolean b1,b2,b3,b4; b1=b2=b3=b4=true; x=(b1|b2&b3^b4)?++x:x--; System.out.printl

A.-1

B.0

C.1

D.2

点击查看答案

第2题

下列程序段的输出结果是()。 public class operatorsandExpressions{ void stringPlus(){ int xhps0@@3,yhps0@@4,zhps0@@5; System.out.println(x y z); } }

A.以上答案均不正确

B.xyz

C.x y z

D.12

点击查看答案

第3题

下列程序段的输出结果是 ACCEPT TO A IF A=[123456] S=0 ENDIF S=1 ?S RETURN

A.0

B.1

C.由A的值决定

D.程序出错

点击查看答案

第4题

下面程序段的输出结果为_______。public class Test { public static void main(String args
[]){ char c1,c2,c3; c1='H'; c2='\\'; c3='\115'; System.out.print(c1); System.out.print(c2); System.out.print(c3);

A.H\M

B.H\\\115

C.H115

D.无输出

点击查看答案

第5题

程序段int a=1234;print("%d\n",a,);的输出结果是()。

A.12

B.34

C.1234

D.提示出错无结果

点击查看答案

第6题

下面程序段的输出结果为()。public class MethLoad {public static void main(String args[]
{MethLoad classObj=new MethLoad();classObj.methTest(4);classObj.methTest(4.0);}void methTest(double d){double sum=2*d};}

A.The result is:16 The result is:8.0

B.The result is:8.0 The result is:16

C.The result is:8 The result is:16.0

D.The result is:16.0 The result is:8

点击查看答案

第7题

下列程序段中具有相同值的是()。class Base{int b;}; class Base1:virtual public base{int b1;}; class Base2:virtual public base{int b2;}; class derived:public base1,base 2{int b3;}; derived d

A.d.b与d.base1::b

B.d.base1::b与d.base1::b1

C.d.b与d.b3

D.d.base2::b与d.base2::b2

点击查看答案

第8题

下列程序的输出结果是()。 #include void fun(); void main() { int x=1; if(x= =1) { int x=2; printf(“%d”,++x); } void fun() { printf(“%d”,x++);}

A.2,1,1

B.1,2,1

C.2,2,2

D.2,2,1

点击查看答案

第9题

“阅读下面程序 class ex3124 { public static void main(String [] args) { boolean b=true; if(b){ int i=1;} else { int i=2;}System.out.println(i);}} 现在想先编译再运行该程序,结果是()

A.运行出错

B.编译出错

C.2

D.1

点击查看答案

第10题

执行下面的程序段后,j的值为_______。public class NewClass { public static void main(String args[]){ int i=0x00E; int j=~i; System.out.print(j); } }

A.14

B.-14

C.-15

D.15

点击查看答案

第11题

下列程序段的输出结果为

A.a&b=2 a|b=22 a<>b=5

B.a&b=2 a|b=22 a<>b=2

C.a&b=20 a|b=22 a<>b=2

D.a&b=20 a|b=22 a<>b=5

点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝