3i Infotech Placement: Sample Questions 602 - 604 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 602


Describe in Detail


What is encapsulation?


Understanding of Encapsulations
  • A process of wrapping of data and methods in a single unit- “object” is called encapsulation.
  • Thus, state and behaviour are now in a single container.
  • Encapsulation is done using class keyword-
    • State is represented by declaration of variables on attributes
    • Behaviour is represented by operations in terms of methods

Advantage of Encapsulation:

  • Encapsulation secures data from other methods- data is available only within the class not accessible outside the class.
  • Data inside the class can only be manipulated by functions in the class

Benefit of Encapsulation:

  • Provides abstraction between an object and its clients.
  • Protects an object from unwanted access by clients.
  • Example: A bank application forbids a client to change an account՚s balance.

Question 603

Write in Short

Short Answer▾

Reorders of


Step 1

Step 2

Step 3

Step 4

So, correct answer

Question 604


Write in Short

Short Answer▾

What is Fully Functional dependency?


Example of Full Functional Dependency
  • It is based on concept of full functional dependency.
  • A functional dependency X Y is full functional dependency if removal of any attribute A from X means that the dependency does not hold any more.
  • X functionally determines Y.

If for each pair of tuples and for all relations in :

If then we must also have

Developed by: