Visual Basic 6 Quiz # 4

Instructions
Quiz: Visual Basic 6 Quiz # 4
Subject: Basic Visual Basic 6
Total Questions: 29 MCQs
Time: 29 Minutes

Note

  • Do not refresh the page while taking the test.
  • Results along with correct answers will be shown at the end of the test.
Visual Basic 6 Quiz # 4
Question 1 of 29
00:00
  • You want to display the code and the description of an error. What would be the correct syntax?

  • If the CancelError Property of the CommonDialog Box is set to true then which of the following statement is true:

  • How do you create a read only property in a form?

  • What is the purpose of the Class Builder add-in in Visual Basic:

  • Which three methods does the collection object support?

  • The _______ method resets the contents of bound controls to their original values when the user clicks on the cancel button.

  • Which of the following is the only drag related event?

  • You are creating an ActiveX component that raises user-defined errors. What is the valid range of error numbers that you can use for user-defined errors?

  • Which of the following procedure types will execute when you assign a value to a property of an object?

  • Which parameter of the Execute method of the Connection object returns the number of records that the operation affected?

  • Which of the following statements forces inline error handling?

  • Which of the following locking types will lock a recordset only during an Update process and not immediately when the data modifications are requested?

  • Which form event would you use to activate a pop-up menu when the user clicks the right mouse button?

  • How many root nodes can a TreeView control have?

  • To deactivate the Form UnLoad event, you make the following change in the function definiton:

                Private Sub Query_Unload(Cancel as Integer,UnloadMode as Integer)

    To prevent the Form from closing, you will set the:

  • Which object is used for error handling? 

  • The _____ of the Visual Basic IDE displays a list of all the files of an application:

  • Which of the following compiled elements does not run in process?

  • To save a file in a RichTextBox Control and a picture in a Picture Box Control, you will use the _________ and __________ statements, respectively:

  • To destroy an object and free the memory space occupied by it, the keyword used is:

  • The vbCritical symbol displays:

  • Which of the following is not an element of the ADO model? 

  • Which of the following is the valid stepping option? 

  • How do you make a control gray and inaccessible in VB?

  • Which property of the ListView control determines which field a sort is based on?

  • In Visual Basic, which method can you use to send key strokes to other Window applications?

     

  • Which line of the following code contains an error?

    1 public Sub Command1_Click()

    2 Dim str As String

    str = "Hello World"

    3 i = val(str)

    4 length = len(str)

    5 Msgbox "No Of Characters in " & str & " = " & CStr(length)

    6 End Sub

  • You try to initialize a new Object variable with the following line but receive an error. What could be the possible cause? Set MyVar = New Classname

  • Labels do not respond to _____ and ______ events.

Liked this quiz? Share it with friends:

Visual Basic 6 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

Visual Basic 6 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it