A.a handful of
B.the hand of
C.a hand of
D.the handful of
第1题:
A、his’
B、his
C、he’s
D、he
第2题:
You are signing on a deck officer,who will be designated as one of the GMDSS operators,before sailing foreign.Which statement is TRUE ________.
A.He/she must have an STCW certificate endorsed as“Valid for Service on Vessels Operating in the GMDSS System”
B.He/she must present either an FCC-issued license or a Coast Guard-issued license
C.You must consult the“List of Qualifications”on the reverse of his/her FCC-issued license
D.His/her Merchant Mariners Document must have an added endorsement as “Radio Electronics Officer”
第3题:
下面的代码用于输出字符数组ch中每个字符出现的次数,应该填入的代码是()public static void main(String[] args) { char[] ch = { 'a', 'c', 'a', 'b', 'c', 'b' }; HashMap map = new HashMap(); for (int i = 0; i < ch.length; i++) { < 填入代码 > } System.out.println(map); }
A.if (map.contains(ch[i])) { map.put(ch[i], map.get(ch[i]) + 1); } else { map.put(ch[i], 1); }
B.if (map.contains(ch[i])) { map.put(ch[i], (Integer) map.get(ch[i]) + 1); } else { map.put(ch[i], 1); }
C.if (map.containsKey(ch[i])) { map.put(ch[i], (int) map.get(ch[i]) + 1); } else { map.put(ch[i], 1); }
D.if (map.containsKey(ch[i])) { map.put(ch[i], (Integer) map.get(ch[i]) + 1); } else { map.put(ch[i], 1); }
第4题:
给定如下Java程序代码片段,编译运行这段代码,结果是( )。
java.util.HashMapmap=newjava.util.HashMap();
map.put("name",null);
map.put("name","Jack");
System.out.println(map.get("name"));
A.null
B.Jack
C.nullJack
D.运行时出现异常
第5题:
第6题:
给定如下Java 程序代码片段,编译运行这段代码,结果是 java.util.HashMap map = new java.util.HashMap(); map.put("name",null); map.put("name","Jack"); System.out.println(map.get("name"));
A.null
B.Jack
C.nullJack
D.运行时出现异常