Computer Programming II 2nd Half Review Quiz

23 Questions | Attempts: 167
Share

SettingsSettingsSettings
Computer Programming II 2nd Half Review Quiz - Quiz

How are you when it comes to computer programming now that we have undergone that extensive course on some basic languages in use today? Below is a quiz to review the material from the 2nd half of the Metcalfe County high school`s computer programming II course. Give it a try and get to see just how attentive you have been this past year. All the best!


Questions and Answers
  • 1. 
    Creating an object is called
    • A. 

      Instantiation

    • B. 

      Reference

    • C. 

      Variable

    • D. 

      Abstraction

  • 2. 
    Which of the following is not a part of the string class?
    • A. 

      CompareTo

    • B. 

      Length

    • C. 

      Concat

    • D. 

      ToString

  • 3. 
    A ___________ is a collection of classes that we can use when developing programs.
    • A. 

      Class

    • B. 

      Class library

    • C. 

      Index

    • D. 

      Object

  • 4. 
    Which of the following is not a part of the Java standard class library
    • A. 

      System class

    • B. 

      String class

    • C. 

      Keyboard

  • 5. 
    TThe Java standard class library is part of any Java development environment
    • A. 

      True

    • B. 

      False

  • 6. 
    Which of the following classes would allow random numbers to be generated?
    • A. 

      Math

    • B. 

      Keyboard

    • C. 

      String

    • D. 

      Random

  • 7. 
    The Keyboard class is part of a package called_________
    • A. 

      String

    • B. 

      Cs1

    • C. 

      Random

    • D. 

      Applet

  • 8. 
    When using JCreator a shortcut to run the current program is_________
    • A. 

      F5

    • B. 

      Alt + 5

    • C. 

      Ctrl + 5

    • D. 

      Alt + Tab

  • 9. 
    An applet doesn't have a _______ method
    • A. 

      Main

    • B. 

      Secondary

    • C. 

      Primary

    • D. 

      System

  • 10. 
    What do the first two numbers in page.drawLine (10, 20, 150, 45); mean?
    • A. 

      Width and Height

    • B. 

      X & Y Coordinate

    • C. 

      RGB Value

    • D. 

      Y and Width

  • 11. 
    What do the 2nd two numbers in page.drawLine (10, 20, 150, 45); mean?
    • A. 

      Width and Height

    • B. 

      X and Y Coordinate

    • C. 

      RGB Value

    • D. 

      Y and Width

  • 12. 
    Which of the following would be used to draw a curved line within a Java Applet?
    • A. 

      DrawLine

    • B. 

      DrawString

    • C. 

      DrawArc

    • D. 

      DrawRect

  • 13. 
    Within Java an oval is always drawn inside of a__________ _________
    • A. 

      Single oval

    • B. 

      Bounding rectangle

    • C. 

      Straight line

    • D. 

      Semi circle

  • 14. 
    How many numbers must be supplied with the drawArc method?
    • A. 

      4

    • B. 

      5

    • C. 

      6

    • D. 

      7

  • 15. 
    Applets open up using what program within JCreator?
    • A. 

      WebViewer

    • B. 

      AppletScreen

    • C. 

      AppletViewer

    • D. 

      WebScreen

  • 16. 
    Applets and Applications are coded the same way.
    • A. 

      True

    • B. 

      False

  • 17. 
    Applets use a X and Y coordinate system.
    • A. 

      True

    • B. 

      False

  • 18. 
    The X,Y coordinate in the upper left hand corner of an Applet screen would be___,____.
    • A. 

      100,100

    • B. 

      50,50

    • C. 

      0,0

    • D. 

      -50,-50

  • 19. 
    One can use negative values within x,y coordinates when designing a Java Applet?
    • A. 

      True

    • B. 

      False

  • 20. 
    Custom colors can be added into a Java applet
    • A. 

      True

    • B. 

      False

  • 21. 
    Page.setColor (new Color(255,255,255)); would set the color within an Applet to.
    • A. 

      White

    • B. 

      Black

    • C. 

      Red

    • D. 

      Blue

  • 22. 
    Page.setColor (new Color(0,0,0)); would set the color within an Applet to.
    • A. 

      Black

    • B. 

      White

    • C. 

      Red

    • D. 

      Blue

  • 23. 
    Print and println are the same
    • A. 

      True

    • B. 

      False

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.