Sail E0 Webinar

MCQs

Total Questions : 69 | Page 1 of 7 pages
Question 1. You can add a row using SQL in a database with which of the following?
  1.    ADD
  2.    CREATE
  3.    INSERT
  4.    MAKE
 Discuss Question
Answer: Option C. -> INSERT
Question 2. The command to remove rows from a table 'CUSTOMER' is:
  1.    REMOVE FROM CUSTOMER ...
  2.    DROP FROM CUSTOMER ...
  3.    DELETE FROM CUSTOMER WHERE ...
  4.    UPDATE FROM CUSTOMER ...
 Discuss Question
Answer: Option C. -> DELETE FROM CUSTOMER WHERE ...
Question 3. Which of the following is the original purpose of SQL?
  1.    To specify the syntax and semantics of SQL data definition language
  2.    To specify the syntax and semantics of SQL manipulation language
  3.    To define the data structures
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above
Question 4. The SQL WHERE clause:
  1.    limits the column data that are returned.
  2.    limits the row data are returned.
  3.    Both A and B are correct.
  4.    Neither A nor B are correct.
 Discuss Question
Answer: Option B. -> limits the row data are returned.
Question 5. The wildcard in a WHERE clause is useful when?
  1.    An exact match is necessary in a SELECT statement.
  2.    An exact match is not possible in a SELECT statement.
  3.    An exact match is necessary in a CREATE statement.
  4.    An exact match is not possible in a CREATE statement.
 Discuss Question
Answer: Option B. -> An exact match is not possible in a SELECT statement.
Question 6. A view is which of the following?
  1.    A virtual table that can be accessed via SQL commands
  2.    A virtual table that cannot be accessed via SQL commands
  3.    A base table that can be accessed via SQL commands
  4.    A base table that cannot be accessed via SQL commands
 Discuss Question
Answer: Option A. -> A virtual table that can be accessed via SQL commands
Question 7. The command to eliminate a table from a database is:
  1.    REMOVE TABLE CUSTOMER;
  2.    DROP TABLE CUSTOMER;
  3.    DELETE TABLE CUSTOMER;
  4.    UPDATE TABLE CUSTOMER;
 Discuss Question
Answer: Option B. -> DROP TABLE CUSTOMER;
Question 8. ON UPDATE CASCADE ensures which of the following?
  1.    Normalization
  2.    Data Integrity
  3.    Materialized Views
  4.    All of the above
 Discuss Question
Answer: Option B. -> Data Integrity
Question 9. SQL data definition commands make up a(n) ________ .
  1.    DDL
  2.    DML
  3.    HTML
  4.    XML
 Discuss Question
Answer: Option A. -> DDL
Question 10. Which of the following is valid SQL for an Index?
  1.    CREATE INDEX ID;
  2.    CHANGE INDEX ID;
  3.    ADD INDEX ID;
  4.    REMOVE INDEX ID;
 Discuss Question
Answer: Option A. -> CREATE INDEX ID;

Latest Videos

Latest Test Papers