Join WhatsApp ChannelDaily MCQs & Exam Updates
Computer Science Easy FPSC Uploaded: 23 Aug 2026

What is encapsulation in OOP?

  • A Connecting to a network
  • B Deleting unused code
  • C Compiling a program
  • D Bundling data and methods into a single unit
Correct Answer: Option D — Bundling data and methods into a single unit
Explanation:
Encapsulation is the OOP principle of bundling data and the methods that operate on that data within a single unit or class, restricting direct access to protect data integrity.
Submitted by: PaperMCQs
Related MCQs