若定义cin>>str;当输入Hello World!,所得的结果是str= ______。
A.Hello World!
B.Hello
C.World
D.Hello World
第1题:
若已知char str[20];,有语句cin>>str; 当输入为: This is a program 所得的结果是str=( )。
A.This is a program
B.This
C.This is
D.This is a
第2题:
下列程序段的输出结果是( )。 String MyStr="Hello,"; Mystr=MyStr + "World!"; System.out.println(Mystr);
A.Hello,World!
B.Hello,
C.World!
D.该程序段有语法错误
第3题:
设char str1[11]="HELLO,",str2[10]=“world”;则执行语句 cout<<strlen(strcpy(str1,str2)));后的输出结果是 ______。
A.12
B.11
C.7
D.5
第4题:
下列程序段的输出结果是 ( ) String MyStr="Hello,"; MyStr=MyStr+"World!"; System.out.println(MyStr);
A.Hello,World!
B.Hello.
C.World!
D.该程序段有语法错误
第5题:
若定义cin>str;当输入Object Windows Programming!所得的结果是str()
A.Object Windows Programming!
B.Object
C.Object Windows
D.Object Windows Programming