Sail E0 Webinar

MCQs

Total Questions : 17 | Page 1 of 2 pages
Question 1. Which of the following is not a integrity constraint ?
  1.    Not null
  2.    Positive
  3.    Unique
  4.    Check 'predicate'
 Discuss Question
Answer: Option B. -> Positive


PositivePositive is a value and not a constraint.


Question 2. To include integrity constraint in a existing relation use :
  1.    Create table
  2.    Modify table
  3.    Alter table
 Discuss Question
Answer: Option C. -> Alter table


Alter tableSYNTAX “ alter table table-name add constraint , where constraint can be any constraint on the relation.


Question 3. Domain constraints, functional dependency and referential integrity are special forms of _________.
  1.    Foreign key
  2.    Primary key
  3.    Assertion
  4.    Referential constraint
 Discuss Question
Answer: Option C. -> Assertion


AssertionAn assertion is a predicate expressing a condition we wish the database to always satisfy.


Question 4. Foreign key is the one in which the ________ of one relation is referenced in another relation.
  1.    Foreign key
  2.    Primary key
  3.    References
  4.    Check constraint
 Discuss Question
Answer: Option B. -> Primary key


Primary keyThe foreign-key declaration specifies that for each course tuple, the department name specified in the tuple must exist in the department relation.


Question 5. Which of the following is the right syntax for assertion?
  1.    Create assertion 'assertion-name' check 'predicate';
  2.    Create assertion check 'predicate' 'assertion-name';
  3.    Create assertions 'predicates';
  4.    All of the mentioned
 Discuss Question
Answer: Option A. -> Create assertion 'assertion-name' check 'predicate';


Create assertion 'assertion-name' check 'predicate';


Question 6. Data integrity constraints are used to:
  1.    Control who is allowed access to the data
  2.    Ensure that duplicate records are not entered into the table
  3.    Improve the quality of data entered for a specific property (i.e., table column)
  4.    Prevent users from changing the values stored in the table
 Discuss Question
Answer: Option C. -> Improve the quality of data entered for a specific property (i.e., table column)


Improve the quality of data entered for a specific property (i.e., table column)


Question 7. _____________, express the number of entities to which another entity can be associated via a relationship set.
  1.    Mapping Cardinality
 Discuss Question
Answer: Option A. -> Mapping Cardinality


Mapping CardinalityMapping cardinality is also called as cardinality ratio.


Question 8. Which of the following can be addressed by enforcing a referential integrity constraint?
  1.    All phone numbers must include the area code
  2.    Certain fields are required (such as the email address, or phone number) before the record is accepted
  3.    Information on the customer must be known before anything can be sold to that custome
  4.    When entering an order quantity, the user must input a number and not some text (i.e., 12 rather than 'a dozen')
 Discuss Question
Answer: Option C. -> Information on the customer must be known before anything can be sold to that custome


Information on the customer must be known before anything can be sold to that customeThe information can be referred and obtained .


Question 9. An entity in A is associated with at most one entity in B, and an entity in B is associated with at most one entity in A.This is called as
  1.    One-to-many
  2.    One-to-one
  3.    Many-to-many
  4.    Many-to-one
 Discuss Question
Answer: Option B. -> One-to-one


One-to-oneHere one entity in one set is related to one one entity in other set.


Question 10. An entity in A is associated with at most one entity in B. An entity in B, however, can be associated with any number (zero or more) of entities in A.
  1.    One-to-many
  2.    One-to-one
  3.    Many-to-many
  4.    Many-to-one
 Discuss Question
Answer: Option D. -> Many-to-one


Many-to-oneHere more than one entity in one set is related to one one entity in other set.


Latest Videos

Latest Test Papers