Deal of The Day! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
US
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Amazon
Google
CompTIA
SAP
VMware
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ServiceNow
Dell EMC
CheckPoint
Linux Foundation
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Blockchain Discussions
Exam CBDE Topic 4 Question 94 Discussion
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:
A
working with either // or ///
B
working with /* comment */ or /** @.. natspec style */
C
not possible, all comments must be multi-line.
Show Suggested Answer
Hide Answer
Suggested Answer:
B
by
Rickie
at
Jul 16, 2024, 09:34 PM
Limited Time Offer
25%
Off
Get Premium CBDE Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
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
Victor
4 days ago
I didn't know you could use natspec style for single-line comments, that's interesting.
upvoted
0
times
...
Sanda
17 days ago
I think // is more convenient for single-line comments, easier to type out.
upvoted
0
times
...
Carma
23 days ago
I prefer using /* comment */ for single-line comments, it's just a personal preference.
upvoted
0
times
...
Twanna
30 days ago
I agree, single-line comments in Solidity are essential for readability.
upvoted
0
times
...
...
Annita
2 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
2 months ago
Option C is just ridiculous. Of course Solidity supports single-line comments, I use them all the time!
upvoted
0
times
Gail
8 days ago
Option C is just ridiculous. Of course Solidity supports single-line comments, I use them all the time!
upvoted
0
times
...
Soledad
22 days ago
B) working with /* comment */ or /** @.. natspec style */
upvoted
0
times
...
Linette
1 months 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
26 days ago
I didn't know about Natspec style comments, I'll have to give them a try.
upvoted
0
times
...
Kendra
1 months ago
I think both options work, but Natspec style comments are more commonly used in Solidity.
upvoted
0
times
...
Lisbeth
1 months ago
I prefer using // for single-line comments, it's just more convenient for me.
upvoted
0
times
...
Lezlie
2 months ago
I prefer using // for single-line comments, it's just more convenient for me.
upvoted
0
times
...
Christiane
2 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
3 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
3 months ago
I think A is correct, single line comments in Solidity are usually done with // or ///.
upvoted
0
times
...
Tammi
3 months ago
A) working with either // or ///
upvoted
0
times
...
Louisa
3 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
2 months ago
B) working with /* comment */ or /** @.. natspec style */
upvoted
0
times
...
Lisandra
2 months ago
A) working with either // or ///
upvoted
0
times
...
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
Henriette
1 months agoVictor
4 days agoSanda
17 days agoCarma
23 days agoTwanna
30 days agoAnnita
2 months agoKiley
2 months agoGail
8 days agoSoledad
22 days agoLinette
1 months agoMerri
2 months agoLeslee
26 days agoKendra
1 months agoLisbeth
1 months agoLezlie
2 months agoChristiane
2 months agoNohemi
2 months agoShawnta
3 months agoMary
3 months agoTammi
3 months agoLouisa
3 months agoLigia
1 months agoStephanie
2 months agoLisandra
2 months ago