Which of the following is a commented line?
-
*This is commented
-
//This is commented
-
#This is commented
-
#/This is commented
C
Correct answer
Explanation
In shell scripting, the # symbol is used for comments. Any text following # on a line is ignored by the shell interpreter. The * symbol is used for file globbing (wildcards), // is used in C-style languages like Java/C++ for single-line comments, and #/ is not a standard comment syntax.