Quiz: Can You Pass This Java Trivia Questions?

20 Questions

Settings
Please wait...
Quiz: Can You Pass This Java Trivia Questions?

.


Questions and Answers
  • 1. 
    ____ is a notation of whether an attribute can be directly accessed by another object and is indicated by plus or minus signs. 
    • A. 

      Method signature

    • B. 

      Overloaded method

    • C. 

      Visibility

    • D. 

      Class-level method

  • 2. 
    ____ occurs when a class is passed a parameter that references another object. 
    • A. 

      Parameter navigation visibility

    • B. 

      Navigation visibility

    • C. 

      Stereotyping

    • D. 

      Information hiding

  • 3. 
     A(n) ____ is one that exists after the program quits. 
    • A. 

      Stereotype

    • B. 

      Entity class

    • C. 

      Persistent class

    • D. 

      Boundary class

  • 4. 
    A(n) ____ is a class invented by a system designer to handle a needed system function. 
    • A. 

      Use case controller

    • B. 

      Design pattern

    • C. 

      Artifact

    • D. 

      Object

  • 5. 
    In programming jargon, invoking a method on an object frequently requires ____ to invoke the correct method on the correct object.
    • A. 

      Coupling

    • B. 

      Dot notation

    • C. 

      Cohesion

    • D. 

      Inheritance

  • 6. 
    The symbol for an artifact is a rectangle with a document icon in the ____ corner. 
    • A. 

      Top right

    • B. 

      Top left

    • C. 

      Bottom right

    • D. 

      Bottom left

  • 7. 
    A(n) ____ describes the structure of what an executing object looks like. 
    • A. 

      method signature

    • B. 

      Overloaded method

    • C. 

      Stereotype

    • D. 

      Class definition

  • 8. 
    A(n) ____ diagram shows the placement of various physical nodes (components) across different locations.
    • A. 

      Artifact

    • B. 

      Component

    • C. 

      Document

    • D. 

      Deployment

  • 9. 
    ____ is a qualitative measure of the consistency of functions within a single class.
    • A. 

      Cohesion

    • B. 

      Information hiding

    • C. 

      Coupling

    • D. 

      Encapsulation

  • 10. 
    ____ is a notation that shows all of the information needed to invoke, or call, the method. 
    • A. 

      . A method signature

    • B. 

      An overloaded method

    • C. 

      Visibility

    • D. 

      A class-level method

  • 11. 
    An example of ____ is a class that has closely related responsibilities, such as a single class that maintains customer information and customer account information. 
    • A. 

      High cohesion

    • B. 

      Medium coupling

    • C. 

      High coupling

    • D. 

      Medium cohesion

  • 12. 
    The purpose of the ____ diagram is to document and describe the programming classes that will be built for the new system. 
    • A. 

      Design class

    • B. 

      Sequence

    • C. 

      Data flow

    • D. 

      Entity relationship

  • 13. 
    ____ is a design principle in which objects are responsible for carrying out system processing
    • A. 

      Realization of use cases

    • B. 

      Indirection

    • C. 

      Protection from variations

    • D. 

      Object responsibility

  • 14. 
     A(n) ____ is simply a way to categorize a model element as a certain type. 
    • A. 

      Stereotype

    • B. 

      Entity class

    • C. 

      Persistent class

    • D. 

      Boundary class

  • 15. 
    ____ is a qualitative measure of how closely the classes in a design class diagram are linked. 
    • A. 

      Cohesion

    • B. 

      Information hiding

    • C. 

      Coupling

    • D. 

      Encapsulation

  • 16. 
    In a design class diagram, ____ visibility is identified by an arrow between the classes, where the arrow points to the visible class.
    • A. 

      Attribute navigation

    • B. 

      Parameter navigation

    • C. 

      Reference navigation

    • D. 

      Object navigation

  • 17. 
    Even for a single-use system, it is wise to develop the system as a(n) ____ program so that the boundaries between the various levels are well defined
    • A. 

      Instantiation

    • B. 

      Multilayer

    • C. 

      Indirection

    • D. 

      Coupling

  • 18. 
    For systems that require ____, it is better to use three-layer architecture so that separate classes exist for both the domain logic and the data access process. 
    • A. 

      More complex business logic

    • B. 

      Simple business logic

    • C. 

      Single user interfaces

    • D. 

      Data validation

  • 19. 
    The ____ is the set of public methods that is available to the outside world. 
    • A. 

      Component diagram

    • B. 

      Three-layer architecture

    • C. 

      ASP

    • D. 

      API

  • 20. 
    A(n) ____ is a class that mediates between the boundary classes and the entity classes. 
    • A. 

      Control class

    • B. 

      Entity class

    • C. 

      Boundary class

    • D. 

      Data access class