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

  1. A.

    Only (i)

  2. B.

    Only (ii)

  3. C.

    Both (i) and (ii)

  4. 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.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs