CÓïÑÔ»ú¿¼¸´Ï°Ìâ(2012Äê-12ÔÂ)
Ò»¡¢µ¥Ñ¡
1.ÒÔÏÂ˵·¨ÖÐÕýÈ·µÄÊÇ( C )
A) CÓïÑÔ³ÌÐò×ÜÊÇ´ÓµÚÒ»¸öµÄº¯Êý¿ªÊ¼Ö´ÐÐ
B) ÔÚCÓïÑÔ³ÌÐòÖÐ,Òªµ÷Óõĺ¯Êý±ØÐëÔÚmain()º¯ÊýÖж¨Òå C) CÓïÑÔ³ÌÐò×ÜÊÇ´Ómain()º¯Êý¿ªÊ¼Ö´ÐÐ
D) CÓïÑÔ³ÌÐòÖеÄmain()º¯Êý±ØÐë·ÅÔÚ³ÌÐòµÄ¿ªÊ¼²¿·Ö 2.ÏÂÑ¡ÏîÖв»ÊÇÓï¾äµÄÊÇ( C )¡£
A) {int i; i++; printf(¡°%d\\n¡±,i);} B) ;
C) a=5,c=10 D) { ; }
3.ÒÔÏÂÑ¡ÏîÖв»ÄÜ×÷ΪCÓïÑԺϷ¨³£Á¿µÄÊÇ ( A) A) 'cd' B) 0.1e+6 C) \D) '\\011'
4.Èôx,a,bºÍc¾ùÊÇintÐͱäÁ¿ÔòÖ´Ðбí´ïʽx=(a=1,b=2)ºóxµÄ½á¹ûΪ( B)¡£ A) 1 B) 2 C) 3
D) ²»È·¶¨
5.ÒÔÏÂÄÜÕýÈ·¶¨ÒåÕûÐͱäÁ¿a,bºÍc²¢ÎªÆ丳³õÖµ1µÄÓï¾äÊÇ( D )¡£ A) int a=b=c=1; B) int a,b,c=1; C) a=b=c=1;
D) int a=1,b=1,c=1;
6.×Ö·û´®\ÖеÄ×Ö·ûÊý(²»Ë㡯\\0¡¯)Ϊ( D ) A) 5 B) 14 C) 8 D) 4
7.¶ÔÁ½¸ö¾²Ì¬º¯ÊýAºÍB½øÐÐÈçϳõʼ»¯ char A[]=\
char B[]={'A','B','C','D','E','F'}; ÔòÏÂÁÐÐðÊöÕýÈ·µÄÊÇ( D )¡£
A) AºÍBÍêÈ«Ïàͬ B) AºÍBÖ»Êdz¤¶ÈÏàµÈ
C) AºÍB²»ÏàͬAÊÇÖ¸ÕëÊý×é D) AÊý×鳤¶È±ÈBÊý×鳤 8.ÈôÓÐÒÔ϶¨Òå char a;int b; float c;double d;
Ôò±í´ïʽa*b+d-cÖµµÄÀàÐÍΪ( D ) A) float B) int C) char D) double
9.ÔÚCÓïÑÔÖÐÔËËã¶ÔÏó±ØÐëÊÇÕûÐÍÊýµÄÔËËã·ûÊÇ( A ) A) % B) / C) %ºÍ\\ D) **
10.ÓÐÒÔϳÌÐò main()
{ int x, y, z; x=y=1;
z=x++,y++,++y;
printf(\ }
³ÌÐòÔËÐкóµÄÊä³ö½á¹ûÊÇ ( C ) A) 2,3,3 B) 2,3,2 C) 2,3,1 D) 2,2,1
11.ÒÔÏÂÑ¡ÏîÖе±xΪ´óÓÚ1µÄÆæÊýʱֵΪ0µÄ±í´ïʽÊÇ( D) A) x%2==1 B) x/2 C) x%2!=0 D) x%2==0
12.ÒÔϳÌÐòµÄÊä³ö½á¹ûÊÇ( C )¡£ main() {
int x=10,y=3;
printf(\} A) 0 B) 1 C) 3
D) ²»È·¶¨µÄÖµ
13.ÈôaΪintÀàÐÍÇÒÆäֵΪ3ÔòÖ´ÐÐÍê±í´ïʽa+=a-=a*aºóaµÄÖµÊÇ( C ) A) -3 B) 9 C) -12 D) 6
14.ÒÑÖª×Ö·ûAµÄASCIIÂëΪʮ½øÖƵÄ65ÏÂÃæ³ÌÐòµÄÊä³öÊÇ( A ) main()H {
char ch1,ch2; ch1='A'+'5'-'3'; ch2='A'+'6'-'3';
printf(\ }
A) 67,D B) B,C C) C,D D) ²»È·¶¨µÄÖµ 15.ÓÐÒÔϳÌÐò main() {
char a='a',b; printf(\ printf(\}
³ÌÐòÔËÐкóµÄÊä³ö½á¹ûÊÇ ( A ) A) b,b B) b,c C) a,b D) a,c
16.Éèa¡¢b¡¢c¡¢d¡¢m¡¢n¾ùΪintÐͱäÁ¿ÇÒa=5¡¢b=6¡¢c=7¡¢d=8¡¢m=2¡¢n=2Ôò
Âß¼±í´ïʽ(m=a>b)&&(n=c>d)ÔËËãºónµÄֵΪ( C)
A) 0 B) 1 C) 2 D) 3
17.Éèx¡¢y¡¢t¾ùΪintÐͱäÁ¿ÔòÖ´ÐÐÓï¾äx=y=3;t=++x||++y;ºóyµÄֵΪ( C ) A) ²»¶¨Öµ B) 4 C) 3 D) 1
18.ÓÐÒÔϳÌÐò¶Î int k=0;
while(k=1)k++;
whileÑ»·Ö´ÐеĴÎÊýÊÇ( A ) A) ÎÞÏÞ´Î
B) ÓÐÓï·¨´í²»ÄÜÖ´ÐÐ C) Ò»´ÎÒ²²»Ö´ÐÐ D) Ö´ÐÐ1´Î
19.ÄÜÕýÈ·±íʾÂß¼¹Øϵ¡°a>=10»òa<=0¡±µÄCÓïÑÔ±í´ïʽÊÇ( D ) A) a>=10 or a=10 B) a>=0|a<=10 C) a>=10&&a<=0 D) a>=10||a<=0
20.±íʾ¹Øϵx¡Üy¡ÜzµÄcÓïÑÔ±í´ïʽΪ( A) A) (x<=y)&&(y<=z) B) (x<=y)AND(y<=z) C) (x<=y<=z) D) (x<=y)&(y<=z)
21.ÉèÓÐint a=1, b=2, c=3, d=4, m=3, n=3; Ö´ÐÐ (m=a>b)||(n=c>d)ºónµÄֵΪ( A )¡£ A) 0 B) 1 C) 2 D) 3
22.ÒÔϹØÓÚÂß¼ÔËËã·ûÁ½²àÔËËã¶ÔÏóµÄÐðÊöÖÐÕýÈ·µÄÊÇ ( D )