Ajp MCQ Test For Diploma Students

29 Questions | Total Attempts: 238

SettingsSettingsSettings
Ajp MCQ Test For Diploma Students - Quiz


Questions and Answers
  • 1. 
      Give the abbreviation of AWT?
    • A. 

      Applet Windowing Toolkit

    • B. 

      Abstract Windowing Toolkit

    • C. 

      Absolute Windowing Toolkit

    • D. 

      None of the above

  • 2. 
    Which is the container that contain title bar and can have MenuBars. It can have other components like button, textfield etc.?
    • A. 

      Panel

    • B. 

      Frame

    • C. 

      Window

    • D. 

      Container

  • 3. 
    The following specifies the advantages of It is lightweight. It supports pluggable look and feel. It follows MVC (Model View Controller) architecture.
    • A. 

      Swing

    • B. 

      AWT

    • C. 

      Both A & B

    • D. 

      None of the above

  • 4. 
    The Following steps are required to perform 1) Implement the Listener interface and overrides its methods 2) Register the component with the Listener
    • A. 

      Exception Handling

    • B. 

      String Handling

    • C. 

      Event Handling

    • D. 

      None of the above

  • 5. 
    Which is the container that doesn't contain title bar and MenuBars but it can have other components like button, textfield etc?
    • A. 

      Window

    • B. 

      Frame

    • C. 

      Panel

    • D. 

      Container

  • 6. 
    Which method is used to set the graphics current color to the specified color in the graphics class?
    • A. 

      Public abstract void setFont(Font font)

    • B. 

      Public abstract void setColor(Color c)

    • C. 

      Public abstract void drawString(String str, int x, int y)

    • D. 

      None of the above

  • 7. 
    Which class is used for this Processing Method processActionEvent( )?
    • A. 

      Button,List,MenuItem

    • B. 

      Button,Checkbox,Choice

    • C. 

      Scrollbar,Component,Button

    • D. 

      None of the above

  • 8. 
    The Swing Component classes that are used in Encapsulates a mutually exclusive set of buttons?
    • A. 

      AbstractButton

    • B. 

      ButtonGroup

    • C. 

      JButton

    • D. 

      ImageIcon

  • 9. 
    The following way is used to create a frame is by creating the object of Frame class?
    • A. 

      inheritance

    • B. 

      Association

    • C. 

      Both A & B

    • D. 

      None of the above

  • 10. 
     Which are the techniques for defining the structure of a specific type of XML documents?
    • A. 

      Schema

    • B. 

      DTD

    • C. 

      Both A & B

    • D. 

      None of the above

  • 11. 
    Implement the Listener interface and overrides its methods is required to perform in event handling?
    • A. 

      True

    • B. 

      False

  • 12. 
    Which object can be constructed to show any number of choices in the visible window?
    • A. 

      Labels

    • B. 

      Choice

    • C. 

      List

    • D. 

      Checkbox

  • 13. 
    Which is used to store data and partial results, as well as to perform dynamic linking, return values for methods, and dispatch exceptions?
    • A. 

      Window

    • B. 

      Panel

    • C. 

      Frame

    • D. 

      Container

  • 14. 
    The setBackground() method is part of the following class in java.awt package:
    • A. 

      Applet

    • B. 

      Graphics

    • C. 

      Component

    • D. 

      Container

  • 15. 
    Which object of HttpSession can be used to view and manipulate information about a session?
    • A. 

      Session identifier

    • B. 

      Creation time

    • C. 

      Last accessed time

    • D. 

      All mentioned above

  • 16. 
    Which case of a session bean obtains the UserTransaction object via the EJBContext using the getUserTransaction() method in EJB transaction management?
    • A. 

      Bean-managed transactions

    • B. 

      Container-managed transactions

    • C. 

      Both A & B

    • D. 

      None of the above

  • 17. 
    Connection Pooling Class manages no of user requests for connections to improve the performance.
    • A. 

      True

    • B. 

      False

  • 18. 
    Which class provides stream to read binary data such as image etc. from the request object?
    • A. 

      ServletOutputStream

    • B. 

      ServltInputStream

    • C. 

      Both A & B

    • D. 

      None of the above

  • 19. 
    The performance of the application will be faster if you use PreparedStatement interface because query is compiled only once.
    • A. 

      True

    • B. 

      False

  • 20. 
    Which type of validation we must implement the Validateable interface (or extend ActionSupport class) and provide the implementation of validate method?
    • A. 

      By Input Validation

    • B. 

      By Ajax Validation

    • C. 

      By Custom Validation

    • D. 

      None of the above

  • 21. 
     An RMI Server is responsible for
    • A. 

      Creating an instance of the remote object

    • B. 

      Exporting the remote object

    • C. 

      Binding the instance of the remote object to the RMI registry

    • D. 

      All mentioned above

  • 22. 
     How many steps are used to connect any java application using JDBC?
    • A. 

      4

    • B. 

      5

    • C. 

      3

    • D. 

      6

  • 23. 
     In the elements of Hibernate architecture is a factory of session and client of ConnectionProvider, It holds the second level cache (optional) of data is
    • A. 

      Session

    • B. 

      SessionFactory

    • C. 

      Transaction

    • D. 

      ConnectionProvider

  • 24. 
    Which tag is used to execute java source code in JSP?
    • A. 

      Declaration Tag

    • B. 

      Expression tag

    • C. 

      Scriptlet tag

    • D. 

      None of the above

  • 25. 
    Which was the first most widely used programming interface for accessing relational databases and it offers the ability to connect all the databases on all the platforms.?
    • A. 

      JDBC API

    • B. 

      ODBC API

    • C. 

      Both A & B

    • D. 

      None of the above

Back to Top Back to top