Your Ad Here

Sunday, January 11, 2009

Campus Interview Papers: 30 VB Interview Questions & Answers

Q : How many objects resides in ADO ?
A : ADO Objects,Connection,Command,Recordset,Parameter,Field,Error

Q : What is the difference between ADODC and ADODB
A : When u build connection with database through coding, then its ADODB..
When u build connection with database through ADO component, then its ADODC

Q : What is difference between dbgrid and flexgrid control
A ; In case of flexgrid also you can make it editable, by placing the textbox on runtime on the cell and key in required data. This is possible with flexgrids onCellEnter and onCellLeave events.

Q: How will u handle error in vb application ? explain
A : If You want To Trap The Error In Visual Basic Code then
Write The Code In Every Procedure & Function

Public Sub xxxxx()
On Error Goto Err_xxxxx
Err_xxxxx:
if err.Number<>0 then
msgbox err.description
end if
End Sub

Q :What is MAPI?
A : Messaging Application programing Interface.

Q : Difference between subquery and coquery
A :A subquery is called a query with in the query. Such as
select n1,n2 from table1 where in n1 not in(select n1 from table2)
while main query is the only query like
select n1,n2 from table1

Q :What are the type of validation available in VB?
A : Field, Form

Q : What's the purpose of Visual source safe in vb?
A : The Visual source safe is used to set level of user control to read, add & destroy.

Q : Why we use Treeview Control?
A : To list the hierarchical list of the node objects. Such of files and Directories

Q : How many images can be placed in the image list?
A: 64

Q : What are the Style Properties of Combo Box?
A : Simple, Dropdown list We can type and select. Dropdown Combo Only Drop Down.

Q : How to change the Mouse Pointer?
A : S creen.MousePointer = VBHourGlass/VBNormal.

Q : Diff types of Lock Types?
A : RdConcurReadOnly 0 (Default)
RdConcurLock 1 (Pessimistic Locking)
RdConcurRowver 2 (Optimistic Lociking)
RdConcurValues 3
RdConcurBatch 4

Q : What are the scopes of the class?
Public, private, Friend

Q : Diff type of Datatypes?
A : LOB (Large Object Data type).
CLOB (Stores Character Objects).
BLOB ( Store Binary Objects such as Graphic, Video Chips and Sound files).
BFILE(Store file pointers to LOB It may Contain filename for photo’s store on CD_ROM).

Q : What is Inprocess and Out of Process?
A : Inprocess It will run with in the memory. ( Local Machine). Out of Process It will run out of the memory Normally in the server side.

Q : What is diff between the Generic Variable and Specific Variable?
A : Generic Variable:
Create Object Ex:-Ole-Automation . No need refer the object library.
Specific Variable:
Binding Procedure Early and Late Binding ( Can be Remove from the Memory).

Q : What are the Technologies for Accessing Database from Visual Basic?set?
A : DAO, Data Control, RDO, ODBCDIRECT, ADO, ODBC API , 0040.

Q : What is the diff between the Create Object and Get object?
A : Create Object - To create an instance of an object.
Get Object To get the reference to an existing object

Q : What is the max size allowed for Max Text box length.
A : 32,000

Q : How many event in VB6 form ? :
A : 31

Q : What about OCX Controls
A : OCX is a USER control. we can create a control of our own and use it in our projects. OCX can be created using Activex control

. For example if we have a Text Box for getting Numbers only in every form and in every project we can create a Text Box for getting numbers only in ActiveX Control and use it as we do to other Text Box.

Q : What is compatibility ?
A : IN Visual Basic have 3 types of Compatibilites is there.

1) No Compatibility :- New GUID created, references from other components will not work
2) Project Compatibility :-Default for a new component
3) Bianary Compatibility :-GUID does not change, references from other components will work

Q : How to send data from MS FlexGrid to database
A : FlexGrid1.TextMatrix(Row,Column) ...

Q : What is Stored Variable?
A stired variable is a variable which is permanently stored in the memory and we can use that variable in our project.

Q : What are the advantages of Visual Basic ?
A : 1) VB is a rapid application Tool to develop applications faster2) Flexibility in design time3) Debugging the source code4) .(dot) operator for objects to expose its properties and methods5) plug and play wizards to connect databases

Q : What is Tag & What is the purpose of using a Tag?
A : Tag is usaually used to store the value of any variable or store the value of any field for the future use. ...

Q : What is Diff. Between Use Defined Function and Array.
A : Array is collection of variable of similar datatypes saves unser the same name.while user definded function are like the store procedures but more effective than store proceures.we can pass the parameters to user definded funtion and it return u the results ...

Q : What is meant by urlencode and urldecode?
Anwser 1:
urlencode() returns the URL encoded version of the given string. URL coding converts special characters into % signs followed by two hex digits. For example: urlencode("10.00%") will return "10%2E00%25". URL encoded strings are safe to be used as part of URLs.
urldecode() returns the URL decoded version of the given string.

Anwser 2:
string urlencode(str) - Returns the URL encoded version of the input string. String values to be used in URL query string need to be URL encoded. In the URL encoded version:

Alphanumeric characters are maintained as is.
Space characters are converted to "+" characters.
Other non-alphanumeric characters are converted "%" followed by two hex digits representing the converted character.

string urldecode(str) - Returns the original string of the input URL encoded string.

For example:

$discount ="10.00%";
$url = " http://domain.com/submit.php?disc=".urlencode($discount );
echo $url;

You will get " http://domain.com/submit.php?disc=10%2E00%25 ".

Q : what is instead of trigger ? explain
A : Instead of Trigger is used in SQL Server it used when we execute some sql QUERYsome how that query doesn't execute then Instead of Trigger is fired.

0 comments:

Your Ad Here