多选题Given:
2. public class Contact {
3. private String name;
4. private String city;
5. String getName() {return name; }
6. void setName(String n) {name = n; }
7. void setCity(String c) {
8. if(c == null) throw new NullPointerException();
9. city = c;
10. }
11. String getCity() {return city; }
12. }
Which are true? (Choose all that apply.)
多选题使用分组函数可完成以下的哪个操作?
多选题下列关于本地角色和公共角色的哪个陈述是不正确的?
多选题Given:
2. import java.util.regex.*;
3. public class Decaf {
4. public static void main(String[] args)
5. Pattern p = Pattern.compile(args[0]);
6. Matcher m = p.matcher(args[1]);
7. while (m.find())
8. System.out.print(re.group() + " ");
9. } }
And the three command-line invocations:
Ⅰ. java Decaf "0([0-7])?" "1012 0208 430"
Ⅱ. java Decaf "0([0-7])*" "1012 0208 430"
Ⅲ. java Decaf "0([0-7])+" "1012 0208 430"
Which are true? (Choose all that apply.)
多选题在以下有关Oracle约束的陈述中,哪4个是正确的?
多选题Given:
2. class Noodle {
3. String name;
4. Noodle(String n) {name = n; }
5. }
6. class AsianNoodle extends Noodle {
7. public boolean equals(Object o) {
8. AsianNoodle n = (AsianNoodle)o;
9. if (name.equals(n.name)) return true;
10. return false;
11. }
12. public int hashCode() {return name.length(); }
13. AsianNoodle(String s) {super(s); }
14. }
15. public class Soba extends AsianNoodle {
16. public static void main(String[] args) {
17. Noodle n1 = new Noodle ("bob"); Noodle n2 = new Noodle ("bob");
18. AsianNoodle a1 = new AsianNoodle("fred");
19. AsianNoodle a2 = new AsianNoodle("fred");
20. Soba s1 = new Soba("ji11"); Soba s2 = new Soba("ji11");
21. System.out.print(n1.equals(n2) + " " + (n1 == n2) + " | "
22. System.out.print(a1.equals(a2) + " " + (a1 == a2) + " | "
23. System.out.println(s1.equals(s2) + " " + (s1 == s2));
24. }
25. Soba(String s) {super(s); }
26. }
What is the result?
多选题Given:
3. import java.io.*;
4. class ElectronicDevice {ElectronicDevice() {System.out.print("ed "); }}
5. class Mp3player extends ElectronicDevice implements Serializable {
6. Mp3player() {System.out.print("mp "); }
7. }
8. class MiniPlayer extends Mp3player {
9. MiniPlayer() {System.out.print("mini "); }
10. public static void main(String[] args) {
11. MiniPlayer m = new MiniPlayer();
12. try {
13. FileOutputStream fos = new FileOutputStream("dev.txt");
14. ObjectOutputStream os = new ObjectOutputStream(fos);
15. os.writeObject(m); os.close();
16. FileInputStream fis = new FileInputStream("dev.txt");
17. ObjectInputStream is = new ObjectInputStream(fis);
18. MiniPlayer m2 = (MiniPlayer) is.readObject(); is.close();
19. } catch (Exception x) {System.out.print("x "); }
20. } }
What is the result?
多选题Given:
3. public class Fortran {
4. static int bump(int i) {return i + 2; }
5. public static void main(String[] args)
6. for(int x = 0; x < 5; bump(x))
7. System.out.print(x + " ");
8. } }
What is the result?
多选题以下是产品(PRODUCT)表中的数据:
PRODUCT
ID NUMBER
DESCRIPTION
MANUFACTURER ID
QUANTITY
COST
215
AAA 6pk-battery
NF10032
546
3.00
140
AA 2pk-battery
EL7968
2000
603
D 2pk-battery
OT456
318
1.10
725
C 2pk-battery
OT456
239
.75
218
AAA 6pk-battery
OT456
980
3.25
220
AAA 8pk-battery
NF10032
4.20
126
AA 2pk-battery
NF10032
2513
751
C 2pk-battery
EL7968
84
100
SELECT description, quantity, cost
FROM product
WHERE manufacturer_id LIKE "NF10032"
AND NVL(cost, 0)<5.00
ORDER BY quantity DESC, cost;
以上的查询语句将产生如下的哪个结果?
多选题下列命令中,哪个是SQL*Plus命令? A.UPDATE B.CHANGE C.SELECT D.ALTER TABLE
多选题Given:
2. public class Wacky {
3. public static void main(String[] args) {
4. int x = 5;
5. int y = (x < 6) ? 7 : 8;
6. System.out.print(y + " ");
7. boolean b = (x < 6) ? false : true;
8. System. out .println (b + " ");
9. assert(x < 6) : "bob";
10. assert( ((x < 6) ? false : true) ) : "fred";
11. } }
And, if the code compiles, the invocation:
java -ea Wacky
Which will be contained in the output? (Choose all that apply.)
多选题对于一个CHAR类型的列,以下哪个是它的默认长度? A.1 B.8 C.38 D.128 E.250 F.2000
多选题RMAN SWITCH命令与哪个SQL命令相等?
多选题使用如下的SQL语句查询数据库:
SELECT bonus
FROM salary
WHERE bonus BETWEEN 1 AND 250
OR (bonus IN (190, 500, 600)
AND bonus BETWEEN 250 AND 500);
请问这个SQL语句将返回如下的哪个值?
多选题你已经创建了虚拟专用目录,以便使多名DBA分担20个不同数据库的RMAN管理职责。只有将哪个角色授予每个虚拟目录所有者,才能使所有者访问已经注册的数据库?
多选题Given:
3. class Wanderer implements Runnable {
4. public void run() {
5. for(int i = 0; i < 2; i++)
6. System.out.print(Thread.currentThread() .getName() + " ");
7. } }
8. public class Wander {
9. public static void main(String[] args) {
10. Wanderer w = new Wanderer();
11. Thread t1 = new Thread();
12. Thread t2 = new Thread(w);
13. Thread t3 = new Thread(w, "fred");
14. t1.start(); t2.start(); t3.start();
15. } }
Which are true? (Choose all that apply.)
多选题创建容器数据库时,必须在CREATE DATABASE命令中使用下面的哪些子句?
多选题找出语法上不正确的RMAN DUPLICATE命令。
多选题Given:
2. public class Coyote {
3. public static void main(String[] args)
4. int x = 4;
5. int y = 4;
6. while((x = jump(x)) < 8)
7. do {
8. System.out.print(x + " ");
9. } while ((y = jump(y)) < 6);
10. }
11. static int jump(int x) {return ++x; }
12. }
What is the result?
多选题以下是视图EMP_HIST_V的结构:
EMP_HIST_V
Name Type
------------------- ------------
EMPLOYEE_ID NUMBER(6)
NAME VARCHAR2(15)
JOB VARCHAR2(9)
MANAGER NUMBER(4)
DATE_HIRED DATE
SALARY NUMBER(7, 2)
BONUS NUMBER(7, 2)
DEPARTMENT_ID NUMBER(2)
在以下的SQL语句中,哪两个不能成功地查询视图EMP_HIST_V?