下列何者運算是與 x XOR y 相等?
(A)(x AND (NOT y)) AND ((NOT x) AND y)
(B)(x AND (NOT y)) OR ((NOT x) AND y)
(C)(x OR (NOT y)) AND ((NOT x) OR y)
(D)(x OR (NOT y)) OR ((NOT x) OR y)
下列的 Java 程式執行後輸出為何?import java.lang.*;import java.util.*;class test{public static void main (String[] argv){List<String> list=new ArrayList<String>();list.add("This is a book");list.add("That is a pencil");list.add("There are some students");list.add("These students are hard-working");Collections.sort(list);System.out.println(list.get(list.size()-1));}}
(A)This is a book
(B)That is a pencil
(C)There are some students
(D)These students are hard-working