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?

Thursday, September 09, 2004

Microsoft Windows Mobile Application Development Contest


Are you up for the challenge? Microsoft invites you to put yourgenius to the test to create the next killer Application for the mostmobile device ever, the Windows Mobile platform. Think out of the boxand create a mobile Application that will win you fabulous prizes!


Sunday, September 05, 2004

Microsoft Student Project program

Hi Guys,

Luck is one agin on your side, so for those among you who are interested in doing their final year project with Microsoft. Microsoft has launched the Microsoft Student Project program for all the students interested in doing their final year projects (engineering/MCA/MSc Software) with Microsoft. The last date for signing up is September 15th (and not August 30th as mentioned on the site and other places).

Just login to

1. Form a team. Everyone needs to be from the same college. Maximum of 5 members and a minimum of 1 member .
2. Pick one of the existing topics on the site (or) submit your own topic. There are absolutely no restrictions on project ideas. For example, if you want to do a project on robotics or embedded systems , you could use Windows CE and play with the source code.
3. Sign up!

Here are some of the benefits you get

1. Certificate from Microsoft when you finish your project
2. You'll automatically be entered into a student project exhibition at the end of the year. Here's you'll compete with students with all over the country. There are several prizes on store with the prize money running into 6 digits
3. The best projects will automatically be entered into the Imagine Cup 2005

Here are some of the goodies you'll get

1. CD of Visual Studio 2005 Express Edition
2. Microsoft Press book
3. Academic resource kitDo

remember - the last date for signing up is September 15th. Do sign up before then.--

Wednesday, September 01, 2004

.NET namespaces

Namespaces are treated as containers for all classes. Namespaces are

classified into several categories, based on the functionality of

their classes. For example, if you need to work with databases, you

have to call the System.Data namespace. Similarly, if you work with

files, you have to call the System.IO namespace.

Namespaces in C# are similar to packages in Java, where we use a

statement such as java.sql.*. Moreover, all C# programs should call

the System namespace. This is the root of all other namespaces in the

.NET Framework.

You have to apply the namespaces by following certain conventions as

laid out by the .NET Framework. All namespaces should be called in

your programs by applying the using keyword.

A list of important .NET namespaces is shown in the following table: