GK Question

technology easy mcq

Which symbol is used to denote comments in Python?

  1. //
  2. /*
  3. #
  4. --

Answer: #

In Python, # denotes single-line comments. Multi-line comments use triple quotes (''' or """). Other languages: // and /* */ in C/Java/JavaScript, -- in SQL. Comments improve code readability and documentation but are ignored by compilers/interpreters during execution.

Topic Database & Programming
Exam Relevance SSC JE, Banking IT, Railway