【单选题】【消耗次数:1】
文本文件quiz.txt的内容为"Programming"(不包含引号),以下程序段的运行结果是()。FILE*fp;char*str;if((fp=fopen("quiz.txt","r"))!=NULL)str=fgets(str,7,fp);printf("%s",str);
Progr
Progra
Program
Programming
参考答案:
复制
纠错
相关题目
【单选题】 以下程序运行后,文件test.txt的内容是()。#includestdio.hmain(){FILE*fp;charstr[][10]={"first","second"};fp=fopen("test.txt","w");if(fp!=NULL)fprintf(fp,"%s",str[0]);fclose(fp);fp=fopen("test.txt","w");if(fp!=NULL)fprintf(fp,"%s",str[1]);fclose(fp);}
①  first
②  second
③  firstsecond
④  secondfirst
【单选题】 在采访中,记者既要"身入",又要"心入"。"心入",就是要有强烈的社会责任感, 要对客观事物进行由表及里的分析,还要().
①  A.广泛地接触群众
②  B.多方面地挖掘材料
③  C.细心地掂量各种材料的价值
④  D.细心地掂量各种材料的价值
【多选题】 Whatdoestheword&quot;steal&quot;(thelastpara.)mean?<br/>
【判断题】 新闻用事实说话,即写出事实并把事实说清楚,是&quot;根据事实来描写事实&quot;而不是&quot;根据希望来描写事实&quot;().
①  正确
②  错误
【单选题】 执行下面程序:main(){intx=1,y=1,z=1;x=x+++y+++z++;printf(&quot;%d,%d,%d&quot;,x,++y,z++);}输出的结果为()
①  4,3,2
②  3,3,2
③  3,3,3
④  3,2,2
【判断题】 在消息写作上,要力求避免所谓的&quot;三重复&quot;,是指避免标题、导语、主体的重复().
①  正确
②  错误
【单选题】 F.H.奥尔波特(1924)指出,社会心理学是&quot;研究个体的社会行为和()的学科&quot;。
①  A.社会心理
②  B.社会意识
③  C.社会知觉
④  D.社会观念
【判断题】 习近平总书记在党的十九届五中全会上提出&quot;新发展理念&quot;,是指:创新、协调、绿色、法治、共享。
①  正确
②  错误
【多选题】 “丝绸之路经济带&quot;涉及以下哪些省份?
①  A.新疆
②  B.重庆
③  C.陕西
④  D.甘肃
【单选题】 哪个省最早提出了“四换三名&quot;?
①  A.广东
②  B.浙江
③  C.江苏
④  D.福建
随机题目
【单选题】 My sister is good [填空] showing.
①  in
②  on
③  at
④  for
【单选题】 I [填空] the book yesterday.
①  read
②  reading
③  readed
④  reads
【单选题】 We wont [填空] free this evening.
①  is
②  are
③  be
④  being
【判断题】 When I saw him, he was cleaninging his room.
①  正确
②  错误
【判断题】 Some girls is singing in the classroom now.
①  正确
②  错误
【单选题】 We will go outside if it [填空] tomorrow.
①  don't rain
②  didn't rain
③  doesn't rain
④  isn't rain
【单选题】 Jim was good at [填空] .
①  draw
②  drawing
③  draws
④  drawed
【单选题】 Did you [填空] a party last weekend?
①  had
②  have
③  has
④  having
【单选题】 [填空] play football in the public area.
①  Don't
②  Doesn't
③  Do
④  Does
【单选题】 [填空] one do you prefer?
①  What
②  Which
③  How
④  Whose