1、C ,C+(120)1. Cmain( C )A. B. C. D. 2. ( B )A. +1e+1 5e-9.4 03e2B. -.60 12e-4 -8e5C. 123e 1.2e-.4 +2e-1D. -e3 .8e-4 5.e-03. a=-14,b=3, a#define F(y) 8.19-y#define PRINT(a) printf(“%d“,(int)(a)void main(void)int x=2;PRINT(x*F(3);A. 10 B. 13 C. 11 D. 11. ( C )A. A. void main(void)unionint n;float x; co
2、mm=1;printf(“%d“,comm.n);B. B. void main(void)unionint n;float x; comm=12.5;printf(“%f“,comm.x);C. C. void main(void)unionfloat x;int n; comm=12.5printf(“%f“,comm.x);D. D. void main(void)unionint n;float x; comm=5;printf(“%d“, comm.n);12. int a=1,*p= float b=2.0; char c=A; ( A)A. p+; B. a-; C. b+; D
3、. c-;13. scanfa-( B )main()int *p,*q,a,b;p=printf(“input a:“);scanf(“%d“,*p);-A. *ppB. *pa aC. *ppD. *pp14. numabcintnum=(a=4,b=16,c=32);num( C )A. 4 B. 16 C. 32 D. 5215. ,a1,a2,c1,c210,20,AB,( C ),(: _ )int al,a2,char c1,c2;scanf(“%d%c%d%c“,A. 10A_20_B B. 10_A_20_B C. 10A20B D. 10A20_B16. int a10;
4、a(C )A. a10 B. a3.5 C. a5-3 D. a-117. C, ;( A)A. B. C. D. 18. a( C )A. in a10=(0,0.0,0,0);B. int a10=; C. int a0;D. int a10=10*1;19. ( C )x=-1;dox=x*x;while(! x);A. - B. -C. - D. 20. do-while-( B )A. do-while-B. do-while-dowhilewhile()C. do-while-while(“)D. do-while-(115)1. CT2. T3. whiledo-while-T4
5、. -continue-F5. 01T6. int a34=0a000 T7. T8. T9. 0F10. F11. F12. T13. 14. i+i15. (15)1. if a0,( ABC ).Aa=a void main(void)float x,y,z,sum;scanf(“%f%f%“,sum=fun1( )+ fun1 ( );printf(“sum=%fn“,sum);float fun1(float a,float b)float num;num=a/b;return num;(220)1. :/6=1/(11)+1/(22)+1/(33)+., 10e-6#include
6、 #include void main(void)long i=1; pi=0;while (i*i1)#includeint age(int n)int c;if (n=1) c=10;else c= ;return c;4. void main(void)int year,yes;scanf(“%d“,if (year%400=0) yes=1;else if ( ) yes=1;else ;if(yes) printf(“%d is “,year);else printf(“%d is not “,year);printf(“a leap year.n“);5. : ,void main
7、(void)int x,y,z,c;scanf(“%d %d %d“,if ( ) c=y;y=z;z=c;if ( ) c=x;x=z;z=c;if ( ) c=x;x=y;y=c;printf(“%d,%d,%d“,x,y,z);(120)1. Cfloat( );double( )1A) c B) C) W D) 2C+:A) WHILE B) user C) _1var D) 9stars3_int i=0;while(i#include class CRectprivate:char color10;int left;int top;int length;int width;publ
8、ic:CRect();CRect(char *c, int t, int lef, int len, int wid);void SetColor(char *c);void SetSize(int l=100, int w=100);void Move(int t,int l);void Draw();CRect:CRect()strcpy(color, “Black“);top = 0;left = 0;length = 0;width = 0;CRect:CRect(char *c, int t, int lef, int len, int wid)strcpy(color, c);top = t;left = lef;length = len;width = wid;void CRect:SetColor(char *c)strcpy(color, c);void CRect:SetSize(int l, int w)length=l;