多选题Given:
2. public class Tshirt extends Thread {
3. public static void main(String[] args) {
4. System.out.print(Thread.currentThread() .getId() + " ");
5. Thread t1 = new Thread(new Tshirt());
6. Thread t2 = new Thread(new Tshirt());
7. t1.start();
8. t2.run();
9. }
10. public void run() {
11. for(int i = 0; i < 2; i++)
12. System.out.print(Thread.currentThread() .getId() + " ");
13. } }
Which are true? (Choose all that apply.)
多选题部门(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
以下哪个陈述是造成这一错误的原因?
多选题应该将下面的哪些角色授予恢复目录所有者?
多选题Given:
1. import java.util.*;
2. public class Drawers {
3. public static void main(String[] args) {
4. List<String> desk = new ArrayList<String>();
5. desk.add("pen"); desk.add("scissors"); desk.add("redStapler");
6. System.out.print(desk.indexOf("redStapler"));
7. Collection.reverse(desk);
8. System.out.print(" " + desk.indexOf("redStapler"));
9. Collection.sort(desk);
10. System.out.println(" " + desk.indexOf("redStapler"));
11. } }
What is the result?
多选题请看语句“CREATE SPFILE FROM PFILE; ”,在以下有关这一语句的陈述中,哪3个是正确的? A.执行这个语句需要SYSDBA权限 B.该语句既可以在数据库开启之前,也可以在开启之后执行 C.该语句只能在PFILE在服务器上可以获得时才能执行 D.该语句的语法不能被反转用于从SPFILE创建PFILE E.该语句将不会执行,因为没有说明SPFILE的名字(文件名)
多选题在此创建一个名为CAT的数据库,以下是需要创建的表空间: Tablespace Purpose Size USER_DATA User Data 200M APP_DATA Application Data 2G APP_IDX Application Index 800M SYSTEM System Data 400M TEMP Temporary Data 200M UNDOTBS Undo Data 200M 请问在使用命令CREATE DATABASE手工创建数据库时,以下哪个表空间不能被创建? A.TEMP B.SYSTEM C.UNDOTBS D.CAT_DATA
多选题找出关于公共用户的正确描述。
多选题以下是学生(STUDENT)表所包含的全部列的定义:
ID NUMBER(9) PK
LAST_NAME VARCHAR2(25)
FIRST_NAME VARCHAR2(25)
ENROLL_DATE DATE
请看如下的SQL,脚本(语句),应该怎样修改才可以使它运行?
DEFINE enroll_date_2="01-JUN-1999"
SELECT *
FROM student
WHERE enroll_date=("&enroll_date_2")
/
多选题在创建一个视图时,以下哪个选项是用来防止用户通过该视图更改基表中的数据行?
多选题RMAN使用哪种方法启用快速增量备份?
多选题可以使用RMAN CHANGE FAILURE命令更改哪些故障类型的优先级?
多选题如果需要关闭内存缓冲区顾问(buffer cache advisory),但是仍然分配内存缓冲区顾问所使用的内存,请问应该使用如下的哪个语句? A.ALTER SYSTEM SET DB_CACHE_ADVICE=OFF; B.ALTER SESSION SET DB_CACHE_ADVICE=OFF; C.ALFER SYSTEM SET DB_CACHE_ADVICE=READY; D.ALTER SESSION SET DB_CACHE_ADVICE=READY;
多选题RMAN映像副本可能包含以下哪些对象?
多选题Given:
3. public class Avast {
4. static public void main (String[] scurvy)
5. System.out.print (scurvy[1] + " ");
6. main(scurvy[2]);
7. }
8. public static void main(String dogs) {
9. assert (dogs == null);
10. System.out.println(dogs);
11. } }
And, if the code compiles, the command-line invocation:
java Avast -ea 1 2 3
What is the result? (Choose all that apply.)
多选题Given:
2. public class Tolt {
3. public static void checkIt(int a) {
4. if(a == 1) throw new IllegalArgumentException();
5. }
6. public static void main(String[] args) {
7. for(int x=0; x<2; x++)
8. try {
9. System.out.print("t ");
10. checkIt(x);
11. System.out.print("t2 ");
12. }
13. finally {System.out.print("f "); }
14. } }
What is the result?
多选题可以使用ADRCI命令行工具完成以下哪些任务?
多选题现在需要基于一个未知条件来返回数据,应使用以下哪种结构? A.一个子查询 B.一个GROUP BY子句 C.一个ORDER BY子句 D.一个带有OR条件的WHERE子句
多选题关于多租户环境中的初始化参数,下列哪些说法是正确的?
多选题Given:
1. public class Argue {
2. static boolean b;
3. static int x = 0;
4. public static void main(String[] args) {
5. int guess = (int) (Math.random() * 5);
6. if(guess < 0) assert false;
7. assert b = true;
8. assert x = 0;
9. assert x == 0;
10. } }
Which are true? (Choose all that apply.)
多选题Given:
3. import java.util.*;
4. public class Corner {
5. public static void main(String[] args) {
6. TreeSet<String> t1 = new TreeSet<String>();
7. TreeSet<String> t2 = new TreeSet<String>();
8. t1.add("b"); t1.add("7");
9. t2 = (TreeSet)t1.subSet("5", "c");
10. try {
11. t1.add("d");
12. t2.add("6");
13. t2.add("3");
14. }
15. catch (Exception e) {System.out.print("ex ");}
16. System.out.println(t1 + " " + t2);
17. } }
What is the result?
