Oracle Practice Test - 26

Oracle Practice Test - 26

22 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

How many join conditions should be there to avoid a Cartesian Join for joining three tables?

  1. 1
  2. 2
  3. 3
  4. None of the above
Question 2 Multiple Choice (Single Answer)

Which of the following types of joins should be written to perform an outer join of tables A and B that returns all rows from B?

  1. Any outer join
  2. A left outer join
  3. A cross join
  4. A right outer join
  5. An inner join
Question 3 Multiple Choice (Single Answer)

When a replication site pulls changes from another site, what type of replication is used?

  1. Master site
  2. Snapshot site
  3. Either a snapshot or master site
Question 4 Multiple Choice (Single Answer)

How to create a table space?

  1. With alter database command
  2. With alter system command
  3. Using create command
  4. None of the above
Question 5 Multiple Choice (Single Answer)

Which of the following storage structures provides a way to physically store rows from more than one table in the same data block?

  1. Cluster table
  2. Partitioned table
  3. Unclustered table
  4. Index-organized table
Question 6 Multiple Choice (Single Answer)

A Ref cursor can be passed from one procedure to another

  1. True
  2. False
Question 7 Multiple Choice (Single Answer)

A hot backup is _______.

  1. taking up the backup of the database while it is still up and running
  2. taking up the backup of the database after the user logs off
  3. taking up the backup followed by taking cold backup
  4. none of the above
Question 8 Multiple Choice (Single Answer)

Which of the following statments is true about alerts?

  1. A maximum of one undo alert is received per every 12-hour period.
  2. A maximum of one undo alert is received during a 24-hour period.
  3. A maximum of one tablespace alert is received during a 124-hour period.
  4. A maximum of one tablespace alert is received during a 24-hour period.
Question 9 Multiple Choice (Single Answer)

Which of the following SELECT statements should be used to extract the year from the system date to display it in the format “2001”?

  1. SELECT TO_CHAR(SYSDATE, 'yyyy') FROM dual;
  2. SELECT TO_DATE(SYSDATE, 'yyyy') FROM dual;
  3. SELECT DECODE(SUBSTR(SYSDATE, 8), 'YYYY') FROM dual;
  4. SELECT DECODE(SUBSTR(SYSDATE, 8), 'year') FROM dual;
Question 10 Multiple Choice (Single Answer)

The database EMPLOYEES table has a foreign key constraint referencing the DEPARTMENTS table. A Human Resource application is being developed. HR clerks use the Employees form to query, update, and insert employee records. They occasionally attempt to add an employee who is in a new department that has not yet been entered into the database. When this happens, they receive an error indicating that the parent record cannot be found, so they cannot commit the employee record. The HR clerks have requested that a button be placed on the form to enable them to invoke the Departments form to enter the new department and save it independently. They want to be able to return to the Employees form and decide whether or not to save the new employee record. How should the When-Button-Pressed trigger be coded to achieve this?

  1. CALL_FORM('Departments);
  2. CALL_FORM('Departments',NO_HIDE);
  3. OPEN_FORM('Departments');
  4. OPEN_FORM('Departments', ACTIVATE, SESSION);
  5. OPEN_FORM('Departments', NO_ACTIVATE, NO_SESSION);
Question 11 Multiple Choice (Single Answer)

How can whole record be retrieved in PL/SQL without using any loop or cursor?

  1. Not possible
  2. Bulk collect
  3. Procedure
  4. Function
Question 12 Multiple Choice (Single Answer)

Which of the following SQL SELECT statement clauses is an example of the selection capability, but not the joining capability?

  1. WHERE d.deptno = 10
  2. SELECT *
  3. WHERE d.deptno = e.deptno
  4. SELECT id_number, description, cost
Question 13 Multiple Choice (Single Answer)

What is the difference between I/O slaves and DBWn processes for the DB Writer?

  1. In Oracle8i, I/O slaves are not available; only DBWn processes are available.
  2. I/O slaves perform the write function only, while DBWn processes also perform date-gathering activity.
  3. I/O slaves will work only with synchronous I/O, whereas DBWn processes are available only within asynchronous I/0.
  4. I/O slaves will work only with asynchronous I/O, whereas DBWn processes are available only within synchronous I/0.
Question 14 Multiple Choice (Single Answer)

Which of the following constructs can be used to return data based on an unknown condition?

  1. An ORDER BY clause
  2. An GROUP BY clause
  3. A WHERE clause with an OR condition
  4. A Subquery
Question 15 Multiple Choice (Single Answer)

Which of the following groups allows its members to connect to a 9i database using the SYSDBA privilege?

  1. OSDBA
  2. 9iDBA
  3. OSADM
  4. OSOPER
  5. None of the above
Question 16 Multiple Choice (Single Answer)

What will the PARTITION BY clause in a partitioned outer join statement do?

  1. Partition the output rows into equal segments
  2. Partition the table into equal subpartitions
  3. Partition the rows in the output based on the expression provided within the clause
  4. Partition the underlying table, using Oracle's partitioning option
Question 17 Multiple Choice (Single Answer)

JOHN is using the Oracle Net Configuration Assistant to configure his machine to use local naming. He chose TNSNAMES (local naming) as his connection method, specified a database service name, entered the network protocol, and then specified a host name and a listener port. What is the next step he should take?

  1. Test the connection
  2. Configure a listener
  3. Specify a net service name
  4. Specify the Oracle database version
Question 18 Multiple Choice (Single Answer)

Which of the following statements concerning the Export/Import Utilities is true?

  1. The direct-path feature allows a user to extract database objects faster than the conventional-path.
  2. The Export Utility can be used to make a logical backup of a table, a tablespace, or a table's associated data files.
  3. The FULL database export mode exports all database objects regardless of the schema.
  4. Performing an export/import of a tablespace is quicker than using the transportable tablespace method to transfer a table and its data.
Question 19 Multiple Choice (Single Answer)

The first step in placing a database into ARCHIVELOG mode has been performed. The second step is deciding whether the online redo log files are to be archived automatically or manually. Which of the following actions should be taken to enable archiving at instance startup?

  1. Immediately after setting the database in ARCHIVELOG mode, in SQL*Plus select automatic archiving using this syntax: ALTER DATABASE SET LOG_ARCHIVE_START=TRUE.
  2. Automatic archiving is the default when ARCHIVELOG mode is set. No further actions are required.
  3. Set the LOG_ARCHIVE_MAX_PROCESSES parameter to n (where n is the number of Archiver processes) in the initialization parameter file.
  4. Set the LOG_ARCHIVE_START parameter to TRUE in the initialization parameter file.
Question 20 Multiple Choice (Single Answer)

Examine the given code:SELECT employee_id FROM employees WHERE commission_pct=.5 OR salary > 23000

Which of the following statements is correct with regard to the given code?

  1. It returns employees who have 50% of the salary greater than $23,000:
  2. It returns employees who have 50% commission rate or salary greater than $23,000:
  3. It returns employees who have 50% of salary less than $23,000:
  4. None of the above
Question 21 Multiple Choice (Single Answer)

A partitioned table named ITEM is maintained. The following statement was issued:

ALTER TABLE ITEM
DROP PARTITION p1
UPDATE GLOBAL INDEXES
PARALLEL (DEGREE 3);

Which of the following statements represents the result of including the UPDATE GLOBAL INDEXES clause?

  1. After the P1 partition is dropped, all global B-tree and function-based indexes are automatically rebuilt.
  2. After the P1 partition is dropped, all global indexes that were marked UNUSABLE will be automatically rebuilt.
  3. All global indexes on the ITEM table remain intact throughout the DDL operation.
  4. Other DML statements can continue to use the any global B-tree indexes without interruption.