Which of the following is/are modular programming languages? (i) C++ (ii) Java
2022
Which of the following is/are modular programming languages?
(i) C++
(ii) Java
- A.
Only (i)
- B.
Only (ii)
- C.
Both (i) and (ii)
- D.
Neither (i) nor (ii)
Attempted by 220 students.
Show answer & explanation
Correct answer: C
Modular programming involves breaking code into separate sections. C++ supports this via header files and namespaces, while Java uses packages and classes. Since both languages offer these features for code organization, they are considered modular programming languages.