Multiple Choice
Why is it a good idea for a programmer to write comments about a method first, before implementing it?
A) It is a good idea for complex methods, but not simple ones.
B) It can help to assign good variable names.
C) Without comments it is not possible to compile the code.
D) It is an excellent test to ensure that the programmer firmly understands what is needed.
Correct Answer:

Verified
Correct Answer:
Verified
Q6: Consider the following method header for an
Q7: We want the toString method to return
Q8: When are local variables initialized?<br>A)Local variables are
Q9: What is a parameter variable?<br>A)A variable that
Q10: We want to create a class that
Q12: Which lines would need to be added
Q13: You should provide documentation comments for _.<br>A)only
Q14: Assuming the following code is the body
Q15: Choose the method header that goes with
Q16: Choose the method header that goes with