更多"下列程序段的输出结果是( )。
String MyS"的相关试题:
[单项选择]下列程序段的输出结果是 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. 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