prev next
  Course navigation

Java Package Basics - Quiz
Each question is worth one point. Some questions ask you to select the best answer, others ask you to select all the correct answers. To receive credit for questions asking for all the correct answers, you must select all the correct answers and only the correct answers.
1. What keyword do you use to import a class or a package containing classes?
Please select the best answer.
  A. include
  B. import
  C. package

2. What standard Java package is automatically imported into every Java program?
Please select the best answer.
  A. java.applet
  B. java.lang
  C. java.io

3. Where must you place the package statement in order to identify the package to which a class belongs?
Please select the best answer.
  A. At the beginning of the source code file for the class
  B. At the end of the source code file for the class
  C. Anywhere in the source code file for the class


Score =
Correct answers: