多选题Given:
2. public class Boggy {
3. final static int mine = 7;
4. final static Integer i = 57;
5. public static void main(String[] args) {
6. int x : go(mine);
7. System.out.print(mine + " " + x + " ");
8. x += mine;
9. Integer i2 = i;
10. i2 = go(i);
11. System.out.println(x + " " + i2);
12. i2 = new Integer(60);
13. }
14. static int go(int x) {return ++x; }
15. }
What is the result?
多选题Given:
1. public class Twine {
2. public static void main (String[] args) {
3. String s="";
4. StringBuffer sb1=new StringBuffer("hi");
5. StringBuffer sb2=new StringBuffer("hi");
6. StringBuffer sb3=new StringBuffer(sb2);
7. StringBuffer sb4=sb3;
8. if(sb1.equals(sb2)) s += "1 ";
9. if(sb2.equals(sb3)) s += "2 ";
10. if(sb3.equals(sb4)) s += "3 ";
11. String s2="hi";
12. String s3="hi";
13. String s4=s3;
14. if(s2.equals(s3)) s += "4 ";
15. if(s3.equals(s4)) s += "5 ";
16. System.out.println(s);
17. }
18. }
What is the result?
多选题请看如下创建索引的DDL语句: CREATE INDEX hr.employee_last_name_idx ON dog.employee (last_name) PCTFREE 25 STORAGE (INITIAL 200K NEXT 200K) PCTCREASE 0 MAXEXTENTS 35) TABLESPACE indx; 请问,这个创建索引的DDL语句将创建哪一种类型的索引? A.位图索引 B.唯一索引 C.正常B-树索引 D.分区索引
多选题Your company makes compute-intensive, 3D rendering software for the movie industry. Your chief scientist has just discovered a new algorithm for several key methods in a commonly used utility class. The new algorithm will decrease processing time by 15 percent, without having to change any method signatures. After you change these key methods, and in the course of rigorous system testing, you discover that the changes have introduced no new bugs into the software.
In terms of your software"s overall design, which are probably true? (Choose all that apply.)
多选题如果丢失了临时表空间中的所有临时文件,用户最有可能看到什么结果?
多选题使用如下的CREATE SEOUENCE语句创建一个序列: CREATE SEQUENCE line_item_id_seq START WITH 10001 MAXVALUE 999999999 NOCYCLE; 基于以上这个CREATE SEOUENCE语句,以下的哪个陈述是正确的? A.这个序列将重用数字并将以10001开始 B.这个序列绝不会重用任何数字并且步长(增量)为1 C.当这个序列达到它的最大值之后将继续产生数值 D.这个CRENTE SEQUENCE语句将产生语法错误,因为在这个语句中没有包括INCREMENT BY数值
多选题以下是PERSONNEL表的定义:
ID NUMBER(9)
LAST_NAME VARCHAR2(25)
FIRST_NAME VARCHAR2(25)
MANAGER_ID NUMBER(9)
DEPT_ID NUMBER(9)
请看如下的SQL语句,它将返回以下的哪个结果?
SELECT p.dept_id, p.first_name‖""‖p.last_name employee,
c.first_name‖""‖c.last_name coworker
FROM personnel p,personnel c
WHERE p.dept id=c.dept_id
AND p.id<>c.id;
多选题请看DDL语句“DROP TABLE employee CASCADE CONSTRAINTS;”,请问这一DDL语句执行的结果会是哪3个? A.Employee表所使用的区段将被释放 B.Employee表的定义将被从数据字典中删除掉 C.Employee表中的数据将被删除,但是该表的结果将被保留 D.Employee表中的数据将被删除,但是该表所使用的区段将被保留 E.如果在一个外键关系中Employee表是主表就需要使用CASCADE CONSTRAINTS选项
多选题BACKGROUND_DUMP_DEST初始化参数说明了什么文件的位置? A.报警文件(alert log file) B.用户追踪文件(user trace files) C.归档重做日志(archived redo logs) D.多重映像联机重组日志(online redo logs)
多选题请看如下的SQL语句: ALTER SYSTEM SET UNDO_TABLESPACE=undo_tbs2; 这一SQL语句将完成以下的哪一个功能? A.创建undo_tbs2表空间 B.删除之前的还原表空间 C.将undo_tbs2表空间的状态置为挂起脱机(PENDING OFFLTNE) D.说明新的事务(transactions)将使用undo_tbs2这个还原表空间
多选题要从RMAN自动备份还原控制文件,应按什么正确的顺序使用下面的命令?
1.RECOVER DATABASE
2.ALTER DATABASE OPEN RESETLOGS
3.STARTUP NOMOUNT
4.ALTER DATABASE MOUNT
5.RESTORE CONTROLFILE FROM AUTOBACKUP
多选题Given:
3. class MotorVehicle {
4. protected int doStuff(int x) {return x * 2; }
5. }
6. class Bicycle {
7. void go(MotorVehicle m) {
8. System.out.print(m. doStuff (21) + " ");
9. } }
10. public class Beemer extends MotorVehicle {
11. public static void main(String[] args) {
12. System.out.print(new Beemer().doStuff(11) + " ");
13. new Bicycle().go(new Beemer());
14. new Bicycle() .go(new MotorVehicle());
15. }
16. int doStuff(int x) {return x * 3; }
17. }
What is the result? (Choose all that apply.)
多选题Given:
1. import java.util.*;
2. public class MyPancake implements Pancake {
3. public static void main(String[] args) {
4. List<String> x=new ArrayList<String>();
5. x.add("3"); x.add ("7"); x.add ("5");
6. List<String> y=new MyPancake() .doStuff(x);
7. y.add ("i");
8. System.out.println (x);
9. }
10. List<String> doStuff(List<String> z) {
11. z.add("9");
12. return z;
13. }
14. }
15. interface Pancake {
16. List<String> doStuff(List<String> s);
17. }
What is the most likely result?
多选题应该在哪一列上创建一个索引? A.一个很小的列 B.一个经常修改的列 C.一个取值范围很广的列 D.一个具有很少空值的列
多选题以下是课程(CLASS)表和教师(INSTRUCTOR)表中的数据:
CLASS
CLASS_ID
CLASS_NAME
HOURS_CREDIT
INSTRUCTOR_ID
1
Introduction to Accounting
3
4
2
Computer Basics
3
1
3
Tax Accounting Principles
3
4
4
American History
3
2
5
Basic Engineering
3
INSTRUCTOR
INSTRUCTOR_ID
LAST_NAME
FIRST_NAME
1
Chao
Ling
2
Vanderbilt
Herbert
3
Wigley
Martha
4
Page
Albert
要生成一个包括每个教师所教课程的报表,该报表必须包括所有的教师,即使那些目前没有任课的教师也要包括在报表中。请问,应使用以下查询语句中的哪两个?
多选题在Oracle数据库实例中,最多有几个数据库写入器进程(DBWn)?
多选题请看以下创建表的语句: CREATE TABLE customer ( customer_id NUMBER, company_id VARCHAR2(30), contact_name VARCHAR2(30), contact_title VARCHAR2(20), address VARCHAR2(30), city VARCHAR2(25), region VARCHAR2(10), postal_code VARCHAR2(20), country_id NUMBER DEFAULT 25, phone VARCHAR2(20), fax VARCHAR2(20), credit_limit NUMBER(7, 2)); 以上这个DDL语句将完成如下哪3个商业要求? A.信用限额(credit limit)可以达到$1000000 B.公司标识的值既可以数字,也可以是字母,还可以是它们的组合 C.大多数客户的标识值只能是6位数,因为这一列应该是变长的 D.电话号码的值可以为7~20个字符,所以这一列应该是变长的 E.当一行记录插入时,如果没有提供国家标识的值,其值将使用25
多选题下面哪些语句正确描述了回收站?
多选题哪种类型的约束只能在列一级定义?
多选题Given:
37. boolean b=false;
38. int i=7;
39. double d=1.23;
40. float f=4.56f;
41.
42. // insert code here
Which line(s) of code, inserted independently at line 42, will compile and run without exception? (Choose all that apply.)
