-
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.
-
Only few of the .NET framework’s classes are available to VB.NET
A) TrueB) FalseExplanation: All of the .NET framework classes are available to VB.Net
-
Where do you define attributes in VB.Net
A) Along with Method signatureB) On top of the method signatureC) With in the Method body
-
In VB.NET we have 2 different File extension for class Module files and for Forms
A) TrueB) FalseExplanation: All the files will have the same extensions as .VB
-
What is meant by field-level validation and form level validation.
Field- level keyboard events allow you to immediately validate user input : KeyDown, KeyPress, KeyUp.Form-level validation is the process of validating all fields on a form at once. it is usually called when the user is ready to proceed to another step.
-
Every class we create in VB.NET can act as a base class
A) TrueB) FalseExplanation: Classes created with NotInheritable keyword can not be a base class. It is not possible to derive the classes from notinheritable classes
-
How do you call non shared methods of a class
A) Directly invoking the method nameB) Invoking the method through the instance of that classC) None of the aboveExplanation: Only shared methods can be directly invoked, for non shared method class instance is very much required
-
How do you terminate an object in VB.NET
A) By setting the object to NothingB) By setting the object to NullC) By setting the object to CloseExplanation: Nothing keyword destroys the object
-
Every class should have the one of the following method so that an object can be constructed
A) Sub New( )B) Sub Main ( )C) Sub Create( )Explanation: Sub New( ) is the constructor in VB.Net with which object are instantiated
-
Every Class definition in VB.NET must end with
A) End SubB) End ClassC) EndExplanation: End class is the keyword to end the class definition
-
Which of the following can be used to run other application or batch file from VB.Net
A) System.Diagnostics.ProcessB) System.App.RunC) System.Diagnostics.RunD) System.Fileapp.Execute
-
Which method of VB.NET implements the same functionality of Destructor of C#
A) DisposeB) CloseC) FinalizeD) Nothing
-
Web.Config file is of the type
A) .vbB) XMLC) ResourceD) Aspx
-
Casting from reference type to value or vice versa is called as
A) Casting of variablesB) Boxing/UnboxingC) Structure & Class conversionD) Stack & Heap Conversion
VB.NET Interview Questions
Ans