Visual Basic (VB)

  Home  Computer Programming  Visual Basic (VB)


“Visual Basic Interview Questions and Answers will guide you that Visual Basic (VB) is the third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model. By browsing our Visual Basic Interview Questions and Answers you will learn that VB is also considered a relatively easy to learn and use programming language. This VB interview questions and answers guide will make Visual Basic more easy to learn for every one.”



102 Visual Basic (VB) Questions And Answers

22⟩ What are the ADO objects?

Provide a scenario using three of them to return data from a database. Expected answer: Connection Connects to a data source; contains the Errors collectionCommand Executes commands to the data source. Is the only object that can accept parameters for a stored procedure.Recordset The set of data returned from the database.Scenario: There are many possibilities. The most likely is as follows:Dim conn As ADODB.ConnectionDim rs As ADODB.RecordsetDim Cmd As ADODB.Commandconn.ConnectionString = ?CONNECTION STRING?conn.OpenSet Cmd.ActiveConnection = connCmd.CommandText = ?SQL STATEMENT?Set rs = Cmd.ExecuteSet rs.ActiveConnection = Nothingconn.Close

 203 views

28⟩ What is the size of the variant data type?

The Variant data type has a numeric storage size of 16 bytes and can contain data up to the range of a Decimal, or a character storage size of 22 bytes (plus string length),and can store any character text.

 210 views

37⟩ What is frx? What is frx?

When some controls like grid and third party control placed in our application then it will create frx in run time.

 214 views

38⟩ Different type of Instantiation in VB?

Private Only for the Specific Module.

Public not creatable Private & Public

Multi Use - Variable we have to declare.

Single Use Not possible through dll.

Global Multiuse Have variable not Required to Declare.

Global Single Use - Only for exe.

 209 views

40⟩ Diff types of Lock Types?

RdConcurReadOnly 0 (Default)

RdConcurLock 1 (Pessimistic Locking)

RdConcurRowver 2 (Optimistic Lociking)

RdConcurValues 3

RdConcurBatch 4

 206 views