阿摩線上測驗
登入
首頁
>
OJCP(SCJP)
>
104年 - SCJP 51-100#99391
> 申論題
86. Given:
10. abstract class A{
11. abstract void a1();
12. void a2(){}
13. }
14. class B extends A{
15. void a1(){} 16. void a2(){}
17. }
18. class C extends B{void c1(){}}
and:
A x = new B(); C y = new C(); A z = new C();
What are four valid examples of polymorphic method calls? (Choose four.) (A) x.a2(); (B) z.a2(); (C) z.c1(); (D) z.a1(); (E) y.c1(); (F) x.a1();
相關申論題
88. Which Three statements are true? (Choose Three.) (A) A final method in class X can be abstract if and only if X is abstract. (B) A protected method in class X can be overridden by any subclass of X. (C) A private static method can be called only within other static methods in class X. (D) A non-static public final method in class X can be overridden in any subclass of X. (E) A public static method in class X can be called by a subclass of X without explicitly referencing the class X. (F) A method with the same signature as a private final method in class X can be implemented in a subclass of X. (G) A protected method in class X can be overridden by a subclass of X only if the subclass is in the same package as X.
#415603
96. Given a class Repetition: 1. package utils; 2. 3. public class Repetition { 4. public static String twice(String s){return s + s;} 5. } and given another class Demo: 1. // insert code here 2. 3. public class Demo { 4. public static void main(String[] args){ 5. System.out.println(twice("pizza")); 6. } 7. } Which code should be inserted at line 1 of Demo.java to compile and run Demo to print "pizzapizza"? (A) import utils.*; (B) static import utils.*; (C) import utils.Repetition.*; (D) static import utils.Repetition.*; (E) import utils.Repetition.twice(); (F) import static utils.Repetition.twice; (G)static import utils.Repetition.twice;
#415604
83. Given: 10. interface Foo{ 11. int bar(); 12. } 13. 14. public class Beta { 15. 16. class A implements Foo{ 17. public int bar(){return 1;} 18. } 19. 20. public int fubar(Foo foo){return foo.bar();} 21. 22. public void testFoo(){ 23. 24. class A implements Foo{ 25. public int bar() {return 2;} 26. } 27. 28. System.out.println(fubar(new A())); 29. } 30. 31. public static void main(String[] argv){ 32. new Beta().testFoo(); 33. } 34. } Which three statements are true? (Choose three.) (A)Compilation fails. (B) The code compiles and the output is 2. (C)If lines 16, 17 and 18 were removed, compilation would fail. (D) If lines 24, 25 and 26 were removed, compilation would fail. (E)If lines 16, 17 and 18 were removed, the code would compile and the output would be 2. (F)If lines 24, 25 and 26 were removed, the code would compile and the output would be 1.
#415605
二、問答題 1.王老師針對八年級數學領域的測驗進行試題分析,其中甲、乙兩道選擇題的分析數據如下: 請根據上列資訊計算這兩題的難度與鑑別度(4分),再提出三項試題品質優劣的評論(6分)。
#415606
2.根據艾瑞克森(E. Erikson)的心理社會發展論(psychosocial developmental theory)來說明青少年期所要面對的發展議題,及此發展議題會如何影響個體的發展。
#415607
3.你是高中某一班的導師,看到班上有位學生,常悶悶不樂,愁眉不展。有一回你找他談話,他在言詞中透露輕生之意,你該如何處理?
#415608
4.何謂測驗工具的信度與效度(4分)?請先說明四種信度的類別與各自所代表的意涵;接著再說明三種效度的類別與各自所代表的意涵(6分)。
#415609
91. A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command: java games.cards.Poker What allows the user to do this? H. put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java I. put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/*.jar J. Put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/Poker.jar K. put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java L. put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java/*.jar M. put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java/Poker.jar
#415610
二、問答題 1. 教師宜採取哪些教學策略以照顧到學生的個別差異?請列舉五項。
#415611
2. 請問何謂正式課程、非正式課程、潛在課程與懸缺課程?並各舉一例說明。
#415612
相關試卷
104年 - SCJP 201-244#99410
104年 · #99410
104年 - SCJP 51-100#99391
104年 · #99391
104年 - SCJP 151-200#99330
104年 · #99330
104年 - SCJP 1-50#41416
104年 · #41416
無年度 - SCJP 6.0 認證教戰手冊第二版 SCJP 6.0 認證教戰手冊第二版 認證教戰手冊第二版_題庫 201-244#83084
#83084
無年度 - SCJP 6.0 認證教戰手冊第二版 SCJP 6.0 認證教戰手冊第二版 認證教戰手冊第二版_題庫 151-200#83081
#83081
無年度 - SCJP 6.0 認證教戰手冊第二版 SCJP 6.0 認證教戰手冊第二版 認證教戰手冊第二版_題庫 101-150#83070
#83070
無年度 - SCJP 6.0 認證教戰手冊第二版 SCJP 6.0 認證教戰手冊第二版 認證教戰手冊第二版_題庫 51-100#83056
#83056