Escolar Documentos
Profissional Documentos
Cultura Documentos
1
TRƯỜNG ĐẠI HỌC CÔNG NGHỆ THÔNG TIN
2) Which keyword refers the parent of the 6) Which namespace Provides access to the
current object database classes:
A. Me
B. Super A. System.Database
C. Mybase B. System.DataAdapter
D. This C. System.Data
D. None of above
3) What will be the result of the following
code ? 7) which program will you use to assemble a
Dim X As String = "ABCDEF" program written in IL:
Dim Y As String = "BC" A. ilasm
Console.WriteLine("{0}, {1}, {2}", (X = Y), (X B. ildasm
< Y), (X > Y)) C. clr
D. None of above
A. False, False, True
B. False, False, False 8) How do you create method which can be
C. False, True, False accessed without the use of objects
D. True, False, False reference ?
A. Using FRIEND Keyword
4) At the end of the Main sub below, what is the B. Using STATIC Keyword
value of x.value? C. Using SHARED Keyword
Public Class Class1 D. NONE
Public N As String
Public V As Integer 9) Which of the following are the valid method of
Sub New(ByVal N As String, ByVal V command object
As Integer) A. ExecuteNonQuery & ExecuteScalar
Me.N = N B. ExecuteQuery & ExecuteScalar
Me.V = V C. ExecuteParameter
End Sub D. None
End Class
10) What are the sequence of events of a
Sub Main() webForm Life Cycle
Dim X As New Class1("FF", 3) A. Form_Initialize, Form_Load,
X.V = 2 Form_FormClosing, Form_FormClosed
Dim Y As Class1 = X
Dim Z As New Class1("AA", 5) B. Form_Load, Form_Initialize,
Y.V = 8 Form_FormClosing, Form_FormClosed
Z.V = 7
Console.WriteLine (X.V)
2
TRƯỜNG ĐẠI HỌC CÔNG NGHỆ THÔNG TIN
3
TRƯỜNG ĐẠI HỌC CÔNG NGHỆ THÔNG TIN
4
TRƯỜNG ĐẠI HỌC CÔNG NGHỆ THÔNG TIN