New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Blockchain CBDE Exam - Topic 2 Question 103 Discussion

Actual exam question for Blockchain's CBDE exam
Question #: 103
Topic #: 2
[All CBDE Questions]

Multi-Line Comments in Solidity are:

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Stacey
3 months ago
B is definitely the way to go for multi-line comments.
upvoted 0 times
...
Carlton
3 months ago
Yeah, I thought C was a thing too!
upvoted 0 times
...
Brandon
4 months ago
Wait, are you sure? I thought it was only single-line comments.
upvoted 0 times
...
Anjelica
4 months ago
Totally agree, B is right!
upvoted 0 times
...
Hyun
4 months ago
B is the correct answer! Multi-line comments use /* and */.
upvoted 0 times
...
Antonette
4 months ago
I definitely recall that multi-line comments are possible, and it's probably option B with /* and /** styles.
upvoted 0 times
...
Alyce
5 months ago
I feel like I saw something about comments being only single-line, but that doesn't seem right for Solidity.
upvoted 0 times
...
Clay
5 months ago
I remember practicing with comments, and I think the natspec style uses /** @.. */ for documentation.
upvoted 0 times
...
Scot
5 months ago
I think multi-line comments in Solidity are done with /* comment */ style, but I'm not entirely sure.
upvoted 0 times
...
Ezekiel
5 months 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.
upvoted 0 times
...
Elliot
5 months 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.
upvoted 0 times
...
Silvana
5 months 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.
upvoted 0 times
...
Yvonne
5 months 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.
upvoted 0 times
...
Paris
10 months ago
If option C was the answer, I'd probably just comment out my entire contract. Problem solved!
upvoted 0 times
Amie
9 months ago
B) working with /* comment */ or /** @.. natspec style */
upvoted 0 times
...
Irving
10 months ago
A) working with either // or ///
upvoted 0 times
...
...
Keena
10 months ago
I'm impressed that Solidity has such a comprehensive commenting system. Truly a developer's dream.
upvoted 0 times
...
Leonie
11 months ago
Wait, there's a natspec style for comments? I've been living under a rock!
upvoted 0 times
Shawna
9 months ago
B) working with /* comment */ or /** @.. natspec style */
upvoted 0 times
...
Asuncion
9 months ago
Wait, there's a natspec style for comments? I've been living under a rock!
upvoted 0 times
...
Silvana
9 months ago
B) working with /* comment */ or /** @.. natspec style */
upvoted 0 times
...
Desiree
10 months ago
A) working with either // or ///
upvoted 0 times
...
...
Coral
11 months ago
I'm glad Solidity has more than just single-line comments. Saves me from typing // over and over again.
upvoted 0 times
...
Shaquana
11 months 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.
upvoted 0 times
...
Cassi
11 months ago
Option B is the correct answer. Solidity supports both multi-line and single-line comments.
upvoted 0 times
Trinidad
10 months ago
Yes, that's right. Solidity allows for both types of comments.
upvoted 0 times
...
Reita
10 months ago
B) working with /* comment */ or /** @.. natspec style */
upvoted 0 times
...
Rebecka
10 months ago
Oh, I see. Single-line comments are also supported in Solidity.
upvoted 0 times
...
Grover
10 months ago
A) working with either // or ///
upvoted 0 times
...
Darci
10 months ago
That's correct! Solidity does support multi-line comments.
upvoted 0 times
...
Olga
10 months ago
B) working with /* comment */ or /** @.. natspec style */
upvoted 0 times
...
...
Brinda
11 months ago
I agree with Miss, multi-line comments in Solidity are definitely working with /* comment */ or /** @.. natspec style */.
upvoted 0 times
...
Miss
11 months ago
I think multi-line comments in Solidity are working with /* comment */ or /** @.. natspec style */.
upvoted 0 times
...

Save Cancel