As I have promised here comes the second lot of VB.NET Interview Questions
Q7 : What is .NET?
Ans :- .NET is the development platform which provides advance features facilities for Windows and Web Application development. Dot NET acts as a middle ware between operating system and the .NET Application . The main advantage of dot net is that it's component can talk to each other regard less of the fact in which language they are created.
The two main components are
1.CLR(Common Language Runtime)
2.Frame Work base Libraries
CLR Performs task of Converting IL Code into Native Code .
The other component like .NET framework Case Class acts as a service to be provided to the .NET application.
Q8 : What is the Diff b/w String and StringBuilder?
Ans :- String is mutable means if you want to concatenate string into existing string, the framework copies both existing data into memory ,deletes the existing string and reads the data in new string . This operation hence is very resource consuming for lengthy string concatenation.
String builde is immutable means while adding one more char at the end of string it directly upend the string without removing original string .
(NOTE :- For it's clarification I have posted one article on this blog by the name String Builder in which how it works and how StringBuilder is better then String is explained with the help of an example.)
Q9 : What is the diff. b/w web.config file and machine.Config file ?
Ans : The settings made in web.config file are applied to the particular web application only where as the settings of the machine.cofig file are applied to the whole asp.net application.
Q10 : What is Jagged array?

Fig 1
A jagged array is the array which can have fixed rows but will have diff no of col per row as shown in the Fig 1.
A two dimensional jagged array can be thought of as a table where each row can be thought of as a table where families are the rows and family members are Columns
Syntax(To define) :- Dim Myarray(9)() As Integer
there are two ways of defining jagged array.
Method 1- Dim Myarray1() As Integer = {1,2,3}
Dim Myarray1() As Integer = {4,5}
Dim all_values ()() As Integer = {Myarray1,Myarray2}
Method 2- Dim all_Values()() As Integer = {New Integer () {1,2,3} ,New Integer{4,5}}
No comments:
Post a Comment