Oracle Practice Test - 1

Oracle Practice Test - 1

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)

What output will the given statement produce?
Select NVL2(NULL,'NOT NULL', NULL) from dual;

  1. NULL
  2. NOT NULL
  3. Function NVL2 is not defined.
  4. None of the above
Question 3 Multiple Choice (Single Answer)

A developer wants to change an existing application which requires to change the source table of the block from Order items to Products table to provide information related to the various products sold by the company during the year 2004-2005. How can this change be implemented?

  1. Select the Frame consisting of the items of the Order Items block. Click on the Tools menu button and click the Layout Wizard.
  2. Multi Select the Items of the Orders Items table, then right-click and click on the Data Block wizard.
  3. The table which is being associated with a Database Data block cannot be changed once it has been created.
Question 4 Multiple Choice (Single Answer)

What Oracle backup and recover file contains user and system data?

  1. Control file
  2. Data file
  3. OnLine ReDo file
  4. Offline ReDo file
Question 5 Multiple Choice (Single Answer)

A form was being developed that serves as a front end to access the Order Entry application. Within the form, the usernames of those users should be stored who have permissions to run the application. This information is accessed when the form starts up to determine if the user is authorized. The list of usernames is not stored in the database and should not be visible to users. How should this information be stored?

  1. In a list item
  2. In a list of values
  3. In a set of parameters
  4. In a record group
Question 6 Multiple Choice (Single Answer)

What is a default role?

  1. A role that requires a password
  2. A role that requires no password
  3. A role automatically enabled when the user logs on
  4. A role automatically assigned when the user is created
Question 7 Multiple Choice (Single Answer)

What is the new Oracle Shared Server?

  1. An improved version of multithreaded server configuration
  2. A connection pooling configuration where several clients are connected to the same server process
  3. Two more database servers, which share data by means of database links; the client software is unaware to which server it is connected
  4. A configuration of Real Application Cluster where the client connection is routed to the least busy instance
Question 8 Multiple Choice (Single Answer)

The PMON background process performs all system monitoring functions on the oracle database.

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

What does unloading of data refer to? How can the ownership of all of a user's objects change during a data pump import?

  1. The reading of data from external datafiles into external tables
    REMAP_SCHEMA=source_schema:targer_schema
  2. The writing of data from Oracle tables to external datafiles
    REMAP_TABLESPACE=source_tablespace:target_tablespace
  3. The writing of data from external datafiles into external tables
    FROMUSER TOUSER
  4. The reading of data from Oracle tables into external
    datafilesREMAP_TABLESPACE=source_tablespace:source_tablespace
Question 10 Multiple Choice (Single Answer)

Which table type should be used to provide fast key-based access to table data for queries involving exact matches and range searches?

  1. Regular table
  2. Clustered table
  3. Partitioned table
  4. Index-organized table
Question 11 Multiple Choice (Single Answer)

____________ directs the complier to add the user defined error message to the oracle error number.

  1. Pragma Init Exception
  2. Pragma Exception
  3. ORA_EXCEPTION
  4. ORA_USER_EXCEPTION
Question 12 Multiple Choice (Single Answer)

What is the equivalent of the old DROP TABLE command in Oracle Database 10g?

  1. DROP TABLE NO PURGE
  2. DROP TABLE works exactly the way it did in previous versions.
  3. DROP TABLE … PURGE
  4. DROP TABLE … TO BEFORE DROP
Question 13 Multiple Choice (Single Answer)

Which Oracle Net Services feature supports authentication methods such as token cards through the use of authentication adapters?

  1. Heterogeneous Services
  2. Firewalls
  3. Oracle Advanced Security
  4. Oracle Connection Manager
Question 14 Multiple Choice (Single Answer)

DANNY is coding a When-New-Form-Instance trigger to populate a hierarchical tree item called Emp_Tree that should initially appear as shown in the exhibit. Mr. King, the president of the company, is the only employee who does not have a manager.

In the trigger, DANNY declares a variable called rg_emps that is of the RECORD GROUP data type. He will use this record group to populate the tree. He uses the following code to create the record group:

rg_emps := Create_Group_Form_Query('rg_emps', 'Select 1, level, last_name, NULL, to_char(employee_id) from employees connect by prior employee_id = manager_id; start with manager_id is null');

He then programmatically populates the record group, and then populates the tree with the record group. He runs the form to test it. Will the tree initially appear as shown? If not, why?

  1. Yes, the tree will appear as shown.
  2. No, the first element selected in the select statement should be 4 because he wanted four levels of the tree to be displayed.
  3. No, he should eliminate the last element selected in the select statement, because he does not want to display the employees ID.
  4. No, the 'connect by' statement should be 'connect by prior manager_id = employee_id'.
Question 15 Multiple Choice (Single Answer)

A client-server application has become very popular and hundreds of users are accessing the Oracle Server daily. Which networking solution should be implemented to ensure that all users can access the Oracle Server?

  1. Dedicated Server
  2. Directory Naming
  3. Oracle Connection Manager
  4. Heterogeneous Services
Question 16 Multiple Choice (Single Answer)

Which of the following statements about an Oracle instance is true?

  1. The redo log buffer is NOT a part of the shared memory area of an Oracle instance.
  2. Multiple instances can be executed on the same computer, each accessing its own physical database.
  3. An Oracle instance is a combination of memory structures, background processes, and user processes.
  4. In a shared server environment, the memory structure component of an instance consists of a single SGA and a single PGA.
Question 17 Multiple Choice (Single Answer)

The STUDENT_GRADES table has the following columns:STUDENT_ID NUMBER (12)SEMESTER_END DATEGPA NUMBER (4, 3)

Which of the following statements finds the highest Grade Point Average (GPA) per semester?

  1. SELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL;
  2. SELECT (gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;
  3. SELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL GROUP BY semester_end;
  4. SELECT MAX(gpa) GROUP BY semester_end WHERE gpa IS NOT NULL FROM student_grades;
  5. SELECT MAX(gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;
Question 18 Multiple Choice (Single Answer)

Which of the following can be a valid column name?

  1. Column
  2. 1966_Invoices
  3. Catch_#22
  4. #Invoices
  5. None of the above
Question 19 Multiple Choice (Single Answer)

Which operator will be evaluated first in the given statement?
select (2+3*4/2-8) from dual:

  1. +
  2. -
  3. /
  4. *
Question 20 Multiple Choice (Single Answer)

Evaluate the following SELECT statement:

SELECT emp_id, name
FROM emp
WHERE emp_id NOT IN (SELECT emp_id
FROM emp
WHERE dept_id = 30
AND job = 'SALESMAN');

What would happen if the inner query returned a NULL value?

  1. No rows would be selected from the EMPLOYEE table.
  2. A syntax error would be returned.
  3. All the EMPLOYEE_ID and NAME values in the EMPLOYEE table would be displayed.
  4. Only the rows with EMPLOYEE_ID values equal to NULL would be included in the results.
Question 21 Multiple Choice (Single Answer)

The storage parmeters for a given table are: INITIAL=100, NEXT=100, MINEXTENTS=2, MAXEXTENTS=10, PCTINCREASE=20. If the first 3 extents are filled, what will be the size of the FOURTH extent?

  1. 120
  2. 140
  3. 144
  4. 240
  5. 400