A: 1
B: 2
C: 3
D: 4
举一反三
- 以下语句 x 输出的值是多少?[br][/br] x = 2[br][/br] y = 1[br][/br] x *= y + 1 A: 4 B: 1 C: 2 D: 3
- 下列语句执行结束后,x的值是多少?[br][/br] int x = 1; int y = 2; x *= y + 1; A: 1 B: 2 C: 3 D: 4
- 已知int x=1,y=2,z=3;以下语句执行后x,y,z的值是( ). if(x>y) z=x; x=y; y=z; A: x=1, y=2, z=3 B: x=2, y=3, z=3 C: x=2, y=3, z=1 D: x=2, y=3, z=2
- 已知int x=3,y=4;,写出下列表达式的值 (1) (x,y) (2) x>y?x:y (3) x?y:x (4) (x>y)?(y>=2)?1:2:(y>x)?x:y
- 已知x=1,y=2,z=3,执行下列语句if(x>y) z=x;x=y;y=z;则x,y,z的值分别是 A: x=1,y=2,z=3 B: x=2,y=3,z=1 C: x=2,y=2,z=1 D: x=2,y=3,z=3
内容
- 0
以下程序的输出结果是( )。main(){ int x=1,y=2; void swap(int x,int y); swap(x,y); printf("x=%d,y=%d\n",x,y);}void swap(int x,int y){ x=3,y=4;} A: x=3,y=4 B: x=1,y=2 C: x=3 y=4 D: x=1 y=2
- 1
方程${{x}^{2}}{{y}^{''}}-(x+2)(x{{y}^{'}}-y)={{x}^{4}}$的通解是( ) A: $y={{C}_{1}}x+{{C}_{2}}{{e}^{x}}-(\frac{1}{2}{{x}^{3}}+{{x}^{2}})$ B: $y={{C}_{1}}x+{{C}_{2}}{{e}^{x}}-(\frac{1}{2}{{x}^{3}}+{{x}^{4}})$ C: $y={{C}_{1}}x+{{C}_{2}}x{{e}^{x}}-(\frac{1}{2}{{x}^{3}}+{{x}^{4}})$ D: $y={{C}_{1}}x+{{C}_{2}}x{{e}^{x}}-(\frac{1}{2}{{x}^{3}}+{{x}^{2}})$
- 2
int x = 3,y = 4;以下哪条输出语句正确? A: Console.WriteLine("x={x},y={y}", x,y); B: Console.WriteLine("x={x},y={y}"); C: Console.WriteLine("x={0},y={1}", x,y); D: Console.WriteLine("x={1},y={2}", x,y);
- 3
执行以下语句的结果:dict1={"x":1,"y":2,"z":3}dict2={"x":4,"a":5}dict1.update(dict2) A: {"x":1,"y":2,"z":3,"x":4,"a":5} B: {"x":4,"a":5,"x":1,"y":2,"z":3} C: 有重复项,结果有误! D: {"x":4,"y":2,"z":3,"a":5}
- 4
执行以下语句后的输出结果是______。 int x=3,y=0; printf("%d,%d”,-1>x>-10&&1<x<10,-1>y>-10&&1<y<10); A: 1 2 B: 1 1 C: 1 2 D: 2 2