Visual Basic Interview Questions & Answers

Visual Basic Interview Online Test

Technical interview questions and answers are important for a Visual Basic Interview because many companies still use VB for maintaining legacy applications, automation tasks, and Windows-based tools. Recruiters expect candidates to understand syntax, variables, loops, functions, event-driven programming, and form design. Visual Basic remains relevant for industries that rely on older but stable systems, so questions from VB often appear in interviews at companies like TCS, Infosys, Wipro, Cognizant, and Accenture. This guide includes frequently asked Visual Basic interview questions with simple, clear explanations that help freshers and job seekers prepare effectively. These questions will strengthen your understanding of VB fundamentals and improve your performance in both technical rounds and project discussions during campus placements.

1. How do you register a component?

Show Answer

2. Name and explain the different compatibility types when creating a COM component

Show Answer

3. Why is it important to use source control software for source code?

Show Answer

4. What two methods are called from the ObjectContext object to inform MTS that the transaction was successful or unsuccessful?

Show Answer

5. What is the tool used to configure the port range and protocols for DCOM communications?

Show Answer

6. What does Option Explicit refer to?

Show Answer

7. What are the different ways to Declare and Instantiate an object in Visual Basic 6?

Show Answer

8. Name the four different cursor types in ADO and describe them briefly.

Show Answer

9. Name the four different locking type in ADO and describe them briefly.

Show Answer

10. Describe Database Connection pooling (relative to MTS )?

Show Answer

11. What are the ADO objects?

Show Answer

12. Under the ADO Command Object, what collection is responsible for input to stored procedures?

Show Answer

13. What are some benefits of using MTS?

Show Answer

14. What is the benefit of wrapping database calls into MTS transactions?

Show Answer

15. Describe and In Process vs. Out of Process component. Which is faster?

Show Answer

16. What are the main components of the ADO object model? How are they used?

Show Answer

17. Can We create CGI scripts in VB??

Show Answer

18. Dim x, y as integer. What is x and y data type?

Show Answer

19. What is Centralization Error Handling?

Show Answer

20. What is frx?

Show Answer

21. What is the Dll required for running the VB?

Show Answer

22. Why we use Treeview Control?

Show Answer

23. Handling Error in Calling chain.

Show Answer

24. In project properties if we set Unattended what is it mean?

Show Answer

25. What is the size of the variant data type?

Show Answer

26. What is view Port?

Show Answer

27. What are the different types of error?

Show Answer

28. What is the diff between the Std and Class Module?

Show Answer

29. What is Mixed Cursors?

Show Answer

30. Drag and Drop state numbers and functions?

Show Answer

31. What are the Style Properties of Combo Box?

Show Answer

32. What are the Style properties of List Box?

Show Answer

33. What is Collection Objects?

Show Answer

34. What is the difference between Property Get, Set and Let?

Show Answer

35. How to change the Mouse Pointer?

Show Answer

36. What is Friend Variable?

Show Answer

37. What is DBFailError?

Show Answer

38. What are the record set types?

Show Answer

39. What is the diff between RDO and ADO?

Show Answer

40. Diff types of Lock Types?

Show Answer

41. What are the scopes of the class?

Show Answer

42. Have you create Properties and Methods for your own Controls?

Show Answer

43. Private Dim x as integer. Valid ?

Show Answer

44. Different type of Instantiation?

Show Answer

45. What are the different types of Dialog Box?

Show Answer

46. What is Seek Method which type of record set is available this?

Show Answer

47. What is Zorder Method?

Show Answer

48. Can us able to set Instancing properties like Singleuse, GlobalSingleuse to ActiveXDll?

Show Answer

49. What are properties available in Clip Board?

Show Answer

50. What is the different between Microsoft ODBC Driver and Oracle OBDC Driver?

Show Answer

51. What the RDO Methods and Events?

Show Answer

52. What is MAPI ?

Show Answer

53. What is MDI form?

Show Answer

54. Diff type of Datatypes?

Show Answer

55. What is Tabstrip control?

Show Answer

56. What is Static Variable?

Show Answer

57. What is DBSqlPassThrough?

Show Answer

58. What is the starting Index value? How to locate it?

Show Answer

59. What is Parser Bug?

Show Answer

60. What is keyword used to compare to objects?

Show Answer

61. Suppose from form1 to form2 object property settings will arise to ?

Show Answer

62. What is the return type of Instr and Strcmp?

Show Answer

63. What is Implicit?

Show Answer

64. What is Inprocess and Out of Process?

Show Answer

65. Where will we give the option explicit keyword and for what?

Show Answer

66. How can we call Stored procedure of Back End in RDO and ADO ?

Show Answer

67. What is Static Cursor?

Show Answer

68. How to check the condition in Msgbox?

Show Answer

69. What is control array and how many we can have it with in the form?

Show Answer

70. What is diff between the Generic Variable and Specific Variable?

Show Answer

71. What is the diff. Between function and sub procedures?

Show Answer

72. What is the max size allowed for Extension in Visual Basic?

Show Answer

73. What is FireHouse Cursors?

Show Answer

74. With in the form we want to check all the text box control are typed or not? How?

Show Answer

75. What are the type of validation available in VB?

Show Answer

76. How to trap Data Base Error?

Show Answer

77. How to declare Dll Procedure?

Show Answer

78. Referential Integrity (Take care By jet database Engine). Cascade Delete, Cascade Update is done setting property of Attributes.?

Show Answer

79. How to increase the Date corresponding with month,date,year?

Show Answer

80. Name some date function?

Show Answer

81. What is difference between datagrid and flexgrid?

Show Answer

82. What are two validate with Data Control?

Show Answer

83. To connect the Data Control with Back end What are all the properties to be set?

Show Answer

84. What are the Technologies for Accessing Database from Visual Basic?set?

Show Answer

85. What is the diff between the Create Object and Get object?

Show Answer

86. What is Mask Edit and why it is used?

Show Answer

87. What is RdExecDirect?

Show Answer

88. Different type of Passing Value?

Show Answer

89. What are types of binding?

Show Answer

90. What is Dataware Control?

Show Answer

91. What methods are used for DBGrid in unbound mode?

Show Answer

92. What is ADO? What are its objects ?

Show Answer

93. What is the max size allowed for Max Text box length.

Show Answer

94. Record set types and Number available in VB?

Show Answer

95. What is the max size allowed for Max Control Names length?

Show Answer

96. How many procedures are in VB?

Show Answer

97. What is the max size allowed for Max label caption length.?

Show Answer

98. What is the max size allowed for Msgbox Prompt and Input Box?

Show Answer

99. what will be the result for 15/4 and 154 ?

Show Answer

100. Calling Stored Procedures in VB?

Show Answer

101. DSN Less Connection?

Show Answer
Questions and Answers for Competitive Exams Various Entrance Test