Ajava MCQ -test 2 (6th Dip Ce-IT)

25 Questions | Total Attempts: 34

SettingsSettingsSettings
Please wait...
Ajava MCQ -test 2 (6th Dip Ce-IT)


Questions and Answers
  • 1. 
    JDBC is used for data base connection.
    • A. 

      True

    • B. 

      False

  • 2. 
    Which is the best driver for data base connection?
    • A. 

      Depend on application

    • B. 

      Type-2

    • C. 

      Type-3

    • D. 

      Type-4

  • 3. 
    Which package is use for java database connectivity?
    • A. 

      Javax.sql

    • B. 

      Java.sql

    • C. 

      Java.net

    • D. 

      Java.emi

  • 4. 
    ExecuteQuery statement is used for to return select statement.
    • A. 

      True

    • B. 

      False

  • 5. 
    ExecuteUpdate is used to create,alter and drop of query statement.
    • A. 

      True

    • B. 

      False

  • 6. 
    GetString() method is used to return which data type?
    • A. 

      Int

    • B. 

      Varchar

    • C. 

      Char

    • D. 

      String

  • 7. 
    Jsp page require which driver type mainly?
    • A. 

      Type-4

    • B. 

      Type-2

    • C. 

      Type-1

    • D. 

      All

  • 8. 
    Which is type-1 driver?
    • A. 

      Native-API driver

    • B. 

      Network Protocol driver

    • C. 

      JDBC-ODBC bridge driver

    • D. 

      Thin driver

  • 9. 
    Which one is support fully functionality?
    • A. 

      Type-1

    • B. 

      Type-2

    • C. 

      Type-3

    • D. 

      Type-4

  • 10. 
    Native-API driver is partially driver
    • A. 

      True

    • B. 

      False

  • 11. 
    Network protocol driver is not fully supported java
    • A. 

      True

    • B. 

      False

  • 12. 
    To register driver which function is used ?
    • A. 

      Class.forName("oracle.jdbc.driver.OracleDriver");  

    • B. 

      Class.ForName("oracle.jdbc.driver.OracleDriver");  

    • C. 

      Class.forname("oracle.jdbc.driver.OracleDriver");  

    • D. 

      Class.forName("oracle.jdbc.driver.OracleDriver");  

  • 13. 
    To pass id,pwd is compulsory in connection class.
    • A. 

      True

    • B. 

      False

  • 14. 
    To close the connection is compulsory for jdbc.
    • A. 

      True

    • B. 

      False

  • 15. 
    While(rs.next()) is infinite loop.
    • A. 

      True

    • B. 

      False

  • 16. 
    Which one the follwing is the biggest package in java?
    • A. 

      Awt

    • B. 

      Swing

    • C. 

      Net

    • D. 

      Sql

  • 17. 
    In awt package setBound() method have howmany parameter?
    • A. 

      1

    • B. 

      2

    • C. 

      3

    • D. 

      4

  • 18. 
    To create Button which class is used?
    • A. 

      Button

    • B. 

      Button

    • C. 

      Both

    • D. 

      None 

  • 19. 
    F.setSize() use how many coordinates?
    • A. 

      Only x

    • B. 

      X and y

    • C. 

      Only y

    • D. 

      X,y and z

  • 20. 
    JFrame is use which package?
    • A. 

      Awt

    • B. 

      Swing

    • C. 

      Both

    • D. 

      None

  • 21. 
    In terms of functionality both awt and swing are same.
    • A. 

      True

    • B. 

      False

  • 22. 
    In awt setLayout have actually how many layouts?
    • A. 

      1

    • B. 

      2

    • C. 

      3

    • D. 

      4

  • 23. 
    In java all the classes of awt is invoked with the help of JRE.
    • A. 

      True

    • B. 

      False

  • 24. 
    Type-4 driver require less number of process compare to others.
    • A. 

      True

    • B. 

      False

  • 25. 
    Exception handling mechanism have which part to write the code?
    • A. 

      Try block

    • B. 

      Catch block

    • C. 

      Finally

    • D. 

      Throws and throw

Back to Top Back to top