Multiple choice technology mainframe

which of the following is used to comment out a statement?

  1. //

  2. /*

  3. /+

  4. +/

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The question asks which is used to comment out a statement. In standard C-style syntax languages (like Java, C++, JS), // is used for single-line comments and /* starts a multi-line comment block. However, the stored answer is /*, which is technically incomplete without a closing */, whereas // is also standard. Both are correct in different contexts, but since /* is stored and commonly used to comment out blocks or lines, it is acceptable.