WTO is short for World Trade Organization.()
第1题:
下列程序段的输出结果是 ( ) String MyStr="Hello,"; MyStr=MyStr+"World!"; System.out.println(MyStr);
A.Hello,World!
B.Hello.
C.World!
D.该程序段有语法错误
第2题:
第3题:
13、Java程序向显示器输出信息“Hello, World”,下列哪种写法是错误的?
A.System.out.print(“Hello, world” );
B.System.out.println(“Hello, world” );
C.System.out.print(“Hello, world\n” );
D.printf(“Hello, world\n” );
第4题:
下列语句中正确的是
A.char*myString="Hello-World!";
B.char myString="Hello-World!";
C.char myString[11]=”Hello-World!”;
D.char nlyString[12]="Hello-World!";
第5题:
以下定义常量不正确的语句是()
AConst Num As Integer=200
BConst Num1 As Long=200, Sstr$="World"
CConst Sstr$="World"
DConst Num$=#World#
第6题:
下列定义字符串类string对象的语句中,错误的是()。
A.string str;
B.string str(“Hello, world” );
C.string str = “Hello, world”;
D.string str = ‘Hello, world’;