Friday, September 24, 2004

Visual Basic Interview Questions



1. If you were writing a program, what method would you use to send information from the main form of the application to a modal popup form and then pass any changes to the data back to the main form when the popup form was closed?


2. How would you center a form on the screen? How about centering it on another form?

3. If events, such as a tool bar button or menu click, occurs on a MDI parent how can it invoke an action on one or more MDI child forms?

4. What are some methods you can use to send data from one VB executable to another one?

5. What are the differences between a standard module and a class module?

6. What do you have to do to make your class visible to programs other than your own?

7. How can you tell what kind of object an object variable is holding?

8. Describe the different scopes of variables in VB.

9. Describe the difference between a public variable in a form and one in a standard code module.

10. How do you handle error conditions in your code?

11. What are some uses and misuses of variants?

12. What are some of the steps you can take to determine why your program is crashing with "Invalid Page Fault" errors?

13. What are the different ways you can use threading in VB? When are they appropriate?

14. How many tabs in a tabbed dialog do you consider appropriate?

15. How many items should you make available to users in a listbox or combo box?

VB Interview Questions :technical interview

Common questions asked in VB technical interview :

1.What versions of VB have you used? Have you used VBA or VBScript?
2.Have you ever created ActiveX controls? If so, what did they do?
3.Have you ever created ActiveX DLLs? If so, why did you reate the DLLs instead of using code in the main application?
4.Have you ever created ActiveX EXEs? If so, what were they used for?
5.What third party ActiveX controls have you used?
6.Have you ever used ADO? How about any other database engines?
7.Have you ever used classes? If so, how have you used them?
8.Have you ever used Collections? Collection Classes?
9.Have you ever used resource files? If so, for what reason?
10.Have you used the Dictionary Object?
11.Have you used the FileSystemObject?
12.What database backends have you worked with? Access? SQL Server? Oracle?
13.What version control systems have you used?
14.What versions of Windows have you used? Have you used any other operating systems?15.Have you developed components for MTS? How about IIS and/or ASP pages? Any other server based components?
16.Are there any other programming tools, such as database diagramming or CASE tools, that you've used?
17.Have you ever created Web Classes? ActiveX documents? Any other web based components?
18.Have you ever built a DCOM application?

VB Interview Questions: Classes and Controls


1.2. How would you implement a collection class, such as a list of employees? What standard procedures/properties would you expect to find in a collection class?
1.3. How would you declare and raise custom events in a class?
1.4. Define the term "polymorphism"
1.5. Define the term "encapsulation"
1.6. What is the difference between a Property Let and Property Set procedure?
1.7. Define three common instancing properties available to classes within an ActiveX DLL or EXE project.
1.8. How do you determine the class type of a class variable?




2.1. Do you know the main difference between a PictureBox and Image control?
2.2. How many MDI parent and MDI children can you have in a standard EXE?
2.3. How would you reference the current form and control an application generically?
2.4. Under which circumstances does a VB application ignore a Timer event?
2.5. What does the NewIndex property return?
2.6. What is the purpose of the ClipControls property on a form or container?
2.7. What is the purpose of the AutoRedraw property on a form or container?
2.8. How do you determine the number of controls on a form at runtime?
2.9. What is the hWnd property of a form or control?
2.10. What does the WindowState property return?
2.11. What happens to the contents of form level variables, ie those declared in the Declaration section of a form, when a form has been closed or unloaded using the Unload method?
2.12. What do you understand by the term "light-weight control" and can you give an example of one?
2.13. In MS Access a list box control can be used to display a list of customer names with the customer number hidden from the user. How would you mimic this feature with a standard VB list box?
2.14. What is the difference between the Query_Unload and Unload Event on a form?

2 comments:

Anonymous said...

Good artical

Dot Net Course Chennai said...

Awesome Post on .Net technology and Visual basic