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

Answer: C. Both (i) and (ii)Modular programming involves breaking code into separate sections. C++ supports this via header files and namespaces, while Java uses packages and classes.…

  1. A.

    Only (i)

  2. B.

    Only (ii)

  3. C.

    Both (i) and (ii)

  4. D.

    Neither (i) nor (ii)

Attempted by 548 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: Rssb Basic Computer Instructor

Loading lesson…