Visual Basic Online Test

50 Questions | Total Attempts: 5923

SettingsSettingsSettings
Please wait...
Visual Basic Online Test

VB. Net Online Test


Questions and Answers
  • 1. 
    Which keyword refers the parent of the current object
    • A. 

      Me

    • B. 

      Super

    • C. 

      Mybase

    • D. 

      This

  • 2. 
    • A. 

      It makes a method Overridable

    • B. 

      It makes a method not inheritable

    • C. 

      It replaces all the implementation from high in the inheritance chain

    • D. 

      None

  • 3. 
    How do you achieve interface implementation in VB.NET?
    • A. 

      Implements

    • B. 

      Uses

    • C. 

      Imports

    • D. 

      Overrides

  • 4. 
    How does VB.NET instantiates the .NET object
    • A. 

      Using NEW keyword

    • B. 

      Using CREATEOBJECT keyword

    • C. 

      Using GETOBJECT keyword

    • D. 

      Both A & B

  • 5. 
    Web.Config file is of the type
    • A. 

      .vb

    • B. 

      XML

    • C. 

      Resource

    • D. 

      Aspx

  • 6. 
    How to determine if a variable has not been initialized in VB.NET?
    • A. 

      ISNull( )

    • B. 

      IsEmpty( )

    • C. 

      IsDdNull( )

    • D. 

      None

  • 7. 
    Which part of the .NET Framework provides Context for managed code?
    • A. 

      CLR

    • B. 

      .NET Context Manager

    • C. 

      CTS

    • D. 

      None

  • 8. 
    How are the parameters referenced by default in VB.NET?
    • A. 

      By Object

    • B. 

      By Val

    • C. 

      By Ref

    • D. 

      None

  • 9. 
    How do you limit implicit type conversion in VB.NET?
    • A. 

      Option Strict On

    • B. 

      Option Strict=1

    • C. 

      Options Strict True

    • D. 

      Option Strict off

  • 10. 
    Which are the exceptions that VB.Net supports ,C# & other languages doesn’t support ?
    • A. 

      When Clause

    • B. 

      Exit Try statement

    • C. 

      Both A & B

    • D. 

      None

  • 11. 
    VbOk,VbCancel,VbAbort are all the enumerated members of
    • A. 

      MsgboxStyle Enumeration

    • B. 

      MsgboxResult Enumeration

    • C. 

      CompareMethod Enumeration

    • D. 

      None

  • 12. 
    Which of the following are the valid method of command object
    • A. 

      ExecuteNonQuery & ExecuteScalar

    • B. 

      ExecuteQuery & ExecuteScalar

    • C. 

      ExecuteParameter

    • D. 

      None

  • 13. 
    The Visual Basic Compiler is
    • A. 

      Vbcompiler.exe

    • B. 

      Vb.exe

    • C. 

      Vbc.exe

    • D. 

      None

  • 14. 
    Which statement shows Boxing?
    • A. 

      Dim O as object=I ( as i an integer)

    • B. 

      Dim I as integer=O

    • C. 

      Both

    • D. 

      None

  • 15. 
    What is the maximum no of dimension that an array can have in VB.NET ?
    • A. 

      3

    • B. 

      5

    • C. 

      32

    • D. 

      Unlimited

  • 16. 
    Which class is used to run the EXE application file in VB.NET
    • A. 

      Process

    • B. 

      Application

    • C. 

      Exe

    • D. 

      Execute

  • 17. 
    How do you join strings in VB.NET
    • A. 

      +

    • B. 

      &

    • C. 

      Both A & B

    • D. 

      None

  • 18. 
    To find out the role of the logged in user, you’ll use
    • A. 

      User.IsInRole(“Administrators”)

    • B. 

      User.Role(“Administrators”)

    • C. 

      UserRole(“Administrators”)

    • D. 

      None

  • 19. 
    Classes from which namespace will have to be used to read or write to a file?
    • A. 

      System.IO

    • B. 

      System.FileObjects

    • C. 

      System.FileSystem

    • D. 

      None

  • 20. 
    In VB.NET default value for Boolean variable?
    • A. 

      TRUE

    • B. 

      FALSE

    • C. 

      Nothing

    • D. 

      Null

  • 21. 
    Which SQL statement is used to delete data from a database ?
    • A. 

      Delete

    • B. 

      Remove

    • C. 

      Collapse

    • D. 

      None of the above

  • 22. 
    Which SQL statement is used to update data in a database ?
    • A. 

      Save

    • B. 

      Save As

    • C. 

      Modify

    • D. 

      Update

  • 23. 
    Which SQL statement is used to extract data from a database ?
    • A. 

      Open

    • B. 

      Extract

    • C. 

      Get

    • D. 

      Select

  • 24. 
    System databases stores server specific configuration information, including authorized users, databases, system configuration settings and remote servers ?
    • A. 

      Model db

    • B. 

      Master db

    • C. 

      Resource db

    • D. 

      Msdb db

  • 25. 
    A _____ column cannot contain NULL values since it is used to uniquely identify rows in a table.
    • A. 

      Primary key

    • B. 

      Foreign key

    • C. 

      Composite key

    • D. 

      Candidate key