News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

VB.Net Interview Questions

Started by china, May 03, 2008, 05:19 PM

Previous topic - Next topic

china

VB.Net Interview Questions

1.) How many views available in list view control and what are they?

    4 views...

    Large icon, small icon, Details and List.

2.) What is the use of 'Preserve' Keyword?

    The preserve keyword helps to prevent data in an array from being lost.

3.) How do you prevent the class from being inheritance?

    Simply include the keyword 'NotOverridable' in front of the class keyword.

4.) What is VB.Net

    * VB.net is object oriented
    * VB.Net can be used in Managed Code
    * It supports inheritance, implement

5.) What is the base class of .net?

    System.Object

6.) Differeces B/W VB.NET and C#(Coding)?

    c# is case sensitive while VB.Net is case insensitive
    c# is specifically targeted to programmers more efficient in C++, or Java its syntax is very much similar to java. While VB.Net is targeted for VB programmer and syntactically is very much similar to VB 6. with a much strong implementation of OOP modal
    c# supports pointers ( although not recommended ) VB.Net does not.


7.) What is the difference between datagrid and gridview?

    Datagrid is used in windows application and gridview is used in web and in datagrid we cannot write the code for datagrid properties where as for grid view w ecan write the code like template column item template etc this will not be done in datagrid

8.) What are the limitations of XML serialization?

    XML serialization has some limitations. It converts public property values and fields, but does not encode type information. Also it does not encode private properties and fields, which requires binary serialization. Any class to be serialized to XML must have a public, parameterless constructor. One advantage of XML serialization is that the serialized data, being XML, rarely has any problems passing over networks and through security measures, such as firewalls, that might be unhappy with a binary data stream. For this reason, XML serialization is used by .Net Web services. Another advantage is that XML serialization is not platform-specific. In other words, you do not have to have .Net or Windows on both ends of the process.

9.) What is the difference between string class and stringbuilder class?

    string class in immutable. Immutable is nothing but the value assigned to string cannot be changed. Stringbuilder class is mutable. mutable is nothing but the value assigned to stringbuilder can be changed.

10.) What are the Types of globalization we use?

    when you want to use your application should run in differnet language like you have developed the application for english and should also run in dutch, french, japanese etc., then through globalization you can set lacal and culture for the each language in seperate folder. So that when the application will run for a specific region it will be show the content in same language.

11.) Is .Net Platform independent ?

    As you all know that in .net there are different compilers like for c#-csc,vb-vbc etc after your code is complied it will convert to MSIL code which is independent this MSIL code will goes to CLR & this CLR is platform dependent i.e for unix platform you should have unix type of CLR ,for windows like the same so we can say that .net code is platform independent

sajiv


What do you mean by Garbage Collection in VB.net 
Garbage collection is the mechanism to release memory from unused objects and components of the application.

what is the difference between string and stringbuilder? 
system.string is immutable,system.string builder was designed with the purpose of having a mutable string where a variety of operations can be performed.

Differences between VB.Net and C#, related to OOPS concepts
VB.NET is a windows application
Where as C# is a console
C# is much terser than VB.NET.
syntactical differences between VB.NET and C#.

What is different between Web.Config and Machine.Config and Where it will be ?
The settings made in the web.config file are applied to that particular web application only whereas the settings of machine.config file are applied to the whole asp.net application.

How can we remove Handlers at Run time ?
RemoveHandler myobj.myEvent, AddressOf MyEventHandler
Private Sub ButtonAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonAdd.Click
AddHandler Button2.Click, AddressOf MyOtherClick
End Sub
Private Sub ButtonRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonRemove.Click
RemoveHandler Button2.Click, AddressOf MyClick
End Sub

:acumen

sajiv


Explian about vb.net ?
vb.net is the technology for developing windows and web based appliction which run on .net framwork. it is very easy to handle and understand. It is the object orientend language 

what is the difference between master forms and transaction forms ?
In Master Forms Particular entry Entered Only Once Time In Transaction Forms entry can be many times. 

What are Jagged Arrarys ?
A jagged array is really an array of arrays. To create a jagged array, you declare the array of arrays with multiple sets of parentheses or brackets and indicate the size of the jagged array in the first set of brackets (parentheses).


:acumen