Sail E0 Webinar

MCQs

Total Questions : 8
Question 1. This set of Database Questions & Answers focuses on "SQL Data Types and SchemasDates must be specified in the format
  1.    mm/dd/yy
  2.    yyyy/mm/dd
  3.    dd/mm/yy
  4.    yy/dd/mm
 Discuss Question
Answer: Option B. -> yyyy/mm/dd


yyyy/mm/ddyyyy/mm/dd is the default format in sql


Question 2. Values of one type can be converted to another domain using which of the following ?
  1.    Cast
  2.    Drop type
  3.    Alter type
  4.    Convert
 Discuss Question
Answer: Option A. -> Cast


CastExample of cast :cast (department.budget to numeric(12,2)). SQL provides drop type and alter type clauses to drop or modify types that have been created earlier.


Question 3. An ________ on an attribute of a relation is a data structure that allows the database system to find those tuples in the relation that have a specified value for that attribute efficiently, without scanning through all the tuples of the relation.
  1.    Index
  2.    Reference
  3.    Assertion
  4.    Timestamp
 Discuss Question
Answer: Option A. -> Index


IndexIndex is the reference to the tuples in a relation.


Question 4. The user defined data type can be created using
  1.    Create datatype
  2.    Create data
  3.    Create definetype
  4.    Create type
 Discuss Question
Answer: Option D. -> Create type


Create typeThe create type clause can be used to define new types.Syntax : create type Dollars as numeric(12,2) final; .


Question 5. Which of the following is used to store movie and image files ?
  1.    Clob
  2.    Blob
 Discuss Question
Answer: Option B. -> Blob


BlobSQL therefore provides large-object data types for character data (clob) and binary data (blob). The letters "lob in these data types stand for "Large OBject.


Question 6. Which of the following closely resembles Create view ?
  1.    Create table . . .like
  2.    Create table . . . as
  3.    With data
  4.    Create view as
 Discuss Question
Answer: Option B. -> Create table . . . as


Create table . . . asThe 'create table . . . as' statement closely resembles the create view statement and both are defined by using queries.The main difference is that the contents of the table are set when the table is created, whereas the contents of a view always reflect the current query result.


Question 7. Which of the following statements creates a new table temp instructor that has the same schema as instructor.
  1.    create table temp_instructor;
  2.    Create table temp_instructor like instructor;
  3.    Create Table as temp_instructor;
  4.    Create table like temp_instructor;
 Discuss Question
Answer: Option B. -> Create table temp_instructor like instructor;


Create table temp_instructor like instructor;


Question 8. In contemporary databases the top level of the hierarchy consists of ______, each of which can contain _____.
  1.    Catalogs, schemas
  2.    Schemas, catalogs
  3.    Environment, schemas
  4.    Schemas, Environment
 Discuss Question
Answer: Option A. -> Catalogs, schemas


Catalogs, schemas


Latest Videos

Latest Test Papers