Archive for VISUAL BASIC interview tips

You are browsing the archives of VISUAL BASIC interview tips.

Visual Basic Interview Questions(111-120)

How do you show which page you’re on (in a menu)?
If PHP is not available to you, you could use the cascade. Put an id in your body tags and an id in each of your ‘a’ tags for the links.
Let’s say on page one you have this:

CSS
<body id="page1">
….
<a id="page1link" href="page1.htm">page one</a>

</body>

In your CSS, [...]

Visual Basic Interview Questions(101-110)

What’s the difference between ‘class’ and ‘id’?
As a person, you may have an ID card – a passport, a driving license or whatever – which identifies you as a unique individual. It’s the same with CSS. If you want to apply style to one element use ‘id’ (e.g.

<div id="myid">

). In the stylesheet, you identify [...]

Visual Basic Interview Questions(91-100)

What is the max size allowed for Max label caption length.?
2,048
what will be the result for 15/4 and 154 ?
15/4 = 3.75 and 154 = 3
What is the max size allowed for Msgbox Prompt and Input Box?
1024
Calling Stored Procedures in VB?
1. Calling Simply the Procedure with out Arguments “Call ProcedureName}”
2. If it is with Arguments [...]

Visual Basic Interview Questions(81-90)

Different type of Passing Value?
By value, By ref, Optional, Param Array. Note:- Optional keyword cannot be used while declaring arguments for a function using param array.
What are types of binding?
Assigning variable with defined memory space.
Late Binding – Memory size is allotted in later stage.
Ex:- Dim x as object
Early Binding – Memory size is allotted while [...]

Visual Basic Interview Questions(71-80)

Referential Integrity (Take care By jet database Engine). Cascade Delete, Cascade Update is done setting property of Attributes.?
DbRelationDeleteCascade, DbRelationUpdateCascade.
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.
Name some date function?
Dateadd(), Datediff(), Datepart(), Cdate()
What is difference between datagrid and flexgrid?
Datagrid Editable. Flexigrid Non-Editable. (Generally used for Read [...]

Visual Basic Interview Questions(61-70)

How to check the condition in Msgbox?
If(Msgbox(“Do you want to delete this Record”,VbYesNo)=VbYes)Then End if
What is control array and how many we can have it with in the form?
Group of control share the same name. Max 32, 767.
What is diff between the Generic Variable and Specific Variable?
Generic Variable:
Create Object Ex:-Ole-Automation . No need refer the [...]

Visual Basic Interview Questions(51-60)

What is Static Variable?
Its Scope will be available through out the life time.
What is DBSqlPassThrough?
It will By Passing the Jet Query Processor.
What is the starting Index value? How to locate it?
It is tab control to place our controls with in the form in multiple sheets.
Index starts with 1.
And to identify If Tabstrip1.SelectedItem.
Index = 1 Then [...]

Visual Basic Interview Questions(41-50)

What is Seek Method which type of record set is available this?
Only in DbOpenTables.
Syntax: rs.index = “empno”
rs.seek “=” , 10
If with our setting the rs.index then run time error will occur.
What is Zorder Method?
Object.Zorder = 1 or 0 Place a Specified mdiform form or control at the front or back of the z-order with n [...]

Visual Basic Interview Questions(31-40)

What is the difference between Property Get, Set and Let?
Set Value is assigned to ActiveX Object from the form.
Let Value is retried to ActiveX Object from the form.
Get- Assigns the value of an expression to a variable or property.
How to change the Mouse Pointer?
Screen.MousePointer = VBHourGlass/VBNormal.
What is Friend Variable?
Scope sharable between projects.
What is DBFailError?
Rolls Back [...]

Visual Basic Interview Questions(21-30)

What is the diff between the Std and Class Module?
Std Global with in the project. Cls Global through out the all project only thing is we want to set the type lib. Class Modules can be Instantiated.
What is Mixed Cursors?
Static + Keyset
Drag and Drop state numbers and functions?
State 0 Source control is being dragged with [...]