除了各式屋顶外,中国传统物业的其他典型元素还有:1.()、2.()、3.()、4.()、5.()、6.()、7.()、8.()、9.()、10.()、11.()、12.()13.()、14.()、15.()、16.()、17.()、18.()、19.()、20.()、21.()。
11. public enum Title { 12. MR(”Mr.”), MRS(”Mrs.”), MS(”Ms.”); 13. private final String title; 14. private Title(String t) { title = t; } 15. public String format(String last, String first) { 16. return title + “ “ + first + “ “ + last; 17. } 18. } 19. public static void main(String[] args) { 20. System.out.println(Title.MR.format(”Doe”, “John”)); 21. } What is the result?()
1. class TestA { 2. TestB b; 3. TestA() { 4. b = new TestB(this); 5. } 6. } 7. class TestB { 8. TestA a; 9. TestB(TestA a) { 10. this.a = a; 11. } 12. } 13. class TestAll { 14. public static void main (String args[]) { 15. new TestAll().makeThings(); 16. // ...code continues on 17. } 18. void makeThings() { 19. TestA test = new TestA(); 20. } 21. } Which two statements are true after line 15, before main completes?()
16. Date d = new Date(0L); 17. String ds = “December 15, 2004”; 18. // insert code here What updates d‟s value with the date represented by ds?()
2012年英语(二)试题参考答案Section I Use of English1. A. served 2. B. common 3. D. bore 4. A. necessities 5. C. but 6. D. against 7. B. meaning 8. A. handed out 9. C. made 10. B. never 11. D. distinguished 12. C. collection 13. C. interviewed 14. A. human 15. D. gained 16. A. paralleled 17. B. emphasized 18. C. fragments 19. B. To 20. D.at that pointSection Reading ComprehensionPart AText121. A. is receiving more criticism22. C. may have problems finishing their homework23. D. discourage students from doing homework 24. B. it counts much in schooling25. A. A Faulty Approach to HomeworkText 226. C. should not be the sole representation of girlhood27. B. Blue used to be regarded as the colour for girls.28. B. the marketing of products for children29. A. classify consumers into smaller groups30. C. mainly imposed by profit-driven businessmenText 331. A. genes to be patentable 32. B. only man-made products are patentable33. A. discovering gene interactions34. C. gene patenting was a great concern35. D. objectiveText 436. D. look on the bright side of the recession37. D. reconsider their lifestyle38. B. bring out more evils of human nature39. D. recover more quickly than the others40. C. certainPart B41. A. emphasized the virtue of classical heroes.42. F. dismissed virtue as unnecessary for successful leaders.43. G. depicted the worthy lives of engineers, industrialists and explorers.44. C. focused on epochal figures whose lives were hard to imitate.45. E. held that history should be the story of the masses and their record of struggle.Section Translation46. 发展中国家的人考虑移民时,通常关心的是到硅谷或发达国家的医院和大学里工作这样最美好最光明的前景。这些人正是英国、加拿大和澳大利亚等国家想要通过对大学毕业生提供优惠的移民条例来吸引的人才。许多研究表明,发展中国家受过良好教育的人尤其可能移民。2004年对印度家庭的一项大规模调查表明,将近40%移居国外的人受过高中以上教育,而与之形成对比的是:全印度25岁以上受过高中以上教育的人约为3.3%。这种“人才流失”现象长期困扰着贫困国家的决策者。他们担心这会损害本国经济,使他们失去急需的熟练劳动者,这些人本可以留在国内在大学任教、在医院工作或设计新产品供工厂生产。Section IV WritingPart A47. (略)Part B48. (略)
11. public void testIfA() { 12. if(testIfB(”True”)) { 13. System.out.println(”True”); 14. } else { 15. System.out.println(”Not true”); 16. } 17. } 18. public Boolean testIfB(String str) { 19. return Boolean.valueOf(str); 20. } What is the result when method testIfA is invoked?()
11. public static void main(String[] args) { 12. Object obj = new Object() { 13. public int hashCode() { 14. returns 42; 15. } 16. }; 17. System.out.println(obj.hashCode()); 18. } What is the result? ()
11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result?()
12. void start() { 13. A a = new A(); 14. B b = new B(); 15. a.s(b); 16. b = null; 17. a = null; 18. System.out.println(“start completed”); 19. } When is the B object, created in line 14, eligible for garbage collection?()
11. public void genNumbers() { 12. ArrayList numbers = new ArrayList(); 13. for (int i=0; i<10; i++) { 14. int value = i * ((int) Math.random()); 15. Integer intObj = new Integer(value); 16. numbers.add(intObj); 17. } 18. System.out.println(numbers); 19. } Which line of code marks the earliest point that an object referenced by intObj becomes a candidate for garbage collection?()