CÓïÑÔÁ·Ï°Ìâ¼°´ð°¸1 ÏÂÔر¾ÎÄ

ÄÚÈÝ·¢²¼¸üÐÂʱ¼ä : 2024/11/14 14:31:33ÐÇÆÚÒ» ÏÂÃæÊÇÎÄÕµÄÈ«²¿ÄÚÈÝÇëÈÏÕæÔĶÁ¡£

3¡¢ÒÔÏ£¨ C £©ÊÇÕýÈ·µÄ×Ö·û³£Á¿¡£

A. \

4¡¢ÏÂÃæ²»ÕýÈ·µÄ×Ö·û´®³£Á¿ÊÇ £¨ A £©

A) 'abc' B) \6¡¢ÒÔÏÂÁгöCÓïÑÔ³£Á¿ÖУ¬´íÎóµÄÊÇ__B____¡£ A£ºOxFF B£º1.2e0.5 C£º2L D£º'\\72' 7¡¢ÒÔÏÂÑ¡ÏîÖУ¬·Ç·¨µÄ×Ö·û³£Á¿ÊÇ___C___¡£ A£º'\\t' B£º'\\17' C£º\£º'\\xaa' µÚÈý½Ú Êý¾ÝÀàÐÍ 1.ÕûÐÍÊý¾Ý

1¡¢ÒÔÏÂÑ¡ÏîÖв»ÊôÓÚCÓïÑÔµÄÀàÐ͵ÄÊÇ__D____¡£ A£ºsigned short int B£ºunsigned char C£ºsinged long D£ºlong short

2¡¢ÒÔÏÂÑ¡ÏîÖпÉ×÷ΪCÓïÑԺϷ¨ÕûÊýµÄÊÇ___C___¡£ A£º10110B B£º0386 C£º0Xffa D£ºx2a2 2.ʵÐÍÊý¾Ý

1¡¢ÒÔÏÂÑ¡ÏîÖÐÊôÓÚCÓïÑÔµÄÊý¾ÝÀàÐÍÊÇ___C___¡£ A£º¸´ÊýÐÍ B£ºÂß¼­ÐÍ C£ºË«¾«¶ÈÐÍ D£º¼¯ºÏÐÍ

2¡¢ÈôÒѶ¨ÒåxºÍyΪdoubleÀàÐÍ£¬Ôò±í´ïʽx=1,y=x+3/2µÄÖµÊÇ___C___¡£ A£º1 B£º2 C£º2.0 D£º2.5

3¡¢Éè±äÁ¿xΪfloatÐÍÇÒÒѸ³Öµ£¬ÔòÒÔÏÂÓï¾äÖÐÄܽ«xÖеÄÊýÖµ±£Áôµ½Ð¡ÊýµãºóÁ½Î»£¬²¢½«µÚÈýλËÄÉáÎåÈëµÄÊÇ___C___¡£

A£ºx=x*100+0.5/100.0; B£ºx=(x*100+0.5)/100.0

C£ºx=(int)(x*100+0.5)/100.0; D£ºx=(x/100+0.5)/100.0; 4¡¢ÒÔÏ·ûºÏCÓïÑÔÓï·¨µÄʵÐͳ£Á¿ÊÇ__C____¡£ A£º1.2E0.5 B£º3.14159E C£º.5E-3 D£ºE15 3.×Ö·ûÐÍÊý¾Ý

1¡¢ÅжÏcharÐͱäÁ¿chÊÇ·ñΪ´óд×ÖĸµÄÕýÈ·±í´ïʽÊÇ____C_____¡£ A¡¢¡®A¡¯<=ch<=¡®Z¡¯ B¡¢¡®A¡¯<=ch and ch<=¡®Z¡¯ C¡¢¡®A¡¯<=ch && ch<=¡®Z¡¯ D¡¢¡®A¡¯<=ch || ch<=¡®Z¡¯ 2. ÉèÓÐÓï¾ächar a='\\72';Ôò±äÁ¿a ( A ) ¡£

A£©°üº¬1¸ö×Ö·û B£©°üº¬2¸ö×Ö·û C£©°üº¬3¸ö×Ö·û D£©ËµÃ÷²»ºÏ·¨ 3. ÅжϱäÁ¿chÖеÄ×Ö·ûÊÇ·ñΪÊý×Ö×Ö·û£¬×î¼òµ¥µÄÕýÈ·±í´ïʽÊÇ£¨ D £©¡£ A£©ch>=0&&ch<=9 B£©¡¯0¡¯<=ch<=¡¯9¡¯

C£©ch>=¡¯0¡¯||ch<=¡¯9¡¯ D£©ch>=¡¯0¡¯&&ch<=¡¯9¡¯ 4¡¢ÉèÓÐ˵Ã÷Óï¾ä: char a = '\\72'; Ôò±äÁ¿a __A____¡£

A£º°üº¬1¸ö×Ö·û B£º°üº¬2¸ö×Ö·û C£º°üº¬3¸ö×Ö·û D£ºËµÃ÷²»ºÏ·¨ 5¡¢ÒÑÖª´óд×ÖĸAµÄASCIIÂëÊÇ65£¬Ð¡Ð´×ÖĸaµÄASCIIÂëÊÇ97£¬ÔòÓð˽øÖƱíʾµÄ×Ö·û³£Á¿'\\101'ÊÇ___A___¡£

A£º×Ö·ûA B£º×Ö·ûa C£º×Ö·ûe D£º·Ç·¨µÄ³£Á¿ 6¡¢ÈôÓÐÒÔ϶¨ÒåºÍÓï¾ä£º char c1='b',c2='e';

printf(\ÔòÊä³ö½á¹ûÊÇ___B____

A£º2,M B£º3,E C£º2,e D£ºÊä³ö½á¹û²»È·¶¨

7¡¢ÒÑÖª×Ö·ûAµÄASCIIÂëΪʮ½øÖƵÄ65£¬ÏÂÃæ³ÌÐòµÄÊä³öÊÇ__A___ main() {

char ch1,ch2; ch1='A'+'5'-'3'; ch2='A'+'6'-'3';

printf(\}

A£º67,D B£ºB,C C£ºC,D D£º²»È·¶¨µÄÖµ

8¡¢Èô±äÁ¿cΪcharÀàÐÍ£¬ÄÜÕýÈ·ÅжϳöcΪСд×ÖĸµÄ±í´ïʽÊÇD A£º'a'<=c<= 'z' B£º(c>= 'a')||(c<= 'z') C£º('a'<=C)and ('z'>=c) D£º(c>= 'a')&&(c<= 'z') 4.ÀàÐÍת»»

1¡¢±í´ïʽ ¡®f¡¯+ 10 µÄÀàÐÍÊÇ____A_______¡£

A¡¢int B¡¢char C¡¢double D¡¢float 2¡¢ÉèaºÍb¾ùΪdoubleÐͳ£Á¿£¬ÇÒa=5.5¡¢b=2.5£¬Ôò±í´ïʽ(int)a+b/bµÄÖµÊÇ___D___¡£

A£º6.500000 B£º6 C£º5.500000 D£º6.000000 µÚËÄ½Ú ¸³ÖµÓï¾ä

1¡¢ÈôÓж¨Ò壺int a=2; ÔòÕýÈ·µÄ¸³Öµ±í´ïʽÊÇ£¨ A £©¡£ A. a-=(a*3) B. double(-a) C. a*3 D. a*4=3

2¡¢ÈôaΪintÀàÐÍ£¬ÇÒÆäֵΪ3£¬ÔòÖ´ÐÐÍê±í´ïʽa+=a-=a*aºó£¬aµÄÖµÊÇ£¨ C £©

A) ¨C3 B) 9 C) ¨C12 D) 6 3¡¢ÇëÑ¡³öºÏ·¨µÄCÓïÑÔ¸³ÖµÓï¾ä__B____¡£

A£ºa=b=58 B£ºi++; C£ºa=58,b=58 D£ºk=int(a+b); 4¡¢Èô±äÁ¿ÒÑÕýÈ·¶¨Òå²¢¸³Öµ£¬ÏÂÃæ·ûºÏCÓïÑԵıí´ïʽÊÇ___B___¡£ A£ºa:=b+1 B£ºa=b=c+2 C£ºint 18.5%3 D£ºa=a+7=c+b 5¡¢Èô±äÁ¿a¡¢iÒÑÕýÈ·¶¨Ò壬ÇÒiÒÑÕýÈ·¸³Öµ£¬ºÏ·¨µÄÓï¾äÊÇ__B____¡£ A£ºa==1 B£º++i; C£ºa=a++=5 D£ºa=int(i); 6¡¢ÒÔÏ·Ƿ¨µÄ¸³ÖµÓï¾äÊÇ__C____¡£

A£ºn=(i=2,++i); B£ºj++; C£º++(i+1); D£ºx=j>0; 7¡¢ÒÔÏÂÑ¡ÏîÖзǷ¨µÄ±í´ïʽÊÇ___D___¡£

A£º0<=x<100 B£ºi=j==0 C£º(char)(65+3) D£ºx+1=x+1 8¡¢ÈôÒÔÏÂÑ¡ÏîÖеıäÁ¿ÒÑÕýÈ·¶¨Ò壬ÔòÕýÈ·µÄ¸³ÖµÓï¾äÊÇ___C___¡£ A£ºx1=26.8%3; B£º1+2=x2; C£ºx3=0x12; D£ºx4=1+2=3; µÚÎå½Ú ¸´ÔÓ±í´ïʽ 1.×ÔÔö¡¢×Ô¼õÔËËã·û

1¡¢Éèx¡¢y¾ùΪÕûÐͱäÁ¿£¬ÇÒx=10£¬y=3£¬ÔòÒÔÏÂÓï¾äµÄÊä³ö½á¹ûÊÇprintf(¡°%d,%d\\n¡±,x--,--y);£¨ D £©

A)10,3 B)9,3 C)9,2 D)10,2

2¡¢ÉèiΪÕûÐͱäÁ¿£¬ÇÒֵΪ100£¬ÔòÓï¾ä£«£«i£»Ö´ÐкóiµÄÖµÊÇ____B_____¡£

A¡¢100 B¡¢101 C¡¢102 D¡¢Óï¾ä´í 3. ÒÔϳÌÐòµÄÊä³ö½á¹ûÊÇ ( B ) ¡£ # include main()

{

int i=010 , j = 10;

printf(\}

A) 11,10 B) 9,10 C) 010,9 D) 10,9 4.ÏÂÁгÌÐòµÄÔËÐнá¹ûÊÇ( A ) # define A 5 # define B A+1 main( ) {int a; a=B;

printf(¡å%d\\n¡åa--); }

A.6 B.5 C.4 D.³ö´í 5¡¢ÒÔϳÌÐòµÄÊä³ö½á¹ûÊÇ___A___¡£ #include main() {

int i=10,j=10;

printf(\

}

A£º11,10 B£º9,10 C£º010,9 D£º10,9