InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Is Doevents? |
|
Answer» DoEvents command tell PROGRAM control to EXECUTE other commands, while EXECUTING LONG task. DoEvents command tell program control to execute other commands, while executing long task. |
|
| 2. |
What Is Autoredraw Event Of Form And Picturebox ? |
|
Answer» AUTOMATICALLY REDRAW the OUTPUTS. Automatically redraw the outputs. |
|
| 3. |
What Is The Difference In Passing Values Byref Or Byval To A Procedure? |
|
Answer» a) ByRef -PASS the ADDRESS of variable not value a) ByRef -pass the address of variable not value |
|
| 4. |
What Is The Difference Between A Property Let And Property Set ? |
|
Answer» LET used to SET value for ORDINARY variable and Set used to set value for OBJECT variable. Let used to set value for ordinary variable and Set used to set value for object variable. |
|
| 5. |
Name Different Ado Objects? |
|
Answer» a) Connection a) Connection |
|
| 6. |
What Are Different Locking Type Available In Ado. |
|
Answer» a) LockPessimistic - Locks the row once after any EDITS occur. a) LockPessimistic - Locks the row once after any edits occur. |
|
| 7. |
What Is The Query Unload And Unload Event In Form? |
|
Answer» QUERY unload event occurs in a FIRST and then unload event occurs, in MDI form we can TRAC child form closing status by USING this event. Query unload event occurs in a first and then unload event occurs, in MDI form we can trac child form closing status by using this event. |
|
| 8. |
How Objects On Different Threads Communicate With One Another? |
|
Answer» Processes COMMUNICATE with one ANOTHER through messages, using MICROSOFT’s Remote PROCEDURE Call (RPC) technology to pass information to one another. Processes communicate with one another through messages, using Microsoft’s Remote Procedure Call (RPC) technology to pass information to one another. |
|
| 9. |
What Is The Object And Class? |
|
Answer» Class is TEMPLATE from we can create OBJECTS, Objects are INSTANTIATE of a class. For example car is a class and MARUTI 800, Maruti ZEN are objects of car class. Class is template from we can create objects, Objects are instantiate of a class. For example car is a class and Maruti 800, Maruti Zen are objects of car class. |
|
| 10. |
What Is The Difference Modal And Moduless Window? |
|
Answer» A modal FORM has exclusive focus in that application until it is dismissed. Moduless form are not REQUIRED exclusive focus and it is default when we SHOW any form. A modal form has exclusive focus in that application until it is dismissed. Moduless form are not required exclusive focus and it is default when we show any form. |
|
| 11. |
What Is The Difference Between Listbox And Combo Box? |
|
Answer» Both are DISPLAY LIST of items, however in combo BOX user can EDIT the item. Both are display list of items, however in combo box user can edit the item. |
|
| 12. |
What Are Different Types Of Recordset Available In Ado ? |
|
Answer» a) Table-type RECORDSET - Hold records from single table and can add, edit and delete. a) Table-type Recordset - Hold records from single table and can add, edit and delete. |
|
| 14. |
What Is The Difference Between A Function And A Sub (method) ? |
|
Answer» FUNCTION ALWAYS RETURN a value, wheras am METHOD MAY or may not return value. Function always return a value, wheras am method may or may not return value. |
|
| 15. |
What Is The Difference Between Image And Picture Box Controls? |
|
Answer» The SIZING BEHAVIOR of the image control differs from that of the picture box. It has a STRETCH property while the picture box has an AutoSize property. Also picture box is a container control and SUPPORT most of the graphics method. The sizing behavior of the image control differs from that of the picture box. It has a Stretch property while the picture box has an AutoSize property. Also picture box is a container control and support most of the graphics method. |
|
| 16. |
Describe Inprocess And Out Of Process ? |
|
Answer» An in-process component is implemented as a DLL CALLED ACTIVEX DLL, and runs in the same process space as its client app, enabling the most efficient communication between client and component. Each client app that uses the component starts a new instance of it. An out of process component is implemented as an EXE called ActiveX EXE, and unlike a dll, runs in its own process space. As a result, exe’s are slower then dll’s because communications between client and component must be MARSHALLED across process BOUNDARIES. A single instance of an out of process component can service many clients. An in-process component is implemented as a DLL called ActiveX DLL, and runs in the same process space as its client app, enabling the most efficient communication between client and component. Each client app that uses the component starts a new instance of it. An out of process component is implemented as an EXE called ActiveX EXE, and unlike a dll, runs in its own process space. As a result, exe’s are slower then dll’s because communications between client and component must be marshalled across process boundaries. A single instance of an out of process component can service many clients. |
|
| 17. |
How May Type Of Controls Are Available In Vb6 ? |
|
Answer» Intrinsic controls - Default controls of VB6, These control are always available in VB6 Toolbox. ActiveX controls - .These are extra controls which can be added into toolbox and this control having SEPARATE files (.OCX). Must be deployed SEPARATELY along with application in other system. Intrinsic controls - Default controls of VB6, These control are always available in VB6 Toolbox. ActiveX controls - .These are extra controls which can be added into toolbox and this control having separate files (.ocx). Must be deployed separately along with application in other system. |
|
| 18. |
What Are Different Types Of Activex Components Available In Vb 6.0 ? |
|
Answer» STANDARD EXE, ACTIVEX EXE, ActiveX DLL, ActiveX DOCUMENT, and ActiveX Control. Standard EXE, ActiveX EXE, ActiveX DLL, ActiveX document, and ActiveX Control. |
|
| 19. |
What Is The Differences Between Flexgrid And Dbgrid Control? |
|
Answer» Microsoft FlexGrid (MSFlexGrid) CONTROL displays and operates on tabular data. It allows programmatically sort, merge, and format tables containing STRINGS and pictures. DBgrid is A spreadsheet-like bound control that displays a series of ROWS and COLUMNS representing RECORDS and fields from a ADO Recordset object. Microsoft FlexGrid (MSFlexGrid) control displays and operates on tabular data. It allows programmatically sort, merge, and format tables containing strings and pictures. DBgrid is A spreadsheet-like bound control that displays a series of rows and columns representing records and fields from a ADO Recordset object. |
|
| 20. |
Describe In Process And Out Of Process Component? |
|
Answer» In-process COMPONENT is IMPLEMENTED as a DLL, and runs in the same process space as its client app, enabling the most efficient communication between client and component. An out of process component is implemented as an EXE, and unlike a dll, runs in its own process space. As a result, exe’s are SLOWER then dll’s because communications between client and component must be marshalled across process BOUNDARIES In-process component is implemented as a DLL, and runs in the same process space as its client app, enabling the most efficient communication between client and component. An out of process component is implemented as an EXE, and unlike a dll, runs in its own process space. As a result, exe’s are slower then dll’s because communications between client and component must be marshalled across process boundaries |
|
| 21. |
Which Property Of Textbox Cannot Be Changed At Runtime |
|
Answer» ALIGNMENT PROPERTY, TAB INDEX ETC Alignment property, Tab Index etc |
|
| 22. |
What Is The Default Property Of Datacontrol? |
|
Answer» Caption Caption |
|
| 23. |
Which Method Of Recordset Is Used To Store Records In An Array. |
|
Answer» getrows getrows |
|
| 24. |
How To Copy Text To The Windows Clipboard And From It. |
|
Answer» Clipboard.SetData and Clipboard.GetData Clipboard.SetData and Clipboard.GetData |
|
| 25. |
What Is Option Base Used For In Vb6 ? |
|
Answer» Option Base is to set the INDEX of the ARRAY to start from 0 or 1.Like option explicit.. declare “Option base 1″ at the top. now the array will start from Index By default the index starts from 0. Option Base is to set the Index of the Array to start from 0 or 1.Like option explicit.. declare “Option base 1″ at the top. now the array will start from Index By default the index starts from 0. |
|
| 26. |
How Do I Make A Menu Popup From A Commandbutton |
|
Answer» PRIVATE Sub Command1_MouseDown(BUTTON As Integer, SHIFT As Integer, X As Single, Y As Single) Private Sub Command1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) |
|
| 27. |
Can I Send Keystrokes To A Dos Application? |
|
Answer» AppActivate (”C:windowssystem32cmd.exe”) ‘ Appilcation caption AppActivate (”C:windowssystem32cmd.exe”) ‘ Appilcation caption |
|
| 28. |
Early Binding Vs Late Binding - Define Them And Explain? |
|
Answer» Early binding allows DEVELOPERS to interact with the object’s properties and methods during coding permits the compiler to check your code. Errors are CAUGHT at compile time. Early binding also RESULTS in faster code LATE binding on the other hand permits defining generic objects which may be bound to different objectsyou could declare myControl as Control without KNOWING which control you will encounter. You could then query the Controls collection and determine which control you are working on using the TypeOf method and branch to the section of your code that provides for that type set ex =CreateObject(“Excel.Application”) Early binding allows developers to interact with the object’s properties and methods during coding permits the compiler to check your code. Errors are caught at compile time. Early binding also results in faster code Late binding on the other hand permits defining generic objects which may be bound to different objectsyou could declare myControl as Control without knowing which control you will encounter. You could then query the Controls collection and determine which control you are working on using the TypeOf method and branch to the section of your code that provides for that type set ex =CreateObject(“Excel.Application”) |
|
| 29. |
Which Controls Have Refresh Method? |
|
Answer» CHECKBOX, comna, combo, list, picture, ADO CONTROL, Data,DATAGRID, Datareport,Dir list biox, filelistbox ETC. Checkbox, comna, combo, list, picture, ADo control, Data,Datagrid, Datareport,Dir list biox, filelistbox etc. |
|
| 30. |
What Is Ole Used For ? |
|
Answer» Object LINKING and embedding, for using to other object classes like word, EXCEL , autocad OBJECTS in our own APPLICATIONS, only THING we have to add reference for these objects. Object linking and embedding, for using to other object classes like word, excel , autocad objects in our own applications, only thing we have to add reference for these objects. |
|
| 31. |
To Set The Command Button For Esc, Which Property Has To Be Changed ? |
|
Answer» Cancel Cancel |
|
| 33. |
What Are The Ado Objects? Explain Them. Provide A Scenario Using Three Of Them To Return Data From A Database. |
|
Answer» Connection: Used to make a connection between your app and an external DATA source, ie, SQL server Connection: Used to make a connection between your app and an external data source, ie, sql server |
|
| 34. |
Name The Four Different Locking Type In Ado And Describe Them Briefly. |
|
Answer» LockPessimistic: Locks the row once after any EDITS occur. LockPessimistic: Locks the row once after any edits occur. |
|
| 35. |
Name The Four Different Cursor Types In Ado And Describe Them Briefly. |
|
Answer» FORWARD Only: Fastest, can only move forward in recordset. Forward Only: Fastest, can only move forward in recordset. |
|
| 36. |
What Are The Different Ways To Declare And Instantiate An Object In Visual Basic 6? |
|
Answer» DIM OBJ as OBJ.CLASS Dim obj as OBJ.CLASS |
|