Home / CSE MCQs / Swing ::

CSE MCQs :: Swing

  1. Package of drawstring() method is
  2. A.
    java.applet
    B.
    java.io
    C.
    javax.swing
    D.
    java.awt

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which method is used for getting the language in internationalization?
  4. A.
    getDisplayLanguage()
    B.
    GetdisplayLanguage()
    C.
    GetDisplayLanguage()
    D.
    none

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. What are types of applets?
  6. A.
    Trusted Applets
    B.
    Untrusted applets
    C.
    Both A and B
    D.
    None of these

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Give the abbreviation of AWT?
  8. A.
    Applet Windowing Toolkit
    B.
    Abstract Windowing Toolkit
    C.
    Absolute Windowing Toolkit
    D.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of these methods can be used to know which key is pressed?
  10. A.
    getActionEvent()
    B.
    getActionKey()
    C.
    getModifier()
    D.
    getKey()

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Object which can store group of other objects is called
  12. A.
    Collection object
    B.
    Java object
    C.
    Package
    D.
    Wrapper

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. JFrame myFrame = new JFrame (); Any command (such as the one listed above) which creates a new object of a specific class (in this case a new JFrame object called myFrame) is generally called a ...
  14. A.
    Constructor
    B.
    Layout manager
    C.
    Parameter
    D.
    GUI

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. All collection classes are available in
  16. A.
    java.io package
    B.
    java.lang package
    C.
    java.awt package
    D.
    java.util package

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. In Java, what do you call an area on the screen that has nice borders and various buttons along the top border?
  18. A.
    A window
    B.
    A screen
    C.
    A box
    D.
    A frame

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Suppose you are developing a Java Swing application and want to toggle between various views of the design area. Which of the views given below are present for the users to toggle?
  20. A.
    Design View
    B.
    Requirements View
    C.
    Source View
    D.
    Management View

    View Answer

    Workspace

    Discuss Discuss in Forum