Interview Questions

AJAX Interview Questions Android Interview Questions Angular 2 Interview Questions AngularJs Interview Questions Apache Presto Interview Questions Apache Tapestry Interview Questions Arduino Interview Questions ASP.NET MVC Interview Questions Aurelia Interview Questions AWS Interview Questions Blockchain Interview Questions Bootstrap Interview Questions C Interview Questions C Programming Coding Interview Questions C# Interview Questions C++ Interview Questions Cakephp Interview Questions Cassandra Interview Questions CherryPy Interview Questions Clojure Interview Questions Cobol Interview Questions CodeIgniter interview Questions CoffeeScript Interview Questions Cordova Interview Questions CouchDB interview questions CSS Buttons Interview Questions CSS Interview Questions D Programming Language Interview Questions Dart Programming Language Interview Questions Data structure & Algorithm Interview Questions DB2 Interview Questions DBMS Interview Questions Django Interview Questions Docker Interview Questions DOJO Interview Questions Drupal Interview Questions Electron Interview Questions Elixir Interview Questions Erlang Interview Questions ES6 Interview Questions and Answers Euphoria Interview Questions ExpressJS Interview Questions Ext Js Interview Questions F# Interview Questions Firebase Interview Questions Flask Interview Questions Flex Interview Questions Fortran Interview Questions Foundation Interview Questions Framework7 Interview Questions FuelPHP Framework Interview Questions Go Programming Language Interview Questions Google Maps Interview Questions Groovy interview Questions GWT Interview Questions Hadoop Interview Questions Haskell Interview Questions Highcharts Interview Questions HTML Interview Questions HTTP Interview Questions Ionic Interview Questions iOS Interview Questions IoT Interview Questions Java BeanUtils Interview Questions Java Collections Interview Questions Java Interview Questions Java JDBC Interview Questions Java Multithreading Interview Questions Java OOPS Interview Questions Java Programming Coding Interview Questions Java Swing Interview Questions JavaFX Interview Questions JavaScript Interview Questions JCL (Job Control Language) Interview Questions Joomla Interview Questions jQuery Interview Questions js Interview Questions JSF Interview Questions JSP Interview Questions KnockoutJS Interview Questions Koa Interview Questions Laravel Interview Questions Less Interview Questions LISP Interview Questions Magento Interview Questions MariaDB Interview Questions Material Design Lite Interview Questions Materialize CSS Framework Interview Questions MathML Interview Questions MATLAB Interview Questions Meteor Interview Questions MongoDB interview Questions Moo Tools Interview Questions MySQL Interview Questions NodeJS Interview Questions OpenStack Interview Questions Oracle DBA Interview Questions Pascal Interview Questions Perl interview questions Phalcon Framework Interview Questions PhantomJS Interview Questions PhoneGap Interview Questions Php Interview Questions PL/SQL Interview Questions PostgreSQL Interview Questions PouchDB Interview Questions Prototype Interview Questions Pure CSS Interview Questions Python Interview Questions R programming Language Interview Questions React Native Interview Questions ReactJS Interview Questions RequireJs Interview Questions RESTful Web Services Interview Questions RPA Interview Questions Ruby Interview Questions Ruby on Rails Interview Questions SAS Interview Questions SASS Interview Questions Scala Interview Questions Sencha Touch Interview Questions SEO Interview Questions Servlet Interview Questions SQL Interview Questions SQL Server Interview Questions SQLite Interview Questions Struts Interview Questions SVG Interview Questions Swift Interview Questions Symfony PHP Framework Interview Questions T-SQL(Transact-SQL) Interview Questions TurboGears Framework Interview Questions TypeScript Interview Questions UiPath Interview Questions VB Script Interview Questions VBA Interview Questions WCF Interview Questions Web icon Interview Questions Web Service Interview Questions Web2py Framework Interview Questions WebGL Interview Questions Website Development Interview Questions WordPress Interview Questions Xamarin Interview Questions XHTML Interview Questions XML Interview Questions XSL Interview Questions Yii PHP Framework Interview Questions Zend Framework Interview Questions

VB.NET Interview Questions

1) What is VB.NET?

VB.NET stands for Visual Basic .NET. It is an object oriented programming language. It is implemented on .NET framework and launched by Microsoft in 2001.

2) Who is the developer of VB.NET?

Microsoft is the developer of VB.NET.

3) Why we should use VB.NET?

We should use VB.NET because of the following advantages.
  • It is object oriented programming.
  • It is easy to use.
  • Structured language.
  • It produces efficient programs.

4) What are the features of VB.NET?

VB.NET features are listed below.
  • Automatic garbage collection
  • Standard Library
  • Assembly Versioning
  • Properties and Events
  • Delegates and Events Management
  • Easy to use Generics
  • Indexers etc.

5) How can we declare variable in VB.NET?

We can declare a variable in VB.NET by using the given code.
Dim pi As Double  
pi =3.14159

6) How to write a simple program of VB.NET?

The following program is a simple program of VB.NET.
ImportsSystem  
ModuleModule1  
'This program will display Hello World   
Sub Main()  
Console.WriteLine("Hello World")  
Console.ReadKey()  
End Sub  
End Module

7) What is Metadata in VB.NET?

In VB.NET, Metadata is data about content of data. It is inside the catalog of libraries file.

8) What is the difference between VB and VB.NET?

The difference between VB and VB.NET are listed in the below table.
Visual Basic Visual Basic .NET
It is platform dependent. It is platform independent.
It is backward compatible. It is not backward compatible.
We can’t develop multi-threaded applications. We can develop multithreading application.
It is interpreted Language. It is compiler language.
Exception handled by using ‘ on Error… Goto ‘ Exception is handled by ‘ try…catch’

9) What is namespace?

A namespace is way to represent the class, structure and interfaces.

10) What are I/O classes in VB.NET?

In VB.NET, I/O (input-output) classes are listed in below table.
I/O Classes Description
BinaryReader It is used to read primitive data from a binary stream.
BinaryWriter It helps to writes primitive data in binary format.
BufferedStream It is a temporary storage for a stream of bytes.
StreamWriter It is used for writing characters to a stream.

11) What are JIT and its types?

JIT stands for Just In Time. It is a compiler for runtime execution environment. The following are the types of JIT.
  • Pre-JIT : It is used to compile at the time of deployment of an application.
  • Econo-JIT : It is used to compile while methods called at runtime.
  • Normal JIT : It is used to compile first time while methods called at runtime.

12) How can we use message box in VB.NET?

We can use message box in VB.NET by using MsgBox() method. Example:
PrivateSubButton1_Click(senderAsobject,eAsEventArgs)HandlesButton1.Click  
Msgbox("Hello, World")  
EndSub

13) What is CLR in VB.NET?

CLR stand for common language runtime. It is the heart of .NET framework. It is used to check the code during execution of the program. Some CLR features are:
  • Garbage Collection
  • Code Verification
  • Code Access Security
  • IL (Intermediate Language)

14) How many types of error are in VB.NET?

There are three types of error in VB.NET:
  • Syntax error
  • Run-time errors
  • Logic errors

15) What is Assembly and its type?

Assembly is the unit of deployment for the Microsoft .NET framework. It takes the form of an executable (.exe) file or DDL( dynamic-link library). It is a logic unit of code. There are two types of assemblies:
  • Private: A private assembly can use by only a single application.
  • Shared: A shared assembly can use by all the applications located on the server.



ADVERTISEMENT
ADVERTISEMENT