What do you mean by structured error handling? Create VB .Net console application to accept 10 numbers from user and find its average. Also handle IndexOutOfRangeException.

Module Module1
    Sub Main()
        Dim counter, sum As Integer
        Dim average As Double
        Dim numberArray(10) As Integer
        Console.writeLine("Enter the Numbers : ")
        sum = 0
        For counter = 0 To 9
            Console.write("Number " & (counter + 1) & " : ")
            numberArray(counter) = Console.ReadLine()
            sum += numberArray(counter)
        Next counter
        average = sum / 10
        Console.writeLine("Average of 10 Numbers is : " & average)
        Console.writeLine("Handle IndexOutOfRangeException")
        Try
            sum = numberArray(15)
            Console.WriteLine("No Exception occured!!!")
        Catch ioore As IndexOutOfRangeException
            Console.WriteLine("Exception : Index is Out Of Range")
        Finally
            Console.WriteLine("Finally Block Executed!!")
            Console.ReadLine()
        End Try
    End Sub
End Module

Read more...

GTU Paper solution free download

Read more...

Advance Dot Net Technology - Nov - 2011 GTU Paper solution

Question 2

(a) What do you mean by structured error handling? Create VB .Net console application to accept 10 numbers from user and find its average. Also handle IndexOutOfRangeException.

(b) What is namespace? Explain it with its advantages. Create VB.Net console application to implement user defined namespace. Also give code to import it in another application.

(b) What is inheritance? Create VB .Net console application to define person class and derive student and employee from it to demonstrate inheritance.  

Question 3

(a) What is Property? Explain read only, write only and read write property with suitableexample.

(b) What is delegate? What is its real time usage? Give C# code to demonstrate delegate.

Question 4

(a) Differentiate ASP and ASP.Net. Explain Hyperlink and Image controls with example.

(b) What is Theme? Differentiate css and skin file. Give ASP.Net code to define theme and also give code to apply it in webpage. 

(a) What is Master Page? Give ASP.Net code to demonstrate the usage of nested master page. 

(b) What do you mean by data bound controls? Explain DataList control with code to display list of students with enrolmentno and branch.

Question 5

(a) What is state management? Explain Application state and Viewstate with suitable example.

(a) What is webservice? Create a web service to find area of circle. Also give code to consume it.

(b) What is AJAX? Give ASP.Net code to use UpdatePanel control.  

Read more...
Related Posts Plugin for WordPress, Blogger...

Engineering material

GTU IDP/ UDP PROJECT

GTU IDP/ UDP PROJECT

Patel free software download

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP