• 1. 
    Which is not a possible result of n%6

  • 0
  • 1
  • 5
  • 6
  • 2. 
    What would this output?System.out.println(15%3);

  • An error
  • 5
  • 3
  • 0
  • 3. 
    What is the type of this method's parameter?

  • setCredits
  • void
  • int
  • creditValue
  • credits
  • 4. 
    An object diagram changes when the program is running.

  • True
  • False
  • 5. 
    An object diagram changes when you modify the source code.

  • True
  • False
  • 6. 
    When a class has more than one method with the same name.

  • Abstraction
  • Modularization
  • Overloading
  • Diagraming
  • 7. 
    The ability to ignore details of parts, to focus attention on a higher level of a problem.

  • Abstraction
  • Modularization
  • Overloading
  • Diagraming
  • 8. 
    What is the logical operator for "or" ?

  • ||
  • &
  • &&
  • !
  • |
  • 9. 
    ! (4 < 5)

  • True
  • False
  • 10. 
    (34 != 33) && ! false

  • True
  • False
  • 11. 
    When a variable stores an object, the object is stored in the variable directly.

  • True
  • False
  • 12. 
    What is the type of this method?

  • setCredits
  • void
  • int
  • creditValue
  • credits
  • 13. 
    This changes the state of an object.

  • method
  • mutator
  • accessor
  • conditional
  • parameter
  • 14. 
    What is the name of this method?

  • setCredits
  • void
  • int
  • creditValue
  • credits
  • 15. 
    Which of the following is a valid declaration of a field?

  • public int age;
  • private int age;
  • private int Age;
  • public int Age
  • 16. 
    What is the output of the expression?

  • An error
  • catfish
  • fish
  • cat
  • 17. 
    Information given to a method.

  • method
  • mutator
  • accessor
  • conditional
  • parameter
  • 18. 
    False && true || true

  • True
  • False
  • 19. 
    (2 > 2) ││ ((4 == 4) && (1 < 0))

  • True
  • False
  • 20. 
    What is the logical operator for "not" ?

  • ||
  • &
  • &&
  • !
  • |
  • 21. 
    The process of dividing a whole into well-defined parts

  • Abstraction
  • Modularization
  • Overloading
  • Diagraming
  • 22. 
    What is the logical operator for "and" ?

  • ||
  • &
  • &&
  • !
  • |
Report Question
warning
access_time
  Time