A. 0,3,4 B. 1,1,2 C. 1,2,3 D. 0,2,3
A. 30 B. 20 C. 10 D. 3030
A. i=2,j=1,k=3 B. i=1,j=1,k=2 C. i=4,j=2,k=4 D. i=1,j=1,k=3
A) if(x>y); B) if (x==y) x+=y; C) if (x!=y) scanf(“%d”,&x) else scanf(“%d”,&y) D) if (x<y) {x++;y++;}
A) if (x<0) y=-1;else if(x==0) y=0; else y=1; B) y=-1;if (x!=0)if(x>0) y=1;else y=0; C. y=0; if (x>=0) {if (x>0) y=1;}else y=-1; D. if(x>=0) if(x>0) y=1; else y=0;else y=-1;
A. a) if(grade='A') score=100; else if(grade='B') score=90; else if(grade='C'||grade='D') score=60; else score=0; B. b) if(grade=='A') score=100; if(grade=='B') score=90; if(grade=='C'||grade=='D') score=60; else score=0; C. c) if(grade=='A') score=100; else if(grade=='B') score=90; else if(grade=='C') score=60; else if(grade=='D') score=60; else score=0; D. d) if(grade=='A') score=100; else if(grade=='B') score=90; else if(grade=='C'&&grade=='D') score=60; else score=0;
A. a) 1 B. b) 2 C. c) 3 D. d) 4
A)(a>=0||b>=0)&&(a<0||b<0) B)a>=0&&b>=0)&&(a<0&&b<0) C)(a+b>0)&&(a+b<=0) D)a*b>0
A)0.0 B)0.25 C)0.5 D)1.0
A)3 B)4 C)34 D)35