Sei sulla pagina 1di 5

1. In the following query, which expression is evaluated first? SELECT id_number, (quantity 100 / 0.

.15 35 * 20) FROM inventory Correct 2. Which of the following queries are legal? You answered: SELECT deptno, avg(sal) FROM emp; Incorrect Correct answer: SELECT deptno, avg(sal) FROM emp GROUP BY deptno; 3. Which of the following queries displays the sum of all employee salaries for those employees not making commission, for each job, including only those sums greater than 2500? You answered: select job, sum(sal) from emp where sum(sal) > 2500 and comm is null; Incorrect Correct answer: select job, sum(sal) from emp where comm is null group by job having sum(sal) > 2500; 4. All of the following can ONLY be used with numeric data types except: Correct 5. What operator is used to prevent the error: ORA-01427:single row sub query returns more than one row ? Correct 6. Which of the following SQL operations demands the use of wild cards comparisons? Correct 7. Indicate whether this statement is true or false. A foreign key column must contain unique values. You answered: True Incorrect Correct answer: False 8. A stored procedure is only executed You answered: none of the above Incorrect Correct answer: when asked explicitly 9. A database trigger is an alternative for You answered: Stored procedure Incorrect Correct answer: Foreign key for implementing referential integrity 10. Which of the following statements regarding primary key is false? You answered: Primary key may contain duplicate values

Incorrect Correct answer: All of the above 11. A hot backup is Correct 12. A data block is You answered: all of the above Incorrect Correct answer: the smallest logical storage unit for a database object 13. What are the two ways to determine the structure of a table in database? You answered: Using DESCRIBE command and dbms_metadata_get_commit package Incorrect Correct answer: Using DESCRIBE command and dbms_metadata_get_ddl package 14. Where would you look for errors from the database engine? You answered: In the error log Incorrect Correct answer: In the alert log 15. Which type of index should be used on a fact table? You answered: A binary index Incorrect Correct answer: A bitmap index 16. What are the two types of tables involved in producing a star schema? You answered: Fact tables and user tables Incorrect Correct answer: Fact tables and dimension tables 17. Which of the following instance startup stages to a usable state where normal users might access them? You answered: STARTUP NOMOUNT, STARTUP MOUNT, STARTUP OPEN, STARTUP CLOSE Incorrect Correct answer: STARTUP MOUNT, STARTUP NOMOUNT, STARTUP OPEN 18. What TRUNCATE and DELETE commands does You answered: To remove some part of a table Incorrect Correct answer: To get rid of all rows in a table

19. Which of the following is the root directory for oracle? You answered: ORACLE_HOME Incorrect Correct answer: ORACLE_BASE 20. To determine the time zone under which a database was operating Correct 21. What command is used to encrypt a PL/SQL application? You answered: DB_ENCRYPT Incorrect Correct answer: WRAP 22. Which of the following are three advisory statistics to collect? Correct 23. How to force a log switch? You answered: By using ALTER SYSTEM LOG Incorrect Correct answer: By using ALTER SYSTEM SWITCH LOGFILE 24. Name the tool for tuning SQL statements. You answered: TUNEUP SYS Incorrect Correct answer: EXPLAIN PLAN 25. Which of the following is the fastest query method for a table? Correct 26. How should a many-to-many relationship be handled? You answered: By adding union entity table Incorrect Correct answer: By adding intersection entity table 27. What is the probable cause for getting the following error stack? ERROR: ORA-01034: ORACLE not available ORA-07318: smsget: open error when opening sgadef.dbf file. HP-UX Error: 2: No such file or directory You answered: The Oracle segment is shutdown that they are trying to access Incorrect Correct answer: The Oracle instance is shutdown that they are trying to access

28. How many triggers can be applied to a single table in Oracle? You answered: 16 Incorrect Correct answer: 12 29. Which of the following statements is true? You answered: Explicit cursors can handle tables with only 16 rows Incorrect Correct answer: Implicit cursors are not named 30. Which of the following are the pseudo-columns? You answered: ROW_NUM,ROW_ID Incorrect Correct answer: SYSDATE,USER,CURVAL,NEXTVAL 31. For referential integrity to hold, any field in a table that is declared a super key can contain only values from a parent table's primary key or a candidate key. You answered: True Incorrect Correct answer: False 32. Which of the following statements hold true for a cursor? You answered: Specify positioning at specific rows in the result set Incorrect Correct answer: Both a and c above 33. ____________ involves putting different rows into different tables Correct 34. _______________ are padded with space characters to match the specified length. Correct 35. Which of the following below are types of background processes in Oracle? Correct 36. ___________ contains the physical structure of a database Correct 37. Using synonyms is a good way to implement location transparency. Correct 38. A cluster is a schema object that contains data from _____________ , all of which have one or more columns in common.

You answered: one table Incorrect Correct answer: two or more tables 39. ____________ is an area on disk which comprises of one or more disk files Correct 40. What is the the use of Rollback Segment? Correct

Potrebbero piacerti anche