Professional Documents
Culture Documents
Oracle Mock Test at 4
Oracle Mock Test at 4
A.Block
B.extent
C.Tablespace
D.segment
A.OLTP
B.DSS
C.Where clause has functions
D.Tables that have only one record
A.Explain plan
B.Tkprof
C.DBMS_PROFILER
D.Statspack
A.Archive files
B.Redo
C.Undo
D.Temp
A.Smon
B.Pmon
C.sqlplus
D.Dbwr
A.Shared pool
B.Largepool
C.Database buffer cache
D.dispatchers
A. Unique
B. Primary key
C. Not null
D. Foreign key
E. Check
9. Which statement types wouldbe used to remove transactions more than one year old
from the table x (any table)
A. TCL-Transaction Control Statement
B. DCL
C. DML
D. DRL
10. Which four statements about oracle constraints true (Choose four)
C. A NOT NULL constraint ensures that all null values are not allowed
in a column
D. A Primary key constraint uniquely identifies each row of a table
F. A primary key constraint allows null values in a column when the column
is part of a set of column that uniquely identifies each row
14. Which of the following statement is used for creating primary key
for a table emp
A. EXplain plan
B. Export
C. DBMS_PROFILER
D. Import
A. Dbwr
B. Lgwr
C. clean
D. Pmon
A. CONCAT
B. ROUND
C. Trunc
D. Rpad
E. Instrb(Tentative answer)
A. Consistent
B. Maintain
C. DBWR
D. CKPT
Q1. With SQL, how can you delete the records where the "FirstName" is "Peter" in the
Persons Table?
(Choose correct one from multiple bellow)
1. INSERT NEW
2. ADD RECORD
3. ADD NEW
4. INSERT INTO
1. The user had to have knowledge of the table and index structures.
2. Navigational data access was far slower than declarative access.
3. Navigational access languages required the coder to embed their queries inside a procedural
language shell.
4. Navigational languages were far slower then SQL
Q5. What best describes the relationship between indexes and SQL performance?
1. SELECT UNIQUE
2. SELECT DIFFERENT
3. SELECT DISTINCT
4. None of the above
Q7. The CASE expression uses a selector which is:
1. X
2. C
3. DUMMY
4. None
Q11. With SQL, how do you select all the records from a table named "Persons" where the
value of the column "FirstName" is "Peter"?
Q12. How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons
table?
Q 14.
Q15.
1. To invoke a procedure.
2. Organize objects in the database.
3. Speed up PL/SQL procedures.
4. A, B and C.
Q16.
Q19. The OR operator displays a record if ANY conditions listed are true. The AND operator
displays a record if ALL of the conditions listed are true
1. False
2. True
3. None
4. Both
1. SORT
2. ORDER
3. SORT BY
4. ORDER BY
Q21. Examine the data in the EMPLOYEES and DEPARTMENTS tables.
EMPLOYEES
LAST_NAME DEPARTMENT_ID SALARY
Getz 10 3000
Davis 20 1500
King 20 2200
Davis 30 5000
Kochhar 5000
DEPARTMENTS
DEPARTMENT_ID DEPARTMENT_NAME
10 Sales
20 Marketing
30 Accounts
40 Administration
You want to retrieve all employees, whether or not they have matching departments in
the departments table. Which query would you use?
1. ?
2. /* */
3. Both (1) and (2)
4. #
Q25. What are the difference between %ROWTYPE and %TYPE in PL/SQL?
1. %ROWTYPE is used to associate a variable with an entire table row whereas %TYPE is used to
associate a variable with a single column type.
2. %ROWTYPE can be used in a cursor array processing whereas %TYPE cann't be.
3. %TYPE can be used in a cursor array processing whereas ROWTYPE cann't be.
4. %ROWTYPE can be used in a SQL also whereas %TYPE cann't be in SQL.
1. WHERE
2. RESTRICT
3. HAVING
4. GROUP BY
1. RIS
2. CHA
3. ARRIS
4. ARR
1. OPEN
2. SELECT
3. GET
4. EXTRACT
Q29. With SQL, how do you select all the records from a table named "Persons" where the
"FirstName" is "Peter" and the "LastName" is "Jackson"?