-
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
-
What is the out put NotInheritable Class A Public sub printA End sub Public sub PrintB End subEnd ClassClass B Inherits A End Class
A) Both PrintA & PrintB are available at Class BB) Only PrintA is available at Class BC) Class B Can not inherit classA as it is not inheritable
-
Append,Binary,Input are all the enumerated members of
A) OpenMode EnumerationB) OpenAccess EnumerationC) OpenShare Enumeration
-
VbOk,VbCancel,VbAbort are all the enumerated members of
A) MsgboxStyle EnumerationB) MsgboxResult EnumerationC) CompareMethod Enumeration
-
Assembly manifest contains
A) Assembly’s IdentityB) Assembly’s Reference ListC) Both A & B
-
What is Remoting?
A) Concept which allows code in one AppDomain call on objects of other App DomainB) A Concept which transmits the data over networkC) A Concept which deploys the code in remote server.
-
OPTION exists in VB.NET
A) TrueB) False
-
Select the keyword used to compare the object variable?
A) AndB) ORC) ISD) OF
VB.NET Interview Questions
Ans