Sail E0 Webinar

MCQs

Total Questions : 109 | Page 7 of 11 pages
Question 61. The SQL ALTER statement can be used to:
  1.    change the table data.
  2.    change the table structure.
  3.    delete rows from the table.
  4.    add rows to the table.
 Discuss Question
Answer: Option B. -> change the table structure.
Question 62. What SQL command can be used to delete columns from a table?
  1.    MODIFY TABLE TableName DROP ColumnName
  2.    MODIFY TABLE TableName DROP COLUMN ColumnName
  3.    ALTER TABLE TableName DROP ColumnName
  4.    ALTER TABLE TableName DROP COLUMN ColumnName
 Discuss Question
Answer: Option D. -> ALTER TABLE TableName DROP COLUMN ColumnName
Question 63. What SQL command can be used to add columns to a table?
  1.    ALTER TABLE TableName ADD ColumnName
  2.    ALTER TABLE TableName ADD COLUMN ColumnName
  3.    MODIFY TABLE TableName ADD ColumnName
  4.    MODIFY TABLE TableName ADD COLUMN ColumnName
 Discuss Question
Answer: Option A. -> ALTER TABLE TableName ADD ColumnName
Question 64. The command to remove rows from a table 'CUSTOMER' is:
  1.    DROP FROM CUSTOMER ...
  2.    UPDATE FROM CUSTOMER ...
  3.    REMOVE FROM CUSTOMER ...
  4.    DELETE FROM CUSTOMER WHERE ...
 Discuss Question
Answer: Option D. -> DELETE FROM CUSTOMER WHERE ...
Question 65. The SQL WHERE clause:
  1.    limits the row data are returned.
  2.    limits the column data that are returned.
  3.    Both A and B are correct.
  4.    Neither A nor B are correct.
 Discuss Question
Answer: Option A. -> limits the row data are returned.
Question 66. The command to eliminate a table from a database is:
  1.    DROP TABLE CUSTOMER;
  2.    DELETE TABLE CUSTOMER;
  3.    REMOVE TABLE CUSTOMER;
  4.    UPDATE TABLE CUSTOMER;
 Discuss Question
Answer: Option A. -> DROP TABLE CUSTOMER;
Question 67. Which of the following is the original purpose of SQL?
  1.    To define the data structures
  2.    To specify the syntax and semantics of SQL data definition language
  3.    To specify the syntax and semantics of SQL manipulation language
  4.    All of the above.
 Discuss Question
Answer: Option D. -> All of the above.
Question 68. The wildcard in a WHERE clause is useful when?
  1.    An exact match is necessary in a CREATE statement.
  2.    An exact match is necessary in a SELECT statement.
  3.    An exact match is not possible in a SELECT statement.
  4.    An exact match is not possible in a CREATE statement.
 Discuss Question
Answer: Option C. -> An exact match is not possible in a SELECT statement.
Question 69. The SQL keyword(s) ________ is used with wildcards.
  1.    NOT IN only
  2.    LIKE only
  3.    IN only
  4.    IN and NOT IN
 Discuss Question
Answer: Option B. -> LIKE only
Question 70. A subquery in an SQL SELECT statement is enclosed in:
  1.    parenthesis -- (...).
  2.    brackets -- [...].
  3.    CAPITAL LETTERS.
  4.    braces -- {...}.
 Discuss Question
Answer: Option A. -> parenthesis -- (...).

Latest Videos

Latest Test Papers