Multi-Line Comments in Solidity are:
Suggested Answer: C
Get Premium CBDE Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
33 comments · newest first
ST
Stacey
11 months ago
B is definitely the way to go for multi-line comments.
CA
Carlton
11 months ago
Yeah, I thought C was a thing too!
BR
Brandon
11 months ago
Wait, are you sure? I thought it was only single-line comments.
AN
Anjelica
12 months ago
Totally agree, B is right!
HY
Hyun
12 months ago
B is the correct answer! Multi-line comments use /* and */.
AN
Antonette
12 months ago
I definitely recall that multi-line comments are possible, and it's probably option B with /* and /** styles.
AL
Alyce
1 year ago
I feel like I saw something about comments being only single-line, but that doesn't seem right for Solidity.
CL
Clay
1 year ago
I remember practicing with comments, and I think the natspec style uses /** @.. */ for documentation.
SC
Scot
1 year ago
I think multi-line comments in Solidity are done with /* comment */ style, but I'm not entirely sure.
EZ
Ezekiel
1 year ago
I'm a little unsure about this one. I know Solidity has both single-line and multi-line comments, but I can't recall the exact syntax off the top of my head. I'll make sure to double-check the Solidity documentation before answering.
EL
Elliot
1 year ago
Okay, I remember learning about this. I believe the correct answer is B - multi-line comments in Solidity use the /* */ syntax, as well as the /** @.. natspec style. I'm confident that's the right approach.
SI
Silvana
1 year ago
Hmm, I'm a bit confused on this one. I know Solidity has single-line comments with //, but I'm not sure about multi-line. I'll have to review the syntax examples to figure this out.
YV
Yvonne
1 year ago
I'm pretty sure multi-line comments in Solidity work with both // and /*. I'll double-check the docs to be sure, but I think the answer is A.
PA
Paris
1 year ago
If option C was the answer, I'd probably just comment out my entire contract. Problem solved!
AM
Amie
1 year ago
B) working with /* comment */ or /** @.. natspec style */
IR
Irving
1 year ago
A) working with either // or ///
KE
Keena
2 years ago
I'm impressed that Solidity has such a comprehensive commenting system. Truly a developer's dream.
LE
Leonie
2 years ago
Wait, there's a natspec style for comments? I've been living under a rock!
SH
Shawna
1 year ago
B) working with /* comment */ or /** @.. natspec style */
AS
Asuncion
1 year ago
Wait, there's a natspec style for comments? I've been living under a rock!
SI
Silvana
1 year ago
B) working with /* comment */ or /** @.. natspec style */
DE
Desiree
1 year ago
A) working with either // or ///
CO
Coral
2 years ago
I'm glad Solidity has more than just single-line comments. Saves me from typing // over and over again.
SH
Shaquana
2 years ago
I'm not sure, but I think multi-line comments in Solidity are working with /* comment */ or /** @.. natspec style */ because it allows for more detailed explanations in the code.
CA
Cassi
2 years ago
Option B is the correct answer. Solidity supports both multi-line and single-line comments.
TR
Trinidad
1 year ago
Yes, that's right. Solidity allows for both types of comments.
RE
Reita
1 year ago
B) working with /* comment */ or /** @.. natspec style */
RE
Rebecka
1 year ago
Oh, I see. Single-line comments are also supported in Solidity.
GR
Grover
1 year ago
A) working with either // or ///
DA
Darci
1 year ago
That's correct! Solidity does support multi-line comments.
OL
Olga
1 year ago
B) working with /* comment */ or /** @.. natspec style */
BR
Brinda
2 years ago
I agree with Miss, multi-line comments in Solidity are definitely working with /* comment */ or /** @.. natspec style */.
MI
Miss
2 years ago
I think multi-line comments in Solidity are working with /* comment */ or /** @.. natspec style */.