VB Interview Questions 7



  1. Message Boxes can hold a maximum of _______ characters.
    • 256
    • 512
    • 1024
    • 2046
    • 4092
    • 5000
    • 10000
    • No limit
  2. Which parameter of the Execute method of the Connection object returns the number of records that the operation affected?
    • RecordsAffected
    • RowsAffected
    • RecordsUpdated
    • RowsOperated
    • RecordsOperated
  3. Which of the following is not an element of the ADO model?
    • Database
    • Error
    • Connection
    • Parameter
    • Recordset
    • Field
    • Driver
  4. What data type is the HelpContextID?
    • String
    • Integer
    • Single
    • Double
    • Long
    • Char
    • Float
  5. Variables that allow sharing of values across event procedures are called:
    • Form level variable
    • Object variable
    • Module level variable
  6. Which property of the ListView control determines which field a sort is based on?
    • Sorted
    • SortKey
    • SortOrder
    • SortField
    • Sort
    • Key
    • ListKey
    • None of the above
  7. Consider the following subprogram:

    Sub ChangeText(ByVal X as String,Y as String)
    Y = X
    End Sub
    If you are calling it using the following code:
    Call ChangeText(Form1.Caption,Y$)

    • The Caption of Form1 will change to the value contained in Y$
    • The Caption of Form1 will not change
    • The Caption changes at random intervals after the function call
    • The code is incorrect
  8. Visual Basic fires the _______ event everytime a part of the form is newly exposed.
    • Load
    • Activate
    • Paint
    • Show
    • Initialize
  9. Which of the following ADO recordset types provides the greatest degree of concurrency?
    • Static
    • Forward-only
    • Dynamic
    • Keyset
    • Read only
    • Keyset and Dynamic
  10. Which of the following is the only valid Resume statement in an error handler?
    • Resume prior
    • Resume previous
    • Resume later
    • Resume next
    • Resume before
    • Resume to
    • Resume statement
    • Resume application


Leave a comment

Name: (Required)

eMail: (Required)

Website:

Comment: