-
Which is the base class for All built in Controls ?
A) User ControlB) Custom ControlC) ControlD) Activex Control
-
-
To implement an interface it is not necessary to implement all the methods and properties defined by the interface.
A) TrueB) FalseExplanation: Any class, which implements an interface, must implement all the members of that interface
-
The DataAdapter uses which of the following object to retrieve the data from database
A) ConnectionB) CommandC) DataReaderExplanation: Dataadapter uses connection object to connect to the database where as it uses Command object to retrieve the data
-
Much of the underlying integration of .NET is accomplished with XML
A) TrueB) FalseExplanation: Web services, Configurations, Assembly’s, ADO.NET extensively uses XML
-
Which of the following statements are not true in Vb.NET
A) Objects are of value TypesB) Constructors do not return anythingC) VB.Net Supports Multilevel inheritance
-
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
-
VB.NET Interview Questions
Ans