£¨ÍêÕû°æ£©CÓïÑÔ¿¼ÊÔÌâ¿â¼°´ð°¸

while (n++<=2) printf(\

A) 012 B) 123 C) 234 D) ´íÎóÐÅÏ¢

86¡¢ÏÂÃæ³ÌÐò¶ÎµÄÔËÐнá¹ûÊÇ___D_____. int x=0,y=0;

while (x<15) y++,x+=++y; printf(\

A) 20,7 B) 6,12 C) 20,8 D)8,20 87¡¢ÏÂÃæ³ÌÐòµÄÔËÐнá¹ûÊÇ___B_____.

#include void main() { int s=0,i=1; while (s<=10) { s=s+i*i; i++; }

printf(\ }

A) 4 B) 3 C) 5 D) 6

88¡¢º¯ÊýpiµÄ¹¦ÄÜÊǸù¾ÝÒÔϽüËƹ«Ê½Çó¦ÐÖµ£º____C______

(¦Ð*¦Ð)/6=1+1/(2*2)+1/(3*3)+..+1/(n*n) ÇëÌî¿Õ£¬Íê³ÉÇó¦ÐµÄ¹¦ÄÜ¡£

#include void main( )

{ double s=0.0; int i,n; scanf(\ for(i=1;i<=n;i++) s=s+_______ ; s=(sqrt(6*s)); printf(\ }

A) 1/i*i B) 1.0/i*i C) 1.0/(i*i) D) 1.0/(n*n)

89¡¢ÏÂÃæ³ÌÐò¶ÎµÄÔËÐнá¹ûÊÇ____B____.

for(x=10;x>3;x--) { if(x%3) x--; --x; --x;

printf(\ }

A) 6 3 B) 7 4 C) 6 2 D) 7 3

90¡¢ÏÂÃæ³ÌÐòµÄÔËÐнá¹ûÊÇ____D_____.

#include void main( ) { int a,b; a=-1; b=0; do {

++a; ++a; b+=a;

} while(a<9); printf(\ }

A) 34 B) 24 C) 26 D) 25 91¡¢ÏÂÃæ³ÌÐò¶ÎµÄÔËÐнá¹ûÊÇ_____D______.

for(i=1;i<=5;) printf(\ i++;

A) 12345 B) 1234 C) 15 D) ÎÞÏÞÑ­»·

92¡¢ÏÂÃæ³ÌÐòµÄÊä³ö½á¹ûÊÇ_____B_____.

#include void main( ) { int n=4;

while (n--) printf(\ }

A) 2 0 B) 3 1 C) 3 2 1 D) 2 1 0

93¡¢ÒÔϳÌÐòÔËÐкóµÄÊä³ö½á¹ûÊÇ___D_____.

#include void main() { int i=10,j=0; do

{ j=j+1; i--; }while(i>2); printf(\ }

A) 50 B) 52 C) 51 D) 8

94¡¢ÒÔϺ¯ÊýµÄ¹¦ÄÜÊÇ£ºÇóxµÄy´Î·½£¬ÇëÌî¿Õ.____C______

#include void main() { int i,x,y; double z;

scanf(\ for(i=1,z=x;i

printf(\ }

A) i++ B) x++ C) x D) i

- 9 -

95¡¢ÓÐÈçϳÌÐò

#include void main() { int x=23; do

{ printf(\ }while(!x); }

¸Ã³ÌÐòµÄÖ´Ðнá¹ûÊÇ___B____

A) 321 B) 23

C) ²»Êä³öÈκÎÄÚÈÝ D) ÏÝÈëËÀÑ­»· 96¡¢ÒÔϳÌÐò¶ÎµÄÖ´Ðнá¹ûÊÇ____C____.

int i,j,m=0;

for(i=1;i<=15;i+=4) for(j=3;j<=19;j+=4) m++;

printf(\

A) 12 B) 15 C) 20 D) 25

97¡¢ÏÂÃæ³ÌÐòµÄÊä³ö½á¹ûÊÇ______A_____.

#include void main( ) { int i;

for(i=1;i<6;i++)

{ if (i%2!=0) {printf(\ printf(\ }

printf(\ }

A) #*#*# B) ##### C) ***** D) *#*#*

98¡¢ÏÂÃæ³ÌÐòµÄÊä³ö½á¹ûÊÇ____D______.

#include void main( )

{ int x=10,y=10,i; for(i=0;x>8;y=++i)

printf(\ }

A) 10 1 9 2 B) 9 8 7 6 C) 10 9 9 0 D) 10 10 9 1

99¡¢Ö´ÐÐÒÔϳÌÐòºó£¬Êä³öµÄ½á¹ûÊÇ_____D_____.

#include void main( ) { int y=10; do {y--;} while (--y);

printf(\ }

A) -1 B) 1 C) 8 D) 0

100¡¢ÓÐÈçϳÌÐò

#include void main( ) { int n=9;

while(n>6) {n--;printf(\ }

¸Ã³ÌÐò¶ÎµÄÊä³ö½á¹ûÊÇ_____B_____.

A) 987 B) 876 C) 8765 D) 9876 101¡¢ÓÐÈçϳÌÐò

#include void main( ) { int i,sum=0;

for(i=1;i<=3;sum++) sum+=i; printf(\ }

¸Ã³ÌÐòµÄÖ´Ðнá¹ûÊÇ______C_____.

A) 6 B) 3 C) ËÀÑ­»· D) 0

102¡¢ÒÔÏÂÑ­»·ÌåµÄÖ´ÐдÎÊýÊÇ___D____

#include void main( ) { int i,j;

for(i=0,j=1; i<=j+1; i+=2, j--) printf(\ }

A) 3 B) 2 C) 1 D) 0

103¡¢ÔÚÖ´ÐÐÒÔϳÌÐòʱ£¬Èç¹û´Ó¼üÅÌÉÏÊäÈ룺ABCdef<»Ø³µ>£¬ÔòÊä³öΪ____B____.

#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(\ }

printf(\ }

A) ABCdef B) abcDEF C) abc D) DEF

104¡¢ÏÂÃæ³ÌÐòµÄÊä³ö½á¹ûÊÇ____D______.

main( ) {

int i,k=0, a=0, b=0;

- 10 -

for(i=1;i<=4;i++)

{

k++;

if (k%2==0) {a=a+k; continue;} b=b+k; a=a+k; }

printf(\ }

A) k=5 a=10 b=4 B) k=3 a=6 b=4 C) k=4 a=10 b=3 D) k=4 a=10 b=4

105¡¢Ö´ÐÐÏÂÃæ³ÌÐò¶Îºó,kµÄÖµÊÇ____D_____. int i,j,k;

for(i=0,j=10;i

A) 9 B) 11 C) 8 D) 10

106¡¢ÏÂÃæ³ÌÐòÊǼÆËãn¸öÊýµÄƽ¾ùÖµ,ÇëÌî¿Õ.____B___

#include void main( ) { int i,n;

float x,avg=0.0; scanf(\ for(i=0;i

A) i B) x C) x D) i avg/i avg/n avg/x avg/n

107¡¢ÒÔϳÌÐòµÄ¹¦ÄÜÊÇ:´Ó¼üÅÌÉÏÊäÈëÈô¸É¸öѧÉúµÄ³É¼¨, ͳ¼Æ²¢Êä³ö×î¸ß³É¼¨ºÍ×îµÍ³É¼¨,µ±ÊäÈ븺Êýʱ½áÊøÊäÈë¡£ÇëÌî¿Õ¡£___D_____

#include void main( )

{ float x,amax,amin; scanf(\ amax=x; amin=x;

while (________ )

{ if (x>amax) amax=x; if (______) amin=x; scanf(\ }

printf(\ }

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

108¡¢ÔĶÁÒÔϳÌÐò£¬³ÌÐòÔËÐкóµÄÊä³ö½á¹ûÊÇ__B____.

#include void main( ) { int x;

for(x=5;x>0;x--)

if (x--<5) printf(\ else printf(\ }

A) 4,3,2 B) 4,3,1, C) 5,4,2 D) 5,3,1, 109¡¢ÒÔϳÌÐò¶ÎµÄÊä³ö½á¹ûÊÇ____C____.

int k,n,m;

n=10;m=1;k=1;

while (k<=n) {m*=2;k+=4;} printf(\

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

110¡¢ÏÂÃæ³ÌÐòµÄÊä³ö½á¹ûÊÇ____B_____.

#include void main( ) {int y=9; for(;y>0;y--) {if(y%3==0)

{printf(\ continue;} } }

A) 741 B) 852 C) 963 D) 875421

111¡¢ÏÂÃæ³ÌÐòµÄÊä³ö½á¹ûÊÇ____B____.

#include void main( ) {int x=3; do {

printf(\ }while(!(--x)); }

A) 1 B) 1 -2 C) 3 0 D)ÊÇËÀÑ­»·

112¡¢¶¨ÒåÈçϱäÁ¿: int n=10;

ÔòÏÂÁÐÑ­»·µÄÊä³ö½á¹ûÊÇ___B____.

while(n>7)

{ n--; printf(\

A) 10 B) 9 C) 10 D) 9

- 11 -

9 8 9 8 8 7 8 7 7 6

113¡¢Óï¾äwhile(!e);ÖеÄÌõ¼þ !e µÈ¼ÛÓÚ____A____. A) e==0 B) e!=1 C) e!=0 D) ~e

114¡¢ÒÔÏÂÐðÊöÕýÈ·µÄÊÇ_____B____.

A) continueÓï¾äµÄ×÷ÓÃÊǽáÊøÕû¸öÑ­»·µÄÖ´ÐÐ

B) Ö»ÄÜÔÚÑ­»·ÌåÄÚºÍswitchÓï¾äÌåÄÚʹÓÃbreakÓï¾ä C) ÔÚÑ­»·ÌåÄÚʹÓÃbreakÓï¾ä»òcontinueÓï¾äµÄ×÷ÓÃÏàͬ

D) ´Ó¶à²ãÑ­»·Ç¶Ì×ÖÐÍ˳öʱ,Ö»ÄÜʹÓÃgotoÓï¾ä 115¡¢ÔÚÏÂÁÐÑ¡ÏîÖУ¬Ã»Óй¹³ÉËÀÑ­»·µÄ³ÌÐò¶ÎÊÇ___D_.

A) int i=100; B) for( ; ; ); while (1) { i=i0+1;

if (i>100) break; }

C) int k=1000; D) int s=36; do {++k;} while (k>=1000); while (s) --s;

116¡¢ÏÂÃæ³ÌÐòµÄÊä³ö½á¹ûÊÇ____A_____.

#include void main( ) { int i;

for(i=1;i<=5;i++)

{ if (i%2) printf(\ else continue; printf(\ }

printf(\ }

A) *#*#*#$ B) #*#*#*$ C) #*#*$ D) *#*#$

117¡¢ÏÂÃæ³ÌÐò¶ÎÖÐ,Ñ­»·ÌåµÄÖ´ÐдÎÊýÊÇ____C_____.

int a=10,b=0;

do {b+=2;a-=2+b;} while(a>=0);

A) 4 B) 5 C) 3 D) 2

118¡¢ÈôiΪÕûÐͱäÁ¿,ÔòÒÔÏÂÑ­»·Óï¾äµÄÑ­»·´ÎÊýÊÇ_B_.

for(i=2;i==0;) printf(\

A) ÎÞÏÞ´Î B) 0´Î C) 1´Î D) 2´Î

119¡¢CÓïÑÔÖÐwhile ºÍdo-while Ñ­»·µÄÖ÷ÒªÇø±ðÊÇ.__A__

A) do-whileµÄÑ­»·ÌåÖÁÉÙÎÞÌõ¼þÖ´ÐÐÒ»´Î

B) while µÄÑ­»·¿ØÖÆÌõ¼þ±Èdo-while µÄÑ­»·¿ØÖÆÌõ¼þÑϸñ

C) do-while ÔÊÐí´ÓÍⲿתµ½Ñ­»·ÌåÄÚ D) do-while µÄÑ­»·Ìå²»ÄÜÊǸ´ºÏÓï¾ä

120¡¢¶ÔÓÚfor(±í´ïʽ1;;±í´ïʽ3)¿ÉÀí½âΪ______B____.

A) for(±í´ïʽ1;0;±í´ïʽ3) B) for(±í´ïʽ1;1;±í´ïʽ3)

C) for(±í´ïʽ1;±í´ïʽ1;±í´ïʽ3) D) for(±í´ïʽ1;±í´ïʽ3;±í´ïʽ3)

121¡¢ºÏ·¨µÄÊý×鶨ÒåÊÇ___D_____.

A) int a[6]={\ B) int a[5]={0,1,2,3,4,5}; C) char a={\ D) char a[]={0,1,2,3,4,5}; 122¡¢ÒªÇóÏÂÃæµÄ³ÌÐòÔËÐкó£¬ÏÔʾÈçϽá¹û£º

2 10 4 6 1 5 2 3 2 4 7 8 5 1 3 2

Ôò³ÌÐòÖеĻ®Ïß´¦Ó¦ÌîÈë___B_____.

#include void main( )

{ int a[4][4]={ ________ }; int i,j;

for(i=0;i<4;i++)

{for(j=0;j<4;j++) printf(\ printf(\ }

A) {1,5,2,3},{2,4,7,8},{5,1,3,2}

B) {2,10,4,6},{1,5,2,3},{2,4,7,8},{5,1,3,2} C) {5,1,3,2},{2,4,7,8},{1,5,2,3}

D) {2,1,2,5},{10,5,4,1},{4,2,7,3},{6,3,8,2}

123¡¢¸ø³öÒÔ϶¨Òå:

char x[ ]=\

char y[ ]={'a','b','c','d','e','f','g'}; ÔòÕýÈ·µÄÐðÊöΪ ___C_____. A) Êý×éxºÍÊý×éyµÈ¼Û

B) Êý×éxºÍÊý×éyµÄ³¤¶ÈÏàͬ

C) Êý×éxµÄ³¤¶È´óÓÚÊý×éyµÄ³¤¶È D) Êý×éxµÄ³¤¶ÈСÓÚÊý×éyµÄ³¤¶È

124¡¢¶¨ÒåÈçϱäÁ¿ºÍÊý×é:

int i;

int x[4][4]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};

- 12 -

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ì滻Ϊ@)