Managing Databases With Oracle(Database ) Questions and Answers

Question 1. What type of failure occurs when Oracle fails due to an operating system or computer hardware failure?
  1.    Application failure
  2.    Instance Failure
  3.    Media Failure
  4.    Rollback failure
Explanation:-
Answer: Option B. -> Instance Failure

Question 2. Which statement about sequences is not true?
  1.    A sequence is an object that generates a sequential series of unique numbers.
  2.    Sequences are most often used to provide values for surrogate keys.
  3.    NextVal and CurrVal are both sequence methods.
  4.    Sequences guarantee valid surrogate key values.
Explanation:-
Answer: Option D. -> Sequences guarantee valid surrogate key values.

Question 3. Which prefixes are available to Oracle triggers?
  1.    :new only
  2.    :old only
  3.    Both :new and :old
  4.    Neither :new nor :old
Explanation:-
Answer: Option C. -> Both :new and :old

Question 4. Which of the following is not true about indexes?
  1.    Indexes are created to enforce uniqueness on columns.
  2.    Indexes are created to enable fast retrieval by column values.
  3.    Columns that are frequently used with equal conditions in WHERE clauses are good candidates for indexes.
  4.    Indexes are created with the ALTER TABLE command.
Explanation:-
Answer: Option D. -> Indexes are created with the ALTER TABLE command.

Question 5. In creating a procedure, you may get a message if you have compile errors. Which of the following is true?
  1.    The line numbers reported match the line numbers you see in your text editor.
  2.    SQL*Plus will automatically show the errors to you.
  3.    To see the errors, enter SHOW ERRORS in SQL*Plus.
  4.    If there are no syntax errors, you will receive the message "NO ERRORS."
Explanation:-
Answer: Option C. -> To see the errors, enter SHOW ERRORS in SQL*Plus.

Question 6. The semicolon terminates a SQL statement (and executes it).
  1.    True
  2.    False
Explanation:-
Answer: Option A. -> True

Question 7. You can check on the status of tables with the DESCRIBE or DESC command.
  1.    True
  2.    False
Explanation:-
Answer: Option A. -> True

Question 8. SQL*Plus is a text editor.
  1.    True
  2.    False
Explanation:-
Answer: Option A. -> True

Question 9. Oracle directly supports the definition of surrogate keys.
  1.    True
  2.    False
Explanation:-
Answer: Option B. -> False

Question 10. When you type Start FILENAME, the statement in your file will be executed automatically.
  1.    True
  2.    False
Explanation:-
Answer: Option A. -> True