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.
Questions
Question 1 Multiple Choice (Single Answer)
Why should we comment?
- Saves the planet
- Saves space
- 507
- Orginization
Question 2 Multiple Choice (Single Answer)
Which command will compile a comment?
- /* -------- */
- * -------- *\
- ^----^/
- ;)
Question 3 Multiple Choice (Single Answer)
How are comments useful?
- It is necessary for your program to run correctly.
- Helps you remember what a segment of code does.
- Comments are used to fix your code.
- Makes your code look pretty!
Question 4 Multiple Choice (Single Answer)
Which is a comment?
- //I am a comment
- class iAmaComment
- for (I am a Comment)
- int iAmaComment = (a < 0) ? -a : a;
Question 5 Multiple Choice (Single Answer)
How Javadoc useful? Pick the best answer.
- Allow for easy reference and review of code.
- Helps you learn code that you did not write.
- Keeps track of different elements of the code.
- All of the above.
Question 6 Multiple Choice (Single Answer)
What is a comment?
- It is an organizational/debug tool
- A form of targeted messaging
- A compiling code catcher
- A YouTube feature
Question 7 Multiple Choice (Single Answer)
How is JavaDoc relevant to making comments?
- Both are activated with the command line
- They both are found in the Comment Class
- A single team made both of them in the same year
- JavaDoc is a form of commenting
Question 8 Multiple Choice (Single Answer)
Which are block tags?
- @param
- @break
- @find
- @substring
Question 9 Multiple Choice (Single Answer)
Who was JavaDocs created by?
- Bill Gates
- Oracle
- Java Inc.
- Sun Microsystems
Question 10 Multiple Choice (Single Answer)
What is JavaDocs?
- A doctor in Java
- Source Code
- Documentation Generator
- A Code Compiler