EMERGING TRENDS IN SOFTWARE ENGINEERING
MISCELLANEOUS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
What of this is NOT a bad practice while commenting code?
|
Divide code into sections
|
|
Explain every part of the code, from an entire class to each variable
|
|
Code documentation
|
|
Disable code that is no more needed
|
Explanation:
Detailed explanation-1: -Why are most comments bad? Most comments are bad because developers can’t realistically maintain them. Over time, comments can become inaccurate and misleading, which is worse than not having comments. Not all comments need to be there.
Detailed explanation-2: -The answer is option D that is Comments are not ingnored by the compiler. Comments are ignored by the compiler that is tru…
There is 1 question to complete.