CSIS 212 Week 2 Quiz – Question and Answers

$12.00

Category: Tag:

Description

CSIS 212 Quiz 2 with Answers Liberty

  1. You can declare new classes as needed; this is one reason Java is known as a(n) ________ language.
  2. The format specifier %.2f specifies that two digits of precision should be output ________ in the floating-point number.
  3. A class that creates an object of another class, then calls the object’s methods, is called a(n) ________ class.
  4. Which of the following statements is false?
  5. Which of the following statements is false?
  6. Each class you create becomes a new ________ that can be used to declare variables and create objects.
  7. Which of the following statements is false?
  8. Types in Java are divided into two categories. The primitive types are boolean, byte, char, short, int, long, float and double. All other types are ________ types.
  9. Which of the following statements is false?
  10. Java requires a ________ call for every object that’s created.
  11. An import declaration is not required if you always refer to a class with its ________ name, which includes its package name and class name.
  12. Which of the following statements is false?
  13. Which of the following statements is true?
  14. A __________ of a class called MyClass is another class whose methods call the methods of MyClass.
  15. You must call most methods other than ________ explicitly to tell them to perform their tasks.
  16. Reference-type variables (called references) store ________ in memory.
  17. Which of the following statements is false?
  18. Declaring instance variables ________ is known as data hiding or information hiding.
  19. Which of the following statements is false?
  20. A key part of enabling the JVM to locate and call method main to begin the app’s execution is the ________ keyword, which indicates that main can be called without first creating an object of the class in which the method is declared.