Programming 11: Java Concepts - Quiz 1

25 Questions

Settings
Please wait...
Programming 11: Java Concepts - Quiz 1

This will be the first quiz of our Programming 11 class. It will be to review basic introductory concepts covered in our Java course.


Related Topics
Questions and Answers
  • 1. 
    Choose the best definition for a Class.
    • A. 

      A group of students in a room

    • B. 

      An object definition, containing the data and function elements necessary to create an object

    • C. 

      An action for a program

  • 2. 
    Choose the best definition of an object
    • A. 

      A thing

    • B. 

      An instance of a class

    • C. 

      Something you wear

  • 3. 
    Choose the appropriate data type for this value:  "dog"
    • A. 

      Int

    • B. 

      String

    • C. 

      Double

    • D. 

      Boolean

  • 4. 
    Choose the appropriate data type for this value:  true
    • A. 

      Int

    • B. 

      Double

    • C. 

      String

    • D. 

      Boolean

  • 5. 
    Choose the appropriate data type for this value:  1
    • A. 

      Int

    • B. 

      Double

    • C. 

      String

    • D. 

      Boolean

  • 6. 
    Choose the appropriate data type for this value:  5.5
    • A. 

      Int

    • B. 

      Double

    • C. 

      Boolean

    • D. 

      String

  • 7. 
    Choose the appropriate data type for this value:  A
    • A. 

      Int

    • B. 

      Double

    • C. 

      Char

    • D. 

      String

  • 8. 
    Choose the appropriate data type for this value:  "1"
    • A. 

      String

    • B. 

      Boolean

    • C. 

      Int

    • D. 

      Char

  • 9. 
    Choose the appropriate data type for this value:  female
    • A. 

      Boolean

    • B. 

      Int

    • C. 

      Char

    • D. 

      Double

  • 10. 
    Choose the appropriate data type for this field:   kindOfBird
    • A. 

      String

    • B. 

      Int

    • C. 

      Char

    • D. 

      Double

  • 11. 
    Choose the appropriate data type for this field:  numberOfEggs
    • A. 

      Double

    • B. 

      Char

    • C. 

      Boolean

    • D. 

      Int

  • 12. 
    Choose the appropriate data type for this field:  weightInKilos
    • A. 

      Char

    • B. 

      String

    • C. 

      Double

    • D. 

      Boolean

  • 13. 
    Choose the appropriate data type for this field: isSwimmer
    • A. 

      Double

    • B. 

      Boolean

    • C. 

      String

    • D. 

      Int

  • 14. 
    Choose the appropriate data type for this field: eggColour
    • A. 

      Boolean

    • B. 

      Char

    • C. 

      Int

    • D. 

      String

  • 15. 
    Use the screen shot of this project to answer the question.How many classes are there?
    • A. 

      1

    • B. 

      2

    • C. 

      3

    • D. 

      0

  • 16. 
    How many objects are there?
    • A. 

      3

    • B. 

      2

    • C. 

      1

    • D. 

      0

  • 17. 
    How many fields are there
    • A. 

      1

    • B. 

      2

    • C. 

      3

    • D. 

      4

  • 18. 
    What is the name of the 1st field?
  • 19. 
    What is the name of the 4th field?
  • 20. 
    What is the data type of the 1st field?
  • 21. 
    What is the data type of the 3rd field?
  • 22. 
    Which of the following always need a Capital letter ?
    • A. 

      Class names and Strings

    • B. 

      Objects and class names

    • C. 

      Fields and Strings

    • D. 

      Data types and fields

  • 23. 
    What is the name of the highlighted area?
    • A. 

      Method

    • B. 

      Constructor

    • C. 

      Fields

    • D. 

      Variables

  • 24. 
    What is the role of the constructor?
    • A. 

      Make the code confusing

    • B. 

      Create an instance of a class (an object)

    • C. 

      Create names for methods

    • D. 

      To create some type of change in the state of an object

  • 25. 
    What is the name of this Class?
    • A. 

      Dog

    • B. 

      Dog1

    • C. 

      Dog2