Computers

9th -

12thgrade

Image

Java Swing/AWT Graphics

316
plays

27 questions

Show Answers
See Preview
  • 1. Multiple Choice
    20 seconds
    1 pt

    What is the purpose of the line of code:

    import java.awt.*;

    To allow you to make Random number generators

    To use an interface.

    To import a package

    To allow you to Scan from the terminal or a file.

  • 2. Multiple Choice
    20 seconds
    1 pt

    What is a method?

    An organized and functionally based set of related interfaces and classes

    Where we type our code.

    A set of group of code that can be called for execution.

    An instance of a class

  • 3. Multiple Choice
    20 seconds
    1 pt

    Which of the lines of code DOES NOT call a method?

    frame.setSize()

    frame.setVisible(true);

    JFrame frame;

    frame.setResizable(false);

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?