Jump to content

Java Quiz: Possible Error


uriahjeshurun@gmail.com

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 comment
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 comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...