Visual Basic Interview Questions & Answers

Showing 10 of 101 questions | Page 8

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.

Showing 10 of 101 questions

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

Function will return value but a sub procedure wont return values

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

Frm, bas, cls, res, vbx, ocx, frx, vbp, exe

73. What is FireHouse Cursors?

Forward Only Some time Updateable

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

For each currentcontrol in controls if typeof currentcontrol is TextBox then end if next

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

Field, Form

76. How to trap Data Base Error?

Dim x as RDOError X(0).Des X(1).Number Setting the Cursors. Default Cursor 0 ODBC Cursor (Client side) 1 ServerSide Cursors (More Network traffic) - 2

77. How to declare Dll Procedure?

Declare function "" lib "" Alias "" (Arg, ..) as Return type.

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

DbRelationDeleteCascade, DbRelationUpdateCascade.

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

DateSerial(year(Now),Month(Now)+1,1) Hour, min, sec, month, year, DateSerial, dateadd, datediff, weekday, datevalue, timeserial,timevalue.

80. Name some date function?

Dateadd(), Datediff(), Datepart(), Cdate()
Questions and Answers for Competitive Exams Various Entrance Test