IT 114: Introduction to Java
Class 10 Ungraded Quiz

  1. Does every { in a Java program have to have a matching }?


  2. What is a method?


  3. What are the two components of a method?


  4. What do you call the code block containing the statements that are executed when the method is run?


  5. What is contained inside the parentheses, ( ), on the first line of the method definition?


  6. What do you call the statement that causes a method to run?


  7. Does this statement always have to have parentheses, ( )?


  8. What do you call variables defined inside the statements of a method?


  9. Can other parts of the program see these variables?


  10. What do you call the values inside the ( ) when you run a method?


  11. What do you call the special variables inside a method that get their value when the method is run?


  12. Where do these special variables get their values?