多选题Given the proper import(s), and this code in a method:
4. List<String> x = new LinkedList<String>();
5. Set<String> hs = new HashSet<String>();
6. String[] v = {"a", "b", "c", "b", "a"};
7. for(String s: v) {
8. x.add(s); hs.add(s);
9. }
10. System.out.print(hs.size() + " " + x.size() + " ");
11. HashSet hs2 = new HashSet(x);
12. LinkedList x2 = new LinkedList(hs);
13. System.out.println(hs2.size() + " " + x2.size());
What is the result?
多选题Given:
2. public class Salmon extends Thread {
3. public static long id;
4. public void run() {
5. for(int i = 0; i<4; i++) {
6. // insert code here
7. new Thread(new Salmon()) .start();
8. throw new Error();
9. }
10. System.out.print (i +" ");
11. } }
12. public static void main(String[] args) {
13. Thread t1 = new Salmon();
14. id = t1.getId();
15. t1.start ();
16. } }
And the two code fragments:
Ⅰ. if(i == 2 && id == Thread.currentThread().getId()) {
Ⅱ. if(i == 2) {
When inserting either fragment, independently at line 6, which are true? (Choose all that apply.)
多选题下列哪些数据库对象总会在系统容器内的所有PDB之间共享?
多选题Given:
1. class MyException extends RuntimeException { }
2. public class Houdini {
3. public static void main(String[] args) throws Exception
4. throw new MyException();
5. System.out.println("success");
6. } }
Which are true? (Choose all that apply.)
多选题哪些表空间包含必须在数据库脱机时恢复的重要数据文件?
多选题Given that "it, IT" and "pt" are valid Locale codes, and given:
41. Date d = new Date();
42. DateFormat df;
43. Locale[] la = {new Locale ("it", "IT"), new Locale("pt") };
44. for(Locale i: la) {
45. df = DateFormat.getDateInstance(DateFormat. FULL, i);
46. System.out.println(d.format (df));
47. }
Which are true? (Choose all that apply.)
多选题如果要显示库存超过100的所有产品(product)的产品标识号(id_number),并且想以这样的方式来显示:首先以制造商(manufacturer)的字母顺序,之后按产品号由小到大的顺序,应该使用如下的哪个语句来完成这一工作?注意所有的数据也都存放在INVENTORY表中。A.SELECTid_numberFROMinventoryWHEREquantity>100ORDERBYmanufacturer_id,id_number;B.SELECTid_numberFROMinventoryWHEREquantity=>100SORTBYmanufacturer_id,id_number;C.SELECTid_numberFROMinventoryWHEREquantity>100ORDERBYmanufacturer_id,id_numberDESC;D.SELECTid_numberFROMinventoryWHEREquantity>100SORTBYmanufacturer_id,id_number;
多选题Your virtual-world simulator is designed such that Grobnets can have several Ooflas, and Yazells support the contract implied by Whompers. Grobnets are a type of Yazell, and can also act as Floordums or Whompers. Which of the following code fragments legally represent this design? (Choose all that apply.)
多选题Given:
2. class Horse {
3. String hands = "15";
4. }
5. class GaitedPony extends Horse {
6. static String hands = "14";
7. public static void main(String[] args) {
8. String hands = "13.2";
9. String result = new GaitedPony().getSize(hands);
10. System.out.println(" " + result);
11. }
12. String getSize(String s) {
13. System.out.print("hands: " + s);
14. return hands;
15. } }
What is the result?
多选题在以下有关系统全局区(SGA)的陈述中,哪一个是正确的? A.SGA不是Oracle服务器体系结构的一部分 B.当服务器进程启动时分配SGA C.SGA是一个Oracle数据库物理结构的一部分 D.当一个实例启动时,在一个Oracle数据库的环境中创建SGA
多选题目标数据库的网络服务名是DW,恢复目录数据库的网络服务名是RCAT。环境变量ORACLE_SID的值是RCAT。下面的哪组命令可以成功地创建恢复目录?
多选题可以在以下的哪两个语句中使用ENABLE子句?
多选题数据库中的初始化参数设置如下:
BACKUP_TAPE_IO_SLAVES=TRUE
LARGE_POOL_SIZE=50M
JAVA_POOL_SIZE=75M
PGA_AGGREGATE_TARGET=20M
下面关于RAIAN在何处为磁带备份分配内存缓冲区的说法,哪个是正确的?
多选题Given:
2. public class Organic<E> {
3. void react(E e) { }
4. static void main(String[] args) {
5. // Organic<? extends Organic> compound = new Aliphatic<Organic>();
6. // Organic<? super Aliphatic> compound = new Aliphatic<Organic>();
7. compound.react(new Organic());
8. compound.react(new Aliphatic());
9. compound.react(new Hexane());
10. }}
11. class Aliphatic<F> extends Organic<F> { }
12. class Hexane<G> extends Aliphatic<G> { }
Which, taken independently, are true? (Choose all that apply.)
多选题Given
2. class Horse {
3. static String s = "";
4. void beBrisk() {s += "trot "; }
5. }
6. public class Andi extends Horse {
7. void beBrisk() { s += "tolt "; }
8. public static void main(String[] args) {
9. Horse x0 = new Horse();
10. Horse x1 = new Andi(); x1.beBrisk();
11. Andi x2 = (Andi)x1; x2.beBrisk();
12. Andi x3 = (Andi)x0; x3.beBrisk();
13. System.out.println(s);
14. } }
What is the result?
多选题在如下有关区段的陈述中,哪一个是正确的? A.区段是一个连续的数据库块的集合 B.区段只在一个段被删除(dropped)时释放区段 C.更改一个段的存储参数适用于当前和将来的区段 D.当段被创建时,它们从数据库的空闲区段中来分配磁盘空间
多选题初始化参数LOG_ARCHIVE_START=TRUE表示什么? A.重做日志组的个数 B.自动归档功能开启 C.归档日志文件的目的地(存放的目录) D.数据库存在非归档模式
多选题部门(DEPARTMENT)表的结构如下: DEPT_ID NUMBER(9) DEPT_NAME VARCHAR2(20) REGION_ID NUMBER(9) 其中,REGION_ID列上有一个指向REGION表的外键约束,假如试着使用如下的语句来修改DEPARTMENT表: UPDATE department SET dep_id=6546, region_id=9705 WHERE dept_id=8940; 结果给出了如下的错误信息: ORA-02291: integrity constraint (SYS_C23) violated-parent key not found 以下哪个陈述是造成这一错误的原因? A.值6546已经在REGION表中存在 B.值6546已经在DEPARTMENT表中存在 C.值9705在REGION表中并不存在 D.值8940在DEPARTMENT表中并不存在
多选题Cat使用带有WITH ADMIN OPTION子句的DCL语句将DROP ANYTABLE系统权限授予了Fox,而Fox又将这一权限授予了Dog。如果Cat的权限被收回,除了Cat以外哪些用户将丧失他们的权限? A.只有Dog B.只有Fox C.Fox和Dog D.没有其他用户丧失权限
多选题Given:
2. class Jog implements Runnable {
3. public void run() {
4. for(int i = 0; i < 8; i++) {
5. try {Thread.sleep(200); }
6. catch (Exception e) {System.out.print("exc "); }
7. System.out.print (i + " ");
8. } } }
9. public class Marathon {
10. public static void main(String[] args) throws Exception {
11. Jog j1 = new Jog();
12. Thread t1 = new Thread(j1);
13. t1.start();
14. t1.sleep(500);
15. System.out.print("pre ");
16. t1. interrupt();
17. t1.sleep(500);
18. System.out.print("post ");
19. } }
Assuming that sleep() sleeps for about the amount of time specified in its argument, and that all other code runs almost instantly, which output is likely? (Choose all that apply.)