Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Blockchain Exam CBDE Topic 4 Question 94 Discussion

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

Single line comments in Solidity are:

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Henriette
1 months ago
Solidity without single-line comments? What is this, the dark ages? Option B is the way to go, folks.
upvoted 0 times
Sanda
3 days ago
I think // is more convenient for single-line comments, easier to type out.
upvoted 0 times
...
Carma
9 days ago
I prefer using /* comment */ for single-line comments, it's just a personal preference.
upvoted 0 times
...
Twanna
16 days ago
I agree, single-line comments in Solidity are essential for readability.
upvoted 0 times
...
...
Annita
1 months ago
I always forget which one is the single-line comment... Hmm, let me think... Ah, got it! It's option A, the good old // or ///.
upvoted 0 times
...
Kiley
1 months ago
Option C is just ridiculous. Of course Solidity supports single-line comments, I use them all the time!
upvoted 0 times
Soledad
9 days ago
B) working with /* comment */ or /** @.. natspec style */
upvoted 0 times
...
Linette
17 days ago
A) working with either // or ///
upvoted 0 times
...
...
Merri
2 months ago
Definitely option B. The Natspec style comments are the way to go for single-line comments in Solidity.
upvoted 0 times
Leslee
12 days ago
I didn't know about Natspec style comments, I'll have to give them a try.
upvoted 0 times
...
Kendra
17 days ago
I think both options work, but Natspec style comments are more commonly used in Solidity.
upvoted 0 times
...
Lisbeth
18 days ago
I prefer using // for single-line comments, it's just more convenient for me.
upvoted 0 times
...
Lezlie
1 months ago
I prefer using // for single-line comments, it's just more convenient for me.
upvoted 0 times
...
Christiane
1 months ago
I agree, Natspec style comments are much cleaner and easier to read.
upvoted 0 times
...
Nohemi
2 months ago
I agree, Natspec style comments are much cleaner and easier to read.
upvoted 0 times
...
...
Shawnta
2 months ago
I agree with Mary, A is the correct answer because // or /// are commonly used for single line comments in Solidity.
upvoted 0 times
...
Mary
2 months ago
I think A is correct, single line comments in Solidity are usually done with // or ///.
upvoted 0 times
...
Tammi
2 months ago
A) working with either // or ///
upvoted 0 times
...
Louisa
2 months ago
A and B seem correct, but I'm not sure which one is the single-line comment syntax specifically. Guess I'll have to review my Solidity documentation.
upvoted 0 times
Ligia
1 months ago
A and B seem correct, but I'm not sure which one is the single-line comment syntax specifically. Guess I'll have to review my Solidity documentation.
upvoted 0 times
...
Stephanie
1 months ago
B) working with /* comment */ or /** @.. natspec style */
upvoted 0 times
...
Lisandra
1 months ago
A) working with either // or ///
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77