下面的程序执行后,文件test中的内容是()。voidfun(char*fnam...n("test","hello,");}
举一反三
- 以下操作能实现追加写入文件的是 A: echo "hello" > /tmp/test B: echo "hello" >> /tmp/test C: print "hello\n" >> /tmp/test D: printf "hello\n" >> /tmp/test
- 以下程序的输出结果是:( )fo = open("text.txt",'w+')x,y ='this is a test','hello'fo.write('{}+{}\n'.format(x,y))print(fo.read())fo.close() A: this is a test hello B: this is a test C: this is a test,hello. D: this is a test+hello
- 以下哪个JSON格式是正确的: A: {"test":"hello"} B: ["test":"hello"] C: {"test":"hello":"world"} D: {"test"}
- 请阅读下面的程序 class Test { private static String name; static { name = "World"; System.out.print (name); } public static void main(String[] args) { System.out.print("Hello"); Test test = new Test(); } } 下列选项中,程序运行结果是
- 执行下面程序段后,输出的结果是__. char s1[50] = {"some string *"},s2[] = {"test"}; printf("%s ",starcat(s1,s2));