Sail E0 Webinar

MCQs

Total Questions : 40 | Page 1 of 4 pages
Question 1. Which statement about sequences is not true?
  1.    A sequence is an object that generates a sequential series of unique numbers.
  2.    NextVal and CurrVal are both sequence methods.
  3.    Sequences are most often used to provide values for surrogate keys.
  4.    Sequences guarantee valid surrogate key values.
 Discuss Question
Answer: Option D. -> Sequences guarantee valid surrogate key values.
Question 2. 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.    Indexes are created with the ALTER TABLE command.
  4.    Columns that are frequently used with equal conditions in WHERE clauses are good candidates for indexes.
 Discuss Question
Answer: Option C. -> Indexes are created with the ALTER TABLE command.
Question 3. Which prefixes are available to Oracle triggers?
  1.    Neither :new nor :old
  2.    :old only
  3.    Both :new and :old
  4.    :new only
 Discuss Question
Answer: Option C. -> Both :new and :old
Question 4. 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.    To see the errors, enter SHOW ERRORS in SQL*Plus.
  3.    If there are no syntax errors, you will receive the message "NO ERRORS."
  4.    SQL*Plus will automatically show the errors to you.
 Discuss Question
Answer: Option B. -> To see the errors, enter SHOW ERRORS in SQL*Plus.
Question 5. What type of failure occurs when Oracle fails due to an operating system or computer hardware failure?
  1.    Media Failure
  2.    Rollback failure
  3.    Instance Failure
  4.    Application failure
 Discuss Question
Answer: Option C. -> Instance Failure
Question 6. Which of the following is not true about modifying table columns?
  1.    You can increase the number of characters in character columns or the number of digits in numeric columns
  2.    You can drop a column at any time.
  3.    You cannot increase or decrease the number of decimal places.
  4.    You can add a column at any time as long as it is a NULL column.
 Discuss Question
Answer: Option C. -> You cannot increase or decrease the number of decimal places.
Question 7. SQL*Plus will finish the statement and execute it when the user types in this:
  1.    A colon ( : ) followed by [Enter].
  2.    A left slash ( ) followed by [Enter].
  3.    A period ( . ) followed by [Enter].
  4.    A semicolon ( ; ) followed by [Enter].
 Discuss Question
Answer: Option D. -> A semicolon ( ; ) followed by [Enter].
Question 8. Which of the following is not true of SQL views?
  1.    Oracle views are created using the standard SQL-92 CREATE VIEW command.
  2.    Oracle views can by queried.
  3.    Oracle views cannot use the ORDER BY clause in view definitions.
  4.    The SQL-92 standard does not allow the use of the ORDER BY clause in view definitions.
 Discuss Question
Answer: Option C. -> Oracle views cannot use the ORDER BY clause in view definitions.
Question 9. Which of the following is NOT an Oracle-supported trigger?
  1.    BEFORE
  2.    AFTER
  3.    INSTEAD OF
  4.    DURING
 Discuss Question
Answer: Option D. -> DURING
Question 10. After a table has been created, its structure can be modified using the SQL command:
  1.    CHANGE TABLE [TableName].
  2.    ALTER TABLE [TableName].
  3.    UPDATE TABLE [TableName].
  4.    MODIFY TABLE [TableName].
 Discuss Question
Answer: Option B. -> ALTER TABLE [TableName].

Latest Videos

Latest Test Papers