Using PL/SQL With Object Types - questions and answers

Using PL/SQL With Object Types - questions and answers


1) Which methods implement some internal logic for comparing two objects? For example, a rectangle is bigger than another rectangle if both its sides are bigger.

A) Order method
B) Map method
C) Both A & B
D) None of the above
View Answer / Hide Answer

ANSWER: A) Order method




2) Constructors are functions that return a new object as its value.

A) True
B) False
View Answer / Hide Answer

ANSWER: A) True




3) The comparison methods are used for comparing objects. How many ways are available for comparing objects?

A) 4
B) 1
C) 2
D) 5
View Answer / Hide Answer

ANSWER: C) 2




4) When implementing methods using PL/SQL, you cannot call a base or supertype object method with the super keyword or an equivalent method in a derived object.

A) True
B) False
View Answer / Hide Answer

ANSWER: A) True




5) An object type can represent any real-world entity.

A) Yes
B) No
View Answer / Hide Answer

ANSWER: A) Yes


Post your comment