Skip to content

UGC NET CS 2017Programming Languages and Computer Graphics › Object Oriented ProgrammingVerified

UGC NET CS 2017 PYQ: Abstraction and encapsulation are fundamental principles that underlie the object oriented approach to…

Abstraction and encapsulation are fundamental principles that underlie the object oriented approach to software development. What can you say about the following two statements?

  1. Abstraction allows us to focus on what something does without considering the complexities of how it works.
  2. Encapsulation allows us to consider complex ideas while ignoring irrelevant detail that would confuse us.
  1. A
    Neither I nor II is correct
  2. B
    Both I and II are correct
  3. C
    Only II is correct
  4. D
    Only I is correct
    Correct answer

Answer

(D) Only I is correct

Approach

Distinguish abstraction from encapsulation.

Reviewed by UGC IQ Editorial Team.