0

Java Comments and JavaDoc Quiz

Description: A quiz to test the user on their ability to understand the use of both comments and JavaDocs in Java Programming.
Number of Questions: 12
Created by:
Tags: programming
Attempted 0/11 Correct 0 Score 0

Why should we comment?

  1. Saves the planet

  2. Saves space

  3. 507

  4. Orginization


Correct Option: D

Which command will compile a comment?

  1. /* -------- */

  2. * -------- *\

  3. ^----^/

  4. ;)


Correct Option: A

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!


Correct Option: B

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;


Correct Option: A

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.


Correct Option: D

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


Correct Option: A

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


Correct Option: D

Which are block tags?

  1. @param

  2. @break

  3. @find

  4. @substring


Correct Option: A

How is the transition slide with the Doctor relevant to our presentation?

  1. Its just a meme

  2. The doctor represents the JavaDocs and he was our transition

  3. It represent what Java is and all that it does

  4. We needed more slides


Correct Option: B

Who was JavaDocs created by?

  1. Bill Gates

  2. Oracle

  3. Java Inc.

  4. Sun Microsystems


Correct Option: D

What is JavaDocs?

  1. A doctor in Java

  2. Source Code

  3. Documentation Generator

  4. A Code Compiler


Correct Option: C
- Hide questions