| 21. |
Function name must follow the rule to declare an identifier
ફંક્શન નું નામ આપતી વખતે તેમને આયડેન્ટીફાયર ના નિયમ ફોલો કરવા પડે કે નહિ ?
|
||||
|
Answer:
Option (a) |
| 22. |
A function can return how many values ?
ફંક્શન કેટલી વેલ્યુ રીટર્ન કરી શકે છે ?
|
||||||||
|
Answer:
Option (d) |
| 23. |
When we are calling any function/procedure at that time, which of the following thing can be ignored ?
જયારે ફંક્શન ને કોલ કરવામાં આવે છે ત્યારે નીચે ના માંથી કયું સ્ટેટમેન્ટ ઇગ્નોર કરી શકાય છે ?
|
||||||||
|
Answer:
Option (b) |
| 24. |
From how many places in the code we can call the procedure ?
કોડ માં પ્રોસીઝર ને કેટવી વાર કઈ કઈ જગ્યા એ થી કોલ કરી શકાય છે ?
|
||||||||
|
Answer:
Option (d) |
| 25. |
If we declare a parameter with ByVal keyword then which of the following is correct for it ?
જો કોઈ પેરામીટર ને ByVal કીવર્ડ તરીકે ડીકલેર કરવામાં આવે તો નીચે ના માંથી કયું સ્ટેટમેન્ટ સાચું છે ?
|
||||||||
|
Answer:
Option (b) |
| 26. |
While declaring a procedure Sub is mandatory?
પ્રોસીઝર ડીકલેર કરી ત્યારે Sub લખવું જરૂરી છે ?
|
||||
|
Answer:
Option (a) |
| 27. |
Guess the output of the following code;
Module Program
Function Change(ByVal a As Integer) As Integer
a += 89
a *= 2
a /= 2
Return a
End Function
Sub Main(args As String())
Dim a As Integer = 98
Dim ans = Change(98)
Console.WriteLine(ans)
End Sub
End Module
નીચેના પ્રોગ્રામનું આઉટપુટ ડિસ્પ્લે કરો
Module Program
Function Change(ByVal a As Integer) As Integer
a += 89
a *= 2
a /= 2
Return a
End Function
Sub Main(args As String())
Dim a As Integer = 98
Dim ans = Change(98)
Console.WriteLine(ans)
End Sub
End Module
|
||||||||
|
Answer:
Option (c) |
| 28. |
Guess the output of the following code;
Module Program
Sub Change(ByRef a As Integer)
a += 89
a *= 2
a /= 2
End Sub
Sub Main(args As String())
Dim a As Integer = 98
Change(a)
Console.WriteLine(a)
End Sub
End Module
નીચેના પ્રોગ્રામનું આઉટપુટ ડિસ્પ્લે કરો
Module Program
Sub Change(ByRef a As Integer)
a += 89
a *= 2
a /= 2
End Sub
Sub Main(args As String())
Dim a As Integer = 98
Change(a)
Console.WriteLine(a)
End Sub
End Module
|
||||||||
|
Answer:
Option (c) |
| 29. |
What is an exception?
exception શું છે ?
|
||||||||
|
Answer:
Option (b) |
| 30. |
Why do we need to handle exceptions?
exception હેન્ડલ કરવાની શું જરૂર પડે છે ?
|
||||||||
|
Answer:
Option (d) |