-
Can you have optional parameters in VB.NET code?
A) YesB) No
-
What is serialization of an Object?
A) Writing the Object to a StreamB) Reading the Object from a StreamC) Adding the Object to a collectionD) None of the above
-
Shared method can be invoked directly from the class itself
A) TrueB) False
-
When you a create a console application in VB.NET which of the following files are added by default to the project
A) Assembly info file and a Class fileB) Assembly info file and a Module fileC) Class file and a Module file
-
-
Web services can handle any type of data that can be serialized
A) TrueB) False
-
The tool provided with .Net framework to register assemblies for use by COM is
A) RegasmB) Regsvr32C) ILDASM
-
Which of the method is used to display the form as modal
A) Activate ( )B) Show( )C) Showdialog( )
-
Which is the base class for TypedDataset
A) DataReaderB) DatasetC) DataAdapter
-
How do we refer a namespace to an VB.Net project
A) With the help of Using KeywordB) With the help of Imports keywordC) With the help of Inherits keyword
-
It is not possible to derive a class in VB.Net from a class written in C#
A) TrueB) FalseExplanation: It is possible to derive a class in vb.net from a class written in C# through CTS
-
The underlying mechanism used by the .NET environment for call back methods
A) PointersB) DelegatesC) None of the above
-
Which keyword is used in the method declaration to handle an Event
A) EventB) HandlesC) Raise
-
How do you create a Read only Property in VB.NET
A) Using Only Get..EndGet with in property definitionB) Using Only Set..EndSet with in property definitionC) Using both Get & Set
-
How do we implement Late Binding in VB.NET
A) Through the use of “Object” data typeB) Through InheritanceC) Through abstractionExplanation: As object data type can store virtually any value type can be determined during run time.
-
The implementation code in a VB.Net method is enclosed between
A) { }B) ( )C) sub .. EndSub
-
Reference Types are located on
A) StackB) HeapC) Managed Heap
-
How do you create a subclass
A) With the help of Inherits keywordB) With the help of Using KeywordC) With the help of Implements Keyword
-
You can create COM Dll’s using VB.NET
A) YesB) NoExplanation: The DLLs you created in VB.NET are assemblies that contain managed code
-
All output from Trace& Debug classes is directed to which collection
A) TraceB) DebugC) ListenersD) None
VB.NET Interview Questions
Ans