31. |
An exception may be generated due to ___________
exception જનરેટ થવાના કારણો _________
|
||||||||
Answer:
Option (a) |
32. |
There can be a try block without catch block but vice versa is not possible
catch બ્લોક વગર try બ્લોક હોઈ શકે છે પરંતુ તેનાથી ઉલટું શક્ય છે કે નહિ ?
|
||||
Answer:
Option (a) |
33. |
How many catch block can a single try block can have ?
એક try બ્લોક માં કેટલા catch બ્લોક હોઈ શકે છે ?
|
||||||||
Answer:
Option (d) |
34. |
Finally block is executed ________
Finally બ્લોક એક્ષીક્યુટ ક્યારે થશે ?
|
||||||||
Answer:
Option (d) |
35. |
Guess the output of the following code;
Module Program Sub Main(args As String()) Dim a As Integer = 1 Dim b As Integer = 10 / a Try If a = 1 Then a = 10 / (a - a) End If Catch e As OverflowException Console.Write("B") Finally Console.Write("A") End Try Console.ReadLine() End Sub End Module
નીચેના પ્રોગ્રામ નું આઉટપુટ જણાવો;
Module Program Sub Main(args As String()) Dim a As Integer = 1 Dim b As Integer = 10 / a Try If a = 1 Then a = 10 / (a - a) End If Catch e As OverflowException Console.Write("B") Finally Console.Write("A") End Try Console.ReadLine() End Sub End Module
|
||||||||
Answer:
Option (c) |
36. |
________________ statement is used to handle unstructured exception handling
______ સ્ટેટમેન્ટ નો ઉપયોગ unstructured exception હેન્ડલ કરવા માટે થાય છે
|
||||||||
Answer:
Option (a) |
37. |
Guess the output of the following code;
Module Program Sub Main(args As String()) On Error GoTo Handler Dim a As Integer = 0 Dim b As Integer = 156 Dim ans As Integer ans = b / a Console.WriteLine("Press Enter to continue...") Console.ReadLine() Handler: Console.WriteLine("Exception Generated...") End Sub End Module
નીચેના પ્રોગ્રામ નું આઉટપુટ જણાવો;
Module Program Sub Main(args As String()) On Error GoTo Handler Dim a As Integer = 0 Dim b As Integer = 156 Dim ans As Integer ans = b / a Console.WriteLine("Press Enter to continue...") Console.ReadLine() Handler: Console.WriteLine("Exception Generated...") End Sub End Module
|
||||||||
Answer:
Option (b) |
38. |
Guess the output of the following code;
Module Program Sub Main(args As String()) On Error GoTo Handler Dim a As Integer = 0 Dim b As Integer = 156 Dim ans As Integer ans = b / a Console.WriteLine("Press Enter to continue...") Exit Sub Handler: Console.WriteLine("Exception Generated...") Resume Next End Sub End Module
નીચેના પ્રોગ્રામ નું આઉટપુટ જણાવો;
Module Program Sub Main(args As String()) On Error GoTo Handler Dim a As Integer = 0 Dim b As Integer = 156 Dim ans As Integer ans = b / a Console.WriteLine("Press Enter to continue...") Exit Sub Handler: Console.WriteLine("Exception Generated...") Resume Next End Sub End Module
|
||||||||
Answer:
Option (d) |
39. |
MDI Stands for _____
MDI મતલબ _____
|
||||||||
Answer:
Option (c) |
40. |
In the following code 'Me' indicates to which control ?
Dim ChildForm As Form1 = New Form1() ChildForm.MdiParent = Me ChildForm.WindowState = FormWindowState.Normal ChildForm.Show()
નીચે દર્શાવેલ પ્રોગામ માં 'Me' ક્યાં કંટ્રોલ ને દર્શાવે છે ?
Dim ChildForm As Form1 = New Form1() ChildForm.MdiParent = Me ChildForm.WindowState = FormWindowState.Normal ChildForm.Show()
|
||||||||
Answer:
Option (b) |