• 2022-06-05 问题

    world = "world"str = 'hello'print str+world 的结果为 A: helloworld B: hello world C: hello "world" D: 语法错误

    world = "world"str = 'hello'print str+world 的结果为 A: helloworld B: hello world C: hello "world" D: 语法错误

  • 2022-06-05 问题

    运行print(“\”hello world\)将输出() A: helloworld B: hello world" C: "hello world D: hello world

    运行print(“\”hello world\)将输出() A: helloworld B: hello world" C: "hello world D: hello world

  • 2022-07-24 问题

    在使用MapReduce程序WordCount进行词频统计时,对于文本行“hello hadoop hello world”,经过WordCount程序的Map函数处理后直接输出的中间结果,应该是下面哪种形式: A: <"hello",1,1>、<"hadoop",1>和<"world",1> B: <"hello",2>、<"hadoop",1>和<"world",1> C: <"hello",<1,1>>、<"hadoop",1>和<"world",1> D: <"hello",1>、<"hello",1>、<"hadoop",1>和<"world",1>

    在使用MapReduce程序WordCount进行词频统计时,对于文本行“hello hadoop hello world”,经过WordCount程序的Map函数处理后直接输出的中间结果,应该是下面哪种形式: A: <"hello",1,1>、<"hadoop",1>和<"world",1> B: <"hello",2>、<"hadoop",1>和<"world",1> C: <"hello",<1,1>>、<"hadoop",1>和<"world",1> D: <"hello",1>、<"hello",1>、<"hadoop",1>和<"world",1>

  • 2022-06-15 问题

    以下程序段中能够正确实现p和q中两个字符串互换的是: A: char p[10]="hello", q[10]= "world", *t;strcpy(t,p); strcpy(p,q); strcpy(q,t); B: char p[10]= "hello", q[10]= "world", *t;t=p; p=q; q=t; C: char p[10]= "hello", q[10]= "world", t[10];strcpy(t,p); strcpy(p,q); strcpy(q,t); D: char p[10]= "hello", q[10]= "world", t[10];t=p; p=q; q=t;

    以下程序段中能够正确实现p和q中两个字符串互换的是: A: char p[10]="hello", q[10]= "world", *t;strcpy(t,p); strcpy(p,q); strcpy(q,t); B: char p[10]= "hello", q[10]= "world", *t;t=p; p=q; q=t; C: char p[10]= "hello", q[10]= "world", t[10];strcpy(t,p); strcpy(p,q); strcpy(q,t); D: char p[10]= "hello", q[10]= "world", t[10];t=p; p=q; q=t;

  • 2022-06-30 问题

    以下涉及字符串数组、字符指针的程序片段,没有编译错误的是( )。 A: char line[]; line="============="; B: char* name[10], *str; name = "Hello World"; C: char str1[10],str2[10]= "prog.c"; str1 = str2; D: char name[10],*str = "Hello World";

    以下涉及字符串数组、字符指针的程序片段,没有编译错误的是( )。 A: char line[]; line="============="; B: char* name[10], *str; name = "Hello World"; C: char str1[10],str2[10]= "prog.c"; str1 = str2; D: char name[10],*str = "Hello World";

  • 2022-06-15 问题

    以下涉及字符串数组、字符指针的程序段,不会产生编译错误的是( )。 A: char* str, name[10]; str = "Hello World"; B: char* str, name[10]; name = "Hello World"; C: char str1[10]= "prog.c", str2[10]; str2 = strl; D: char head_line[]; head_line ="=============";

    以下涉及字符串数组、字符指针的程序段,不会产生编译错误的是( )。 A: char* str, name[10]; str = "Hello World"; B: char* str, name[10]; name = "Hello World"; C: char str1[10]= "prog.c", str2[10]; str2 = strl; D: char head_line[]; head_line ="=============";

  • 2022-06-09 问题

    TempStr=“Hello World”可以输出"world"子串的是( ) A: print(TempStr[-5:-1]) B: print(TempStr[-5:]) C: print(TempStr[-4:-1]) D: print(TempStr[-5:0])

    TempStr=“Hello World”可以输出"world"子串的是( ) A: print(TempStr[-5:-1]) B: print(TempStr[-5:]) C: print(TempStr[-4:-1]) D: print(TempStr[-5:0])

  • 2022-05-27 问题

    有如下代码:public class Test{ public static void main(String args[]) { String str = new String("World"); char ch[] = {'H','e','l','l','o'}; change(str,ch); System.out.println(str + "and" + ch); } public static void change(String str, char ch[]) { str = "Changed"; ch[0] = ' C'; }}运行后输出的结果是: A: Changed and Cello B: World and Cello C: World and CelloChanged and Hello D: World and Hello

    有如下代码:public class Test{ public static void main(String args[]) { String str = new String("World"); char ch[] = {'H','e','l','l','o'}; change(str,ch); System.out.println(str + "and" + ch); } public static void change(String str, char ch[]) { str = "Changed"; ch[0] = ' C'; }}运行后输出的结果是: A: Changed and Cello B: World and Cello C: World and CelloChanged and Hello D: World and Hello

  • 2022-06-09 问题

    给出如下代码st="Hello,World" , 可以输出“World”子串的是( ) A: print(st[5:0])  B: print(st[6:])  C: print(st[5:11])  D: print(st[6:0]) 

    给出如下代码st="Hello,World" , 可以输出“World”子串的是( ) A: print(st[5:0])  B: print(st[6:])  C: print(st[5:11])  D: print(st[6:0]) 

  • 2022-06-06 问题

    String str = "HelloWorld!";System.out.print(str.subString(5,10)); A: oWorl B: oWorld C: World D: World!

    String str = "HelloWorld!";System.out.print(str.subString(5,10)); A: oWorl B: oWorld C: World D: World!

  • 1 2 3 4 5 6 7 8 9 10