Procedural and Object Oriented Programming (POP) - Quiz

  • AProcedure-Oriented
  • BObject-Oriented
  • C Both a and b
  • DNone of the above
  • A Objects and their interactions
  • B Functions and procedures
  • C Class hierarchies
  • D Data encapsulation
  • A By exposing data globally
  • B By encapsulating data within objects
  • C By ignoring data management
  • D By using only global variables
  • A Procedural programming
  • B Functional programming
  • C Object-oriented programming
  • D Assembly programming
  • A Increased complexity in code structure
  • B Difficulty in managing data encapsulation
  • C Lack of support for procedural abstraction
  • D Poor performance in executing functions
  • A By minimizing the use of functions
  • B By promoting code duplication
  • C By encapsulating data and behaviors within objects
  • D By avoiding the use of classes
  • A Inheritance promotes code reuse and extension
  • B Inheritance avoids the use of functions
  • C Inheritance eliminates the need for data encapsulation
  • D Inheritance reduces code modularity
  • A Procedural programming
  • B Functional programming
  • C Object-oriented programming
  • D Assembly programming
  • A Procedural programming encapsulates data within objects
  • B Procedural programming uses global data structures
  • C Procedural programming focuses on class hierarchies
  • D Procedural programming avoids the use of functions
  • A OOP reduces the need for modular design
  • B OOP promotes code duplication
  • C OOP enhances code reuse and flexibility
  • D OOP eliminates the need for data encapsulation