Multiple choice technology operating systems

Which of the following is a commented line?

  1. *This is commented

  2. //This is commented

  3. #This is commented

  4. #/This is commented

Reveal answer Fill a bubble to check yourself
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.