Question 156Asked in DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)

Which of the following symbol is used to add comments in the Python language?

  1. A*
  2. B#
  3. C!
  4. D//
Show answerHide answer

Correct answer: (B) #

Explanation

In Python, # starts a single-line comment; everything after it on that line is ignored.

From DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM)

This is question 156 of DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.