CÓïÑÔ

a=d/100%9;

b=(-1)&&(-1);

printf(\

A)6,1 B)2,1 C)6,0 D)2,0 ´ð°¸ÎªB

49. ÏÂÁгÌÐò¶ÎµÄÊä³ö½á¹ûÊÇ£¨£©¡£ int x=1 , y=1 , z;

z=1||++x&&y--;

printf(\

A) 1£¬1£¬1 B£© 2£¬0£¬1 C£©2£¬1£¬1 D£©2£¬0£¬0 ´ð°¸ÎªA

50. ÏÂÁгÌÐòµÄÔËÐнá¹ûÊÇ( )£® #include

main( ) £ûunsigned a,b,c; a=0x255; b=a<<4;

x=(~b)&0xff ; printf(\ A)0x55 B)0xaf C)0x50 D)0xda ´ð°¸ÎªB

51. ÈôÓж¨Òåint a=25,b=14,c=19;ÔòÒÔÏÂÈýÄ¿ÔËËã·û¹¹³ÉµÄÓï¾äµÄÖ´Ðнá¹ûÊÇ( )

a++<=25&&b--<=2&&c++ ? pritnf(\

A)25,14,19 B)26,13,19 C)25,13,19 D)26,14,19 ´ð°¸ÎªB

52. ÒÔϳÌÐòµÄÊä³ö½á¹ûÊÇ£¨ £©£® main( )

{int a=-1,b=4,k;

k=(++a,1)&&!b-->=0;

printf(\

A)1,0,4 B)1,0,3 C)0,0 3 D)0,0,4 ´ð°¸ÎªC

Èý¡¢¶àÑ¡Ìâ

1. ½á¹¹»¯³ÌÐòÉè¼Æ˼ÏëÓ¦¸Ã°üÀ¨£¨ £©¡£ (A)ʹÓÃ˳Ðò¡¢·ÖÖ§¡¢Ñ­»·ÈýÖÖ»ù±¾½á¹¹£» (B)ÏÞÖÆʹÓÃgotoÓï¾ä£»

(C)Ó¦¸ÃʹÓÃ×Ô¶¥ÏòÏ¡¢Öð²½Ç󾫵ķ½·¨£»

(D)Ó¦¸ÃʹÓÃÄ£¿é»¯µÄ·½·¨£»

(E)±àÂë¹ý³ÌÖУ¬±äÁ¿ÃûµÄÃüÃûÖ»Òª³ÌÐòÔ±×Ô¼ºÃ÷°×¾Í¿ÉÒÔÁË£» ´ð°¸ÎªABCD

2. ¶ÔÓÚscanf()º¯Êý£¬ÏÂÁÐ˵·¨µÄÊÇ£¨ £©¡£

A)Èç¹ûÏàÁÚ¸ñʽ·ûÖ®¼äûÓÐÊý¾Ý·Ö¸ô£¬Ôò¶ÔÓ¦µÄÊäÈëÊý¾ÝÖ®¼ä¿ÉÓÿոñ¡¢»Ø³µ·Ö¸ô¡£ B)ÊäÈëÊý¾Ýʱ²»ÄÜÖ¸¶¨¾«¶È¡£

C)ÔÚÓøñʽ˵Ã÷·û\ÊäÈëµ¥¸ö×Ö·ûʱ£¬¿Õ¸ñ×Ö·ûºÍתÒå×Ö·ûÊÇÎÞЧ×Ö·û£¬¼´²»Äܱ»ÊäÈë¡£

D)Óöµ½¿Õ¸ñ¡¢»òÕ߻سµÊ±£¬ÏµÍ³ÈÏΪһ¸öÊý¾ÝÊäÈë½áÊø¡£

´ð°¸ÎªABD

3. ÒÑÖªchÊÇ×Ö·ûÐͱäÁ¿£¬ÏÂÃæµÄ¸³ÖµÓï¾äÊÇ£¨ £©¡£

A)ch£½''123''£» B) ch£½''\\xff''£» C)ch£½''t''£» D)ch£½\£» ´ð°¸ÎªBC

4. ÈôÓж¨Òåint a,b; float x;£¬ÔòÒÔϲ»µÄ¸³ÖµÓï¾äÊÇ( )¡£ A)a=1,b=2£¬ B)b++£» C)a=b=5 D)b=int(x); ´ð°¸£ºA,C,D ´ð°¸ÎªACD

4Õ Ìõ¼þÓï¾ä Ò»¡¢ÅжÏÌâ

1. ÔÚif...elseÓï¾äÖУ¬else×ÜÊǺÍËüÉÏÃæ×î½üÇÒδÔøÅä¶ÔµÄifÅä¶Ô¡££¨ £© ´ð°¸Îª¡Ì 2. ÔÚif£¨<±í´ïʽ>£© <Óï¾äÐòÁÐ1> else<Óï¾äÐòÁÐ2>ÖеÄÓï¾äÐòÁÐ1ºÍÓï¾äÐòÁÐ2¿ÉÒÔΪ¸´ºÏÓï¾ä¡££¨ £© ´ð°¸Îª¡Ì 3. CÓïÑÔÔÚÅжÏÒ»¸öÁ¿ÊÇ·ñΪÕæʱ£¬ÒÔ·Ç0Öµ´ú±í¡°Õ桱£¬ÒÔ0Öµ´ú±í¡°¼Ù¡±¡££¨ £© ´ð°¸Îª¡Ì

4. ÓëÏÂÁгÌÐò¶ÎµÈ¼ÛµÄ¸³ÖµÓï¾äÊÇ y=x>0?1:x<0?-1:0 ( ) ´ð°¸Îª¡Á if(x>0)y=1; else if(x<0) y=-1; else y=0; ¶þ¡¢µ¥Ñ¡Ìâ

1. ÓÐÈçϳÌÐò main( )

{ float x=4.0,y;

if(x<0.0) y=0.0;

else if(x<10.0) y=1.0/x; else y=1.0;

printf(¡°%f\\n¡±,y); }

¸Ã³ÌÐòµÄÊä³ö½á¹ûÊÇ £¨ £©

A) 0.0 B) 0.25 C) 0.5 D) 1.0 ´ð°¸ÎªB

2. ΪÁ˱ÜÃâǶÌ×µÄif-elseÓï¾äµÄ¶þÒåÐÔ£¬CÓïÑԹ涨else×ÜÊÇÓ루£©×é³ÉÅä¶Ô¹Øϵ¡£ (A)ËõÅÅλÖÃÏàͬµÄif (B)ÔÚÆä֮ǰδÅä¶ÔµÄif (C)ÔÚÆä֮ǰδÅä¶ÔµÄ×î½üµÄif (D)ͬһÐÐÉϵÄif ´ð°¸ÎªC

3. ΪÁ˱ÜÃâǶÌ×µÄif-elseÓï¾äµÄ¶þÒåÐÔ£¬CÓïÑԹ涨else×ÜÊÇÓ루 £©×é³ÉÅä¶Ô¹Øϵ¡£ £¨A£©Ëõ½øλÖÃÏàͬµÄif £¨B£©ÔÚÆä֮ǰδÅä¶ÔµÄif £¨C£©ÔÚÆä֮ǰ×î½üµÄδÅä¶ÔµÄif £¨D£©Í¬Ò»ÐÐÉϵÄif ´ð°¸ÎªC

4. Éèint a=0,b=5,c=2;Ñ¡Ôñ¿ÉÖ´ÐÐx++µÄÓï¾äÊÇ£¨ £©¡£ £¨A£©if(a) x++ £¨B£©if(a=b) x++; £¨C£©if(a=

´ð°¸ÎªB

5. ÏÂÁгÌÐò¶ÎÔËÐкó£¬xµÄÖµÊÇ£¨ £©¡£ int a,b,c,x; a=b=c=0;x=35; if(!a) x--; else if(b); if(c) x=3;

else x=4;

A£©3 B£©4 C£©34 D£©35 ´ð°¸ÎªB

6. ÈôÒªÇóÔÚifºóÒ»¶ÔÔ²À¨ºÅÖбíʾa²»µÈÓÚ0µÄ¹Øϵ£¬ÔòÄܱíʾÕâÒ»¹ØϵµÄ±í´ïʽΪ A)a<>0 B)!a C)a=0 D)a ´ð°¸ÎªD

7. ¼Ù¶¨ËùÓбäÁ¿¾ùÒѶ¨Ò壬 ok1=1; ok2=2; ok3=3; x=15; if(!ok1) x--;

else if (ok2) if (ok3) x=3; else x=4;

ÉÏÃæ³ÌÐò¶ÎÔËÐкóxµÄÖµÊÇ:£¨ £©

A)14 B)4 C)15 D)3 ´ð°¸ÎªD

8. ÔÚCÓïÑÔµÄifÓï¾äÖУ¬ÓÃ×÷Åжϵıí´ïʽΪ( )£®

A)¹Øϵ±í´ïʽ B)Âß¼­±í´ïʽ C)ËãÊõ±í´ïʽ D)ÈÎÒâ±í´ïʽ

´ð°¸ÎªD

9. ÒÔϳÌÐòµÄÔËÐÐÇé¿öÊÇ( ) £® #inlcude

void main( )

{int x=3,y=0,z=0;

if (x=y+z) printf(\ else printf(\

A)ÓÐÓï·¨´í0²»ÄÜͨ¹ý±àÒë B)Êä³ö**** C)¿ÉÒÔͨ¹ý±àÒë, ²»ÄÜͨ¹ýÁ¬½Ó, ²»ÄÜÔËÐÐ D)Êä³ö####

´ð°¸ÎªD

10. ÈôÒªÇóÔÚifºóÒ»¶ÔÔ²À¨ºÅÖбíʾcountµÈÓÚ0µÄ¹Øϵ£¬ ÔòÄܱíʾÕâÒ»¹ØϵµÄ±í´ïʽΪ( )

A) count B) ! count C) count=0 D) count!=0 ´ð°¸ÎªB

11. ÒÔϳÌÐòµÄÊä³ö½á¹ûÊÇ£¨ £©¡£ #include main()

{ int a=1,b=4,c=2;

float y=4.0,z;

z=(a+b)/c+sqrt((double)y)*1.2/c; printf(%f\\n\

}

A)3.500000 B)3.700000 C)3.200000 D)4.400000 ´ð°¸ÎªC

12. ÈôÓж¨Òåint x,y;ÏÂÃæÑ¡ÏîÖкϷ¨µÄifÓï¾ä£¨ £© (A)if(a==b)x++; (B)if(a=b)x++; (£Ãif(a=>b)x++; ´ð°¸ÎªA

13. ÏÂÃæ³ÌÐòµÄÊä³öÊÇ£¨ £©¡£ #include main( )

{int x=100,a=10,b=20; int v1=5,v2=0; if (a

if (v2) x=10;

x=-1;

printf(\ }

(A)100 (B)-1 (C)1 (D)10 ´ð°¸ÎªB

14. ÓÐÒ»CÓïÑÔÔ´³ÌÐòÈçÏ£º main()

{ int a,b=-1;scanf(\

if(a) if(a>0) b=1; else b=0; }

¸Ã³ÌÐòËù±íʾµÄÊýѧº¯Êý¹ØϵÊÇ£¨ £©

15. ÔËÐÐÏÂÁгÌÐò²¢ÓüüÅÌÊäÈë53,48,32 ºó£¬ÔÚÆÁÄ»ÉϵÄÄÚÈÝÊÇ£¨ main () {

int i,j,k;

scanf (\ &j, &k); if (i>50) printf(\ else if (i>40) printf(\ else if (i>30) printf(\ else printf(\}

¡£ £©

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