-
To determine the folder in which your application is placed you can use:
A) My.Computer.CurrentFolderB) My.Application.CurrentFolderC) My.System.CurrentFolder
-
How do you determine if a check box is selected or not in Vb.Net
A) Using Value PropertyB) Using CheckState PropertyC) Using Option PropertyExplanation: ChsekState is gives the whether checkbox is selected or not.Value was there in VB6
-
-
-
By default Main Method in VB.NET take command line arguments
A) TrueB) False
-
What is the significance of Option Explicit statement when it is set to On
A) Specifies that any variable name is declared (with type) before useB) Specifies whether strings should be compared as binaryC) Specifies that variables should be initialized before use
-
What are the sequence of events of a webForm Life Cycle
A) Form_Initialize, Form_Load, Form_QueryUnload, Form_UnloadB) Form_Load, Form_Initialize, Form_QueryUnload, Form_UnloadC) Form_Initialize, Form_Load, Form_Unload, Form_QueryUnloadD) Form_Load, Form_Initialize, Form_Unload, Form_QueryUnload
-
The constructors in VB.Net is similar to which event in previous versions of VB
A) Class_InitializeB) Class_LoadC) Class_Terminate
-
Which too l is used to add & remove assemblies from GAC
A) RegasmB) GacUtilC) Regsvr32Explanation: Gacutil /I adds an assembly to GAC & GacUtil /U removes an assembly from Gac
-
What is the output of the messagebox function in following codeClass Test Dim A, B, C as Byte, Sub Main() A=200 B=100 C=A+B Console.WriteLine ( C )End subEnd Class
A) Prints 300 as the outputB) Prints “C”C) Compiler ErrorD) RunTime ErrorExplanation: Over flow exception as the sum of 2 bytes is always long
-
How do you create a Custom Control in Vb.Net
A) Inherit from another controlB) Build a composite controlC) Write a control from scratchD) All of the above
-
An Assembly must have a Strong name to be placed in GAC
A) TrueB) FalseExplanation: Assembly must have a Unique Strong name to be considerd as a shared assembly
-
-
Which of the following type has been introduced in VB.Net compare with VB
A) SingleB) DoubleC) Decimal
-
How do you comment source coed in VB.NET
A) REMB) /* */C) //D) ‘Explanation: Both REM & apostrophe is used to comment code in VB.NET
-
To ping network addresses, you can use:
A) My.Computer.Network.Ping(“hostname”)B) My.Computer..Ping(“hostname”)C) My.Network.Ping(“hostname”)
-
-
VB.Net has only 2 major variable types
A) TrueB) FalseExplanation: The only 2 major types are Value types & Reference types
-
Which type of procedure does a delegate point to
A) Static procedureB) Instance ProcedureC) Both
-
Describe two ways to set the tab order of controls on your form using vb.net / visual C#?
1. in the designer, select each control capable of receiving the focus.2. in the properties window, set the tabindex property to an appropriate value. the focus passes from control to control in the order of lowest to highest value.
VB.NET Interview Questions
Ans