阿摩線上測驗
登入
首頁
>
【段考】國三國文上學期
>
108年 - 2019桃園市市立中興國中九年級108 上學期國文第二次段考(期中考)翰林#83083
> 試題詳解
沒有 【段考】國三國文上學期 權限,請先開通.
答案:
登入後查看
統計:
A(1), B(0), C(1), D(4), E(0) #2195077
相關試題
203 What is the result? (A) [1, 2, 3, 5] (B) [2, 1, 3, 5] (C) [2, 5, 3, 1] (D) [5, 3, 2, 1] (E) [1, 3, 5, 2] (AB) Compilation fails. (AC) An exception is thrown at runtime.
#2195078
204 Which statement is true? (A) The time to find the value from HashMap with a Person key depends on the size of the map. (B) Deleting a Person key from a HashMap will delete all map entries for all keys of type Person. (C) Inserting a second Person object into a HashSet will cause the first Person object to be removed as a duplicate. (D) The time to determine whether a Person object is contained in a HashSet is constant and does NOT depend on the size of the map.
#2195079
205 What is the result? (A) Compilation fails. (B) An exception is thrown at runtime. (C) [608, 610, 612, 629] [608, 610] (D) [608, 610, 612, 629] [608, 610, 629] (E) [606, 608, 610, 612, 629] [608, 610] (AB) [606, 608, 610, 612, 629] [608, 610, 629]
#2195080
206 A programmer iterates over the TreeSet and prints the name of each Drink object. What is the result? (A) Tea (B) Coffee (C) Coffee Tea (D) Compilation fails. (E) The code runs with no output. (AB) An exception is thrown at runtime.
#2195081
207 A programmer must create a generic class MinMax and the type parameter of MinMax must implement Comparable. Which implementation of MinMax will compile? (A) (B) (C) (D)
#2195082
208 Which code, inserted at line 4, guarantees that this program will output [1, 2]? (A) Set set = new TreeSet(); (B) Set set = new HashSet(); (C) Set set = new SortedSet(); (D) List set = new SortedList(); (E) Set set = new LinkedHashSet();
#2195083
209 Which statement is true about the set variable on line 12? (A) The set variable contains all six elements from the coll collection, and the order is guaranteed to be preserved. (B) The set variable contains only three elements from the coll collection, and the order is guaranteed to be preserved. (C) The set variable contains all six elements from the coll collection, but the order is NOT guaranteed to be preserved. (D) The set variable contains only three elements from the coll collection, but the order is NOT guaranteed to be preserved.
#2195084
210 What is the appropriate definition of the hashCode method in class Person? (A) return super.hashCode(); (B) return name.hashCode() + age * 7; (C) return name.hashCode() + comment.hashCode() / 2; (D) return name.hashCode() + comment.hashCode() / 2- age * 3;
#2195085
複選題211 A programmer is developing a class Key, that will be used as a key in a standard java.util.HashMap. Which two methods should be overridden to assure that Key works correctly as a key? (Choose two.) (A) public int hashCode() (B) public void hashCode() (C) public int compareTo(Object o) (D) public boolean equals(Object o) (E) public boolean compareTo(Key k)
#2195086
複選題212 Which two code fragments, inserted independently at line 5, will compile without warnings? (Choose two.) (A) public void addStrings(List list){ (B) public void addStrings(List<String> list){ (C) public void addStrings(List<? super String> list){ (D) public void addStrings(List<? extends String> list){
#2195087
相關試卷
111年 - 111 高雄市立陽明國中三年級第1學期第3次段考:國文#113748
2022 年 · #113748
110年 - 110 第一學期國文科九年級第三次定期考查#112082
2021 年 · #112082
110年 - 台南市立民德國中110學年度第一學期第二次成績考查三年級國文科試題#112073
2021 年 · #112073
110年 - 110 台南市民德國中第一學期第二次成績考查三年級國文科作文試題#112047
2021 年 · #112047
110年 - 2021桃園市市立文昌國中九年級110 上學期國文第二次段考(期中考)康軒#107270
2021 年 · #107270
110年 - 2021臺北市市立新興國中九年級110 上學期國文第一次段考(期中考)翰林#106680
2021 年 · #106680
110年 - 2021臺北市市立民族國中九年級110 上學期國文第一次段考(期中考)翰林#106659
2021 年 · #106659
110年 - 2021高雄市市立大灣國中九年級110 上學期國文第二次段考(期中考)南一#106654
2021 年 · #106654
110年 - 2021彰化縣縣立埔心國中九年級110 上學期國文第三次段考(期末考)康軒#106644
2021 年 · #106644
110年 - 2021高雄市市立大灣國中九年級110 上學期國文第三次段考(期末考)南一#106640
2021 年 · #106640