Java Comments and JavaDoc Quiz

A quiz to test the user on their ability to understand the use of both comments and JavaDocs in Java Programming.

11 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Why should we comment?

  1. Saves the planet
  2. Saves space
  3. 507
  4. Orginization
Question 2 Multiple Choice (Single Answer)

Which command will compile a comment?

  1. /* -------- */
  2. * -------- *\
  3. ^----^/
  4. ;)
Question 3 Multiple Choice (Single Answer)

How are comments useful?

  1. It is necessary for your program to run correctly.
  2. Helps you remember what a segment of code does.
  3. Comments are used to fix your code.
  4. Makes your code look pretty!
Question 4 Multiple Choice (Single Answer)

Which is a comment?

  1. //I am a comment
  2. class iAmaComment
  3. for (I am a Comment)
  4. int iAmaComment = (a < 0) ? -a : a;
Question 5 Multiple Choice (Single Answer)

How Javadoc useful? Pick the best answer.

  1. Allow for easy reference and review of code.
  2. Helps you learn code that you did not write.
  3. Keeps track of different elements of the code.
  4. All of the above.
Question 6 Multiple Choice (Single Answer)

What is a comment?

  1. It is an organizational/debug tool
  2. A form of targeted messaging
  3. A compiling code catcher
  4. A YouTube feature
Question 7 Multiple Choice (Single Answer)

How is JavaDoc relevant to making comments?

  1. Both are activated with the command line
  2. They both are found in the Comment Class
  3. A single team made both of them in the same year
  4. JavaDoc is a form of commenting
Question 8 Multiple Choice (Single Answer)

Which are block tags?

  1. @param
  2. @break
  3. @find
  4. @substring
Question 9 Multiple Choice (Single Answer)

Who was JavaDocs created by?

  1. Bill Gates
  2. Oracle
  3. Java Inc.
  4. Sun Microsystems
Question 10 Multiple Choice (Single Answer)

What is JavaDocs?

  1. A doctor in Java
  2. Source Code
  3. Documentation Generator
  4. A Code Compiler