3i Infotech Placement: Sample Questions 414 - 415 of 1245

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 414

Question

MCQ▾

Which of the following packaged procedure is UNRESTRICTED?

Choices

Choice (4)

a.

CALL_INPUT

b.

CLEAR_BLOCK

c.

USER_EXIT

d.

EXECUTE_QUERY

Answer

c.

Explanation

Understanding of Representation Basis Understricted and Restricted Sampling
  • Unrestricted package procedure does not interfere with the basic functions of SQL ⚹ Forms
  • It can be used in any triggers.

Below gives the list of restricted and unrestricted procedure

  • Call-unrestricted
  • User Exit- Unrestricted
  • Call_query- unrestricted
  • Break-unrestricted
  • Up-restricted
  • Execute Query- Restricted
  • Message- Restricted
  • Post- Restricted
  • Exit_form-Restricted

Question 415

Appeared in Year: 2004

Question

MCQ▾

If this method is overridden in a sub class, ________

Choices

Choice (4)

a.

The new method can return any type of values

b.

The argument list of new method should exactly match that of overridden method

c.

The return type of new method should exactly match that of overridden method

d.

Both b. and c. are correct

Answer

d.

Explanation

  • The overriding method has the same name, number and type of arguments, and return value as the method it overrides. (return type of a subclass can be a subclass of the return type of its superclass) .
  • Overriding method can have different throws clause if it doesn՚t specify any types not specified by the throws clause in the overridden method.
  • The access specifier for the overriding method can allow more but not less access than the overridden method. For example, a protected method in the superclass can be made public but not private.

Developed by: