题目内容

以下程序段的输出结果是_______.int k,n,m;n=10;m=1;k=1;while (k<=n) {m*=2;k+=4;}printf("%d\n",m);

A. 4
B. 16
C. 8
D. 32

查看答案
更多问题

以下程序的功能是:从键盘上输入若干个学生的成绩, 统计并输出最高成绩和最低成绩,当输入负数时结束输入。请填空。________#includevoid main( ){ float x,amax,amin;scanf("%f",&x);amax=x;amin=x;while (________ ){ if (x>amax) amax=x;if (______) amin=x;scanf("%f",&x);}printf("\namax=%f\namin=%f\n",amax,amin);

A. x<=0x>amin
B. x>0x<=amin
C. x>0x>amin
D. x>=0x

在执行以下程序时,如果从键盘上输入:ABCdef<回车>,则输出为________.#include void main( ){ char ch;while ((ch=getchar( ))!='\n'){ if (ch>='A' && ch<='Z') ch=ch+32;else if (ch>='a' && ch<'z') ch=ch-32;printf("%c",ch);}printf("\n");}

ABCdef
B. abcDEF
C. abc
DEF

Which of the following advantages of the Internet is not mentioned in Paragraph 1?

A. Watching movies.
Buying goods online.
C. Using online maps.
D. Communicating with friends.

Cars are mentioned in Paragraph 2 to show ______.

A. the Internet can provide maps to guide drivers in traffic jams
B. people can solve air pollution and traffic jams by using the Internet
C. the Internet, like cars, brings convenience and causes problems at the same time
D. the negative effects they cause

答案查题题库