Among the following, which statement is correct about the modularity?
2023
Among the following, which statement is correct about the modularity?
- A.
Modularity means hiding the parts of the program
- B.
Modularity refers to dividing a program into subsequent small modules or independent parts
- C.
It refers to overloading the program’s part
- D.
More than one of the above
- E.
None of the above
Attempted by 533 students.
Show answer & explanation
Correct answer: B
Modularity in programming refers to the practice of dividing a program into smaller, independent modules or components. Each module performs a specific function and can be developed, tested, and maintained separately. This approach enhances code readability, reusability, and maintainability. It allows developers to focus on individual parts without affecting the entire system. Modularity is a key principle in software design, enabling better organization and scalability of programs.