题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-11-06 19:12:55

[单项选择]下列程序段的输出结果是 String MyStr = "Hello,"; MyStr = MyStr + "World!"; System.out.println(MyStr);
A. Hello,World!
B. Hello,
C. World!
D. 该程序段有语法错误

更多"下列程序段的输出结果是 String MyStr = 'Hel"的相关试题:

[单项选择]下列程序段的输出结果是 ( ) String MyStr="Hello,"; MyStr=MyStr+"World!"; System.out.println(MyStr);
A. Hello,World!
B. Hell
C. World!
D. 该程序段有语法错误
[单项选择]下列程序段的输出结果是( )。 String MyStr="Hello,"; Mystr=MyStr + "World!"; System.out.println(Mystr);
A. Hello,World!
B. Hello,
C. World!
D. 该程序段有语法错误
[单项选择]下列程序段的输出结果是( )。 String MyStr="Hello,"; MyStr=MyStr+ "World!"; System.out.println(MyStr);
A. Hello, World!
B. Hello,
C. World!
D. 该程序段有语法错误
[单项选择]下列程序段的输出结果是( )。 String MyStr = "Hello,"; MyStr = MyStr + "World!"; System.out.println(MyStr);
A. 表示m > n为true或m < n为true的表达式为m > n & & m < n
B. switch语句结构中必须有default语句
C. if 语句结构中必须有else语句
D. 如果至少有一个操作数为true,则包含“||”运算符的表达式为true
[单项选择]执行下列程序段之后,输出的结果是( )。 public class Test{ public static void main(String[ ] args) { byte a = 2; short b = 3; long c = 4; c=a%b*4%b; System. out. println(c) ; } }
A. 2
B. 1
C. -1
D. -2
[单项选择]执行以下程序段,如果在对话框中输入8,输出结果是"Hello"的是______。
A. n = InputBox("请输入一个数") Select Case n Case 7 To 1 Print "Hello" End Select
B. n = InputBox("请输入一个数") Select Case n Case Is>1, Is < 6 Print "Hello" End Select
C. n = InputBox("请输入一个数") Select Case n Case Is > 5, 1, 3 To 10 Print "Hello" End Select
D. n=InputBox("请输入一个数") Select Case n Case 1, 5, Is > 9 Print "Hello" End Select
[单项选择]执行下列程序段后,输出的结果是 For k1 = 0 To 4 y =20 For k2 = 0 To 3 y=10 For 16 = 0 To 2 y=y+10 Next Next Next Print y
A. 90
B. 60
C. 40
D. 10
[单项选择]下列程序段的输出结果是( )。
public class operatorsandexpressions
public static void main(String [] agrs)
int a=3,b=4,c=5;
System.out.pfintln("abc"+3);


A. 15
B. abc3
C. 256
D. 63

我来回答:

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

订单号:

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