Computer Science, asked by kk8565711, 6 months ago

Which of the following can be used to create comment?
#

" " "

' ' '

All of the above

Answers

Answered by ReolJose
2

Explanation:

A comment starts with a slash asterisk /* and ends with a asterisk slash */ and can be anywhere in your program. Comments can span several lines within your C program. Comments are typically added directly above the related C source code

Answered by kartavyaguptasl
0

Answer:

The correct answer to the symbol used for creating comments in Python programming language is option (iv) All of the above.

Explanation:

  • Comments can be used to describe Python code. You can use comments to make your code easier to read. You can use comments to prevent execution when testing your code.
  • Comments can be placed at the end of a line and Python ignores the rest of the line. The comment does not have to be the text that describes the code. It can also be used to prevent Python code from being executed.
  • Python single-line comments start with hashtags, and Python ignores them.  Python doesn't really have a multi-line comment syntax.
  • To add multi-line comments, add # to each line. Or you can use a multi-line string, which is not what you intended. Python ignores string literals that aren't assigned to any variable, so you can add a multi-line string (triple quotes) to your code and place comments in it.
  • Unless a string is  assigned to a variable, Python will read the code, but  ignore it and enter a multi-line comment.

#SPJ3

Similar questions