Question 1 of 10
What text does this Java code display?
int coils = 9; // coils = 0;
System.out.print(coils);
- A. 0
- B. 9
- C. 1
- D. The comment is printed.
What text does this Java code display?
int coils = 9; // coils = 0;
System.out.print(coils);
What text does this Java code display?
int clay = 5;
clay += 3; /* extra note */
System.out.print(clay);
Which statement best describes comments in Java?
What text does this Java code display?
System.out.print("Kiln");
/* System.out.print(" closed"); */
System.out.print(" ready");
What text does this Java code display?
System.out.print("End /* note */");
A potter comments out two updates while testing a glaze formula. What text does this Java code display?
int gloss = 10;
/*
gloss -= 4;
gloss *= 2;
*/
System.out.print(gloss);
A method is introduced with /** Sets the kiln to the given temperature. */ Which choice matches that comment form?
What text does this Java code display?
int shelf = 2;
shelf++; // shelf += 5;
System.out.print(shelf);
Which choice correctly matches each form to a typical use?
What text does this Java code display? Ignore a final trailing newline.
System.out.println("Wet");
// System.out.println("Trim");
System.out.print("Fire");