第1题:
1. public class X implements Runnable( 2. private int x; 3. private int y; 4. 5. public static void main(String[]args) 6. X that = new X(); 7. (new Thread(that)).start(); 8. (new Thread(that)).start(); 9. ) 10. 11. public void run() ( 12. for (;;) ( 13. x++; 14. y++; 15. System.out.printIn(“x=” + x + “, y = ” + y); 16. ) 17. ) What is the result?()
第2题:
过点(一1,0,1)且与平面X+Y+4z+19=0平行的平面方程为()。
第3题:
-4
-2
-1
1
2
第4题:
第5题:
-7
-5
1/3
3
10
第6题:
7
6
5
4
3
第7题:
3
1
-1
-2
-3
第8题:
-2
4
11
15
17
第9题:
(c-b)/3
(c-b)/2
(b -c)/3
(b-c)/2
(c-b)/4
第10题:
-2
3
-1
0
1
第11题:
Compilation fails.
The program prints pairs of values for x and y that might not always be the same on the same line (for example, “x = 2, y = 1”).
The program prints pairs of values for x and y that are always the same on the same line (for example, “x = 1, y = 1”). In addition, each value appears only once (for example, “x = 1, y = 1” followed by “x = 2, y = 2”). The thread name at the start of the line shows that both threads are executing concurrently.
The program prints pairs of values for x and y that are always the same on the same line (for example, “x = 1, y = 1”). In addition, each value appears only once (for example, “x = 1, y = 1” followed by “x = 2, y = 2”). The thread name at the start of the line shows that only a single thread is actually executing.
第12题:
第13题:
public class X implements Runnable ( private int x; private int y; public static void main(String args) ( X that = new X(); (new Thread(that)) . start( ); (new Thread(that)) . start( ); ) public synchronized void run( ) ( for (;;) ( x++; y++; System.out.printIn(“x = “ + x + “, y = “ + y); ) ) ) What is the result?()
第14题:
int x = 1, y =6; while (y--) { x++; } System.out.println(“x =” + x + “y =” +y); What is the result?()
第15题:
ρ={R1(WY),R2(XZ)}
ρ={R1(WZ),R2(XY)}
ρ={R1(WXY),R2(XZ)}
ρ={R1(WX),R2(YZ)}
第16题:
第17题:
第18题:
x = 6 y = 0
x = 7 y = 0
x = 6 y = -1
x = 7 y = -1
Compilation fails.
第19题:
第20题:
Errors at lines 7 and 8 cause compilation to fail.
The program prints pairs of values for x and y that might not always be the same on the same line (for example, “x=2, y=1”).
The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears twice (for example, “x=1, y=1” followed by “x=1, y=1”).
The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears only for once (for example, “x=1, y=1” followed by “x=2, y=2”).
第21题:
An error at line 11 causes compilation to fail.
Errors at lines 7 and 8 cause compilation to fail.
The program prints pairs of values for x and y that might not always be the same on the same line (for example, “x=2, y=1”)
The program prints pairs of values for x and y that are always the same on the same line (forexample, “x=1, y=1”. In addition, each value appears twice (for example, “x=1, y=1” followed by “x=1, y=1”)
The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears twice (for example, “x=1, y=1” followed by “x=2s, y=2”)
第22题:
Errors at lines 7 and 8 cause compilation to fail.
The program prints pairs of values for x and y that might not always be the same on the same line (for example, “x=2, y=1”).
The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears twice (for example, “x=1, y=1” followed by “x=1, y=1”).
The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears only for once (for example, “x=1, y=1” followed by “x=2, y=2”).
第23题: