IT 114: Introduction to Java
Class 12 Ungraded Quiz

  1. What is the data type of the parameter in the main method?


  2. What is the return type of the main method?


  3. What is the return type of a method that does not return a value?


  4. What expression contains the value of the first command line argument?


  5. What part of the method header specifies the type of value a method will return?


  6. What is the name of the data type whose values can only be true or false?


  7. What do you call the boolean operators that compare two values?


  8. How many code blocks are contained in an simple if statement?


  9. Is there any limit to the number of code blocks you can have in an if/else if statement?


  10. Does an if/else if statement have to have an else clause?