Que 1 State True or False: [2

]
1. Literal values are a part of visual basic statements. True
2. The variable declared as Float datatype can be implicitly converted into Double. False
3. The variable of Long datatype can occupy 4 bytes size of memory. False
4.
CType() function throw exception, if conversion not possible between source and target variable.
False


Que 2 Answer in short: [5]
1. What is the use of ReDim keyword? [1]






2. Differentiate Read() and ReadLine() functions of Console module. [2]
Read() ReadLine()







3. Write keywords use for passing parameters in sub procedure. [1]







4. What is the drawback of while statement? [1]







Que 3 Fill in the blanks: [5]
1. Dim stands for Dimension.
2. Name spaces can be included in visual basic console application using the Import keyword.
3. System is the Root namespace.
4. An array of N size can be store N+1 number of elements.
5. Visual basic program execution can be started form Sub Main() procedure.
Department of Computer and Information Technology - UTU
Gopal Vidyanagar, Bardoli-Mahuva Road, Tarsadi. Dist: Surat.
Integrated M.Sc.(IT) Semester 4
060010401 – GUI Programming
Date: 06-02-2013
Time: 30 minutes
Quiz-1 (Div A)
Max. Marks: 20
Enrollment No: __________________




Que 3 State and justify whether it gives output (if then write output) or give error. [8]
1.)
Module Module1
Sub Main()
Dim a, b, n As Integer
a = 29, b=5
n = i / j
Console.WriteLine(n)
Console.ReadKey()
End Sub
End Module
2.)
Module Module1
Sub Main()
Dim s1 = “nayan”, S2 As String
S2=”yatin”
S3=”Ashivan”
Console.Write(s1)
Console.Write(s2 + S3)
End Sub
End Module
Answer 1:






Answer 2:
3.)
Module Module1
Sub Main()
Dim Array(2), A As Integer
For A = 0 To 2 Step 1
Array(A) += A
'Console.WriteLine(A)
Next
For Each A In Array
Console.WriteLine(A)
Next
Console.ReadKey()
End Sub
End Module
4.)
Module Module1
Function Addition() As Integer
Return (278 + 89)
End Function
Sub Main()
Console.WriteLine(“Addition of numbers:” &
Addition())
End Sub
Console.ReadKey()
End Module
Answer 3:






Answer 4: