Jump to content

Java Quiz: Possible Error


Recommended Posts

While taking the Java Quiz assessment, I was marked wrong on question #3:

Question 3:

How do you insert COMMENTS in Java code?

  • /* This is a comment */¬†
  • # This is a comment
  • // This is a comment¬†

Both the first option and the last option seem to be correct answers to me. However, after selecting the first option, I was marked wrong. Am I not seeing something here? Or if I am right, this needs to be addressed by the developers.

Thank you.

Link to post
Share on other sites

My guess is that the person who made the quiz considered "comment" and "multi-line comment" two different things, with "comment" only referring to the single-line comment. That seems to be the way it is represented in this chapter: https://www.w3schools.com/java/java_comments.asp

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...