176k views
0 votes
What punctuation is used to begin a multi-line comment?

1) //
2) /*
3) #
4) %%

User MisterEd
by
7.7k points

1 Answer

2 votes

Final answer:

The punctuation to begin a multi-line comment is option 2) /* used in languages like C, C++, and Java. // signifies single-line comments, and # is used in scripting languages like Python.

Step-by-step explanation:

The punctuation used to begin a multi-line comment in many programming languages is option 2) /*. When creating multi-line comments, you typically use /* to start the comment and */ to end the comment. Single-line comments are often denoted by // in languages like C, C++, or Java, while # is used for single-line comments in scripting languages like Python. The %% symbol is not commonly used to denote comments in programming.

User Sborpo
by
6.9k points

Related questions

asked Sep 8, 2018 27.0k views
Arrigonfr asked Sep 8, 2018
by Arrigonfr
9.0k points
2 answers
1 vote
27.0k views