Sail E0 Webinar

MCQs

Total Questions : 30 | Page 2 of 3 pages
Question 11. Which of the following is true concerning the following statement: class Manager extends Employee
  1.    Manager is a concrete class and a superclass.
  2.    Manager is a concrete class and a subclass.
  3.    Manager is an abstract class and a subclass.
  4.    Manager is an abstract class and a superclass.
 Discuss Question
Answer: Option B. -> Manager is a concrete class and a subclass.
Question 12. Which of the following is an ordered collection of elements of the same type?
  1.    Dictionary
  2.    Set
  3.    Bag
  4.    List
 Discuss Question
Answer: Option D. -> List
Question 13. The Object Query Language is which of the following?
  1.    Not similar to SQL
  2.    Similar to SQL and uses a select-from-where structure
  3.    Similar to SQL and uses a from-where structure
  4.    Similar to SQL and uses a select-where structure
 Discuss Question
Answer: Option B. -> Similar to SQL and uses a select-from-where structure
Question 14. Using OQL, you may do which of the following?
  1.    Return an entire collection of elements including duplicates.
  2.    Return a specific subset of elements using a given criteria.
  3.    All of these
  4.    Return a collection of elements without duplicates.
 Discuss Question
Answer: Option C. -> All of these
Question 15. A relationship should be specified how in the ODL?
  1.    One direction starting with the second class
  2.    Both directions
  3.    One direction starting with the first class
  4.    Neither direction
 Discuss Question
Answer: Option B. -> Both directions
Question 16. The ODMG Object Model supports only unary and binary relationships.
  1.    False
  2.    True
 Discuss Question
Answer: Option B. -> True
Question 17. The ODMG Object Model requires that a relationship be specified in both directions.
  1.    True
  2.    False
 Discuss Question
Answer: Option A. -> True
Question 18. The Object Model supports different literal types, but does not support atomic literals, collection literals, and structured literals.
  1.    False
  2.    True
 Discuss Question
Answer: Option A. -> False
Question 19. Before specifying a key for a class, you must specify its extent.
  1.    False
  2.    True
 Discuss Question
Answer: Option B. -> True
Question 20. ODL supports the abstract keyword for classes and operations.
  1.    False
  2.    True
 Discuss Question
Answer: Option A. -> False

Latest Videos

Latest Test Papers