1.

Which of the following supports the concept that reusability is a desirable feature of a language?(a) It reduces the testing time(b) It reduces maintenance cost(c) It decreases the compilation time(d) It reduced both testing and maintenance timeThis question was posed to me in a national level competition.Query is from OOPs Concept in chapter Basics Concepts of C++ of C++

Answer»

Correct answer is (d) It reduced both testing and maintenance TIME

The EXPLANATION: As we will be using the existing code THEREFORE we don’t need to check the code again and again so testing and maintenance time decreases but the compiler time may increase or remains same because though we are reusing the code but every PART needs to be compiled and EXTRA include statement needs to be executed therefore compilation time may remain same or increases.



Discussion

No Comment Found

Related InterviewSolutions