Sql For Database Construction(Database ) Questions and Answers

Question 1. The SQL command to create a table is:
  1.    MAKE TABLE
  2.    ALTER TABLE
  3.    DEFINE TABLE
  4.    CREATE TABLE
Explanation:-
Answer: Option D. -> CREATE TABLE

Question 2. The DROP TABLE statement:
  1.    deletes the table structure only.
  2.    deletes the table structure along with the table data.
  3.    works whether or not referential integrity constraints would be violated.
  4.    is not an SQL statement.
Explanation:-
Answer: Option B. -> deletes the table structure along with the table data.

Question 3. The SQL statement to create a view is:
  1.    CREATE VIEW
  2.    MAKE VIEW
  3.    SELECT VIEW
  4.    INSERT VIEW
Explanation:-
Answer: Option A. -> CREATE VIEW

Question 4. A ________ is a stored program that is attached to a table or a view.
  1.    pseudofile
  2.    embedded SELECT statement
  3.    trigger
  4.    None of the above is correct.
Explanation:-
Answer: Option C. -> trigger

Question 5. SQL views can be used to hide:
  1.    columns and rows only.
  2.    complicated SQL syntax only.
  3.    both of the above can be hidden by an SQL view.
  4.    None of the above is correct.
Explanation:-
Answer: Option C. -> both of the above can be hidden by an SQL view.

Question 6. There are three SQL data modification operations: insert, modify and delete.
  1.    True
  2.    False
Explanation:-
Answer: Option A. -> True

Question 7. Three types of triggers are: BEFORE, AFTER and EXCEPTION.
  1.    True
  2.    False
Explanation:-
Answer: Option B. -> False

Question 8. SQL statements can be embedded in triggers, stored procedures, and program code.
  1.    True
  2.    False
Explanation:-
Answer: Option A. -> True

Question 9. A view that contains a computed column can be easily updated.
  1.    True
  2.    False
Explanation:-
Answer: Option B. -> False

Question 10. To update an SQL view, the DBMS must be able to associate the column(s) to be updated with:
  1.    a particular column in a particular underlying table.
  2.    a particular column in a particular row.
  3.    a particular row in a particular underlying table.
  4.    None of the above is correct.
Explanation:-
Answer: Option C. -> a particular row in a particular underlying table.