GAD Oral Questions

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

What is VB.NET?

Visual Basic or VB.NET can be termed as an Object-Oriented programming language developed on Microsoft's
.NET Framework. Windows apps, Web apps, and Web services are all developed with VB.NET. Vb.Net is an
extension of the ancient Visual Basic language; however,VB.NET is not backwards compatible with VB6, and
all the code created in the previous version will not compile in VB.NET. Object-oriented ideas are fully
supported in VB.NET. Mono is an open-source alternative to the .NET framework. It can also run VB.NET
programs, not just on Windows but also on Linux and Mac OSX.

Features of VB.NET:

Some of the features of VB.NET are as follows:

• All the elements in VB.NET are objects, including primitive types, for instance, Integer, Short, Long, String,
Boolean, and so on) as well as user-defined types, assemblies, and events. The basic class Object is inherited by
all objects. Microsoft's .NET framework is responsible for the development of VB.NET. It has complete access
to each of the .Net Framework's libraries.
• Applications built with the .Net framework are cross-platform. The framework was created in a manner such
that it may be used with each of the programming or scripting languages listed below: Visual Basic, C++,
JavaScript, COBOL, and many more.
• Every one of these languages can be integrated with each other and access the framework. The .Net framework
is made up of a massive library of code that is being applied by client languages such as VB.Net. Object-
oriented techniques are used in these languages.

State some advantages of using VB.NET.

Some benefits of using VB.NET are as follows:

• VB.NET is a modern, general-purpose language.


• It is an object-oriented programming language.
• For a newbie, VB.NET is quite simple to learn.
• It is a structure-oriented programming language.
• VB.NET can be built on a number of different platforms.
• Conditional Compilation is supported by VB.NET.
• VB.NET has a Standard Library and Automatic Garbage Collection.
• It has Property and Event support.
• VB.NET aids in the management of delegates and events.
• Generics, Indexers, and Simple Multithreading are all supported.

What do you understand by metadata and namespace? Metadata: Metadata is defined as "data on the body of
the data" and can be found in library catalogues. In practice, metadata's usage comes in evaluating database
data, although it can also be utilised for other purposes.

• Namespace: In the.NET language, namespaces are nothing but an organised manner of representing classes,
structures, and interfaces. All .NET Languages have access to namespaces, which are hierarchically organised
indexes of a class library.

The System.Data namespace is used to access and manage data from the required data source. This
namespace deals only with the data from the specified database.
State some key differences between VB.NET and Visual Basic.

Comparison Parameter VB.NET VB


Platform Dependence VB.NET is platform-independent. VB is platform dependent.
Backwards Compatibility VB.NET is not backwards
VB is backwards compatible.
compatible.
Compiled or Interpreted VB.NET is a compiled language. VB is an interpreted language.
Exception Handling In VB.NET, we can perform
In VB, we can perform Exception
Exception Handling using the
Handling using the ‘On Error…..Goto’
‘Try….Catch’
statements.
statements.
Development of Multithreaded It is possible to develop multi-
It is not possible to develop multi-
Applications threaded applications using
threaded applications using VB.
VB.NET.

• Private - Private assemblies are those that are only utilised by one application and are kept in the application's
directory.
• Public - Public assemblies, also known as shared assemblies, are saved in the Global Assembly Cache
(GAC), which can be accessed by several programs.

7. What is the base class of VB.NET?

The System.object class is the base class of VB.NET.

9. Explain the usage of the NEW keyword with an example.

The constructor is used along with the NEW keyword. Its usage can be as that of a modifier or an operator.
The NEW keyword hides inherited members from base class members when used as a modifier. It produces
objects for invoking constructors when used as an operator. The NEW keyword creates a new object instance,
provides a constructor constraint on a type argument, or designates another function as a class constructor. A
New clause can be used in either a declaration or an assignment statement. When you run the statement, it
calls the proper constructor of the specified class, passing any parameters you have given it.

12. What are class access modifiers?

Keywords that are used to specify the declared accessibility of a member or a type is known as class access
modifiers. The various types of class access modifiers are as follows:

• Public
• Private
• Protected
• Protected Internal
• Internal

Differentiate between the following: Dataset Vs DataReader?

Dataset DataReader
Datasets are capable of holding multiple tables coming from a DataReader is having read-only access to the
single data source. A dataset can even store relationships data. Also, DataReader has been set to be
Dataset DataReader
between those tables. forward only.
Dataset is disconnected architecture. DataReader is connected architecture.
DataReader is not capable of persisting
Dataset is capable of persisting content.
contents because of the fact that it is read-only.
1. What is vb.net?

vb.net is a windows based programming language.it supports oops concept.

2. what is the base class of .net?

system.object

3. what is difference between namespace and assembly?

namespace is a collection of different classes. whereas an assembly is the basic building blocks of the .net framework.

4. What’s the difference between private and shared assembly?

private assembly is used inside an application only and does not have to be identified by a strong name shared assembly
can be used by multiple applications and has to have a strong name

5. What namespace does the web page belong in the .net framework class hierarchy?

System.web.ui.page

6. What is an assembly?

Assembly are the basic building blocks of the .net framework. They are the logical grouping of the functionality in a
physical file.

7. What is a constructor?

A special method always called whenever an instance of the class is created.

8. What is a Constructor in VB.NET?

A Constructor is a special member function or a method whose task is to initialize objects of its class.

9. What is CLS?

CLS represents Common Language Specification.

10. What is the use of Option explicit?

Variable must be compulsorily declared when the Option Explicit is termed as ON. If it is OFF, variables can be used
without declaration.

11. Enlist Controls in Windows Forms to Select Data from a list of VB.NET.

The Windows Forms Controls to Select Data from a List are as follows:

1. Checked List Box


2. Combo Box

3. Domain Up Down

4. List Box

5. List View

12. Explain .NET compilation process.

1. Compilation of source code to managed code / Intermediate Language (IL).

2. Compilation of IL to platform-specific code by the CLR.

3. MSIL defines a set of portable instructions which are independent of any specific CPU.

13. Explain Assembly Types.

1. Shared Assemblies

2. Private Assemblies

14. Enlist Languages that .NET Framework Supports.

1. VB.NET

2. Managed C++ Codes

3. C#

4. VBScript

5. Jscript

15. What is the use of jit ?

JIT (just – in – time) is a compiler which converts msil code to native code (ie. cpu-specific code that runs on the same

computer architecture).

16. What is authentication and authorization?

Authentication is the process of identifying users. authentication is identifying/validating the user against the credentials
(username and password).

17. What are the types of authentication?

There are 3 types of authentication.

1. windows authentication

2. forms authentication

3. passport authentication

18. What are the namespace available in .net?


Namespace is a logical grouping of class.

system

system.data

system.io

system.drawing

system.windows.forms

system.threading

19. What are the two main parts of the .net framework?

the common language runtime (clr).

the .net framework class library.

20. What is a class?

Class is concrete representation of an entity. it represents a group of objects, which hold similar attributes and behavior.
It provides abstraction and encapsulations.

21. What is an object?

Object represents/resembles a physical/real entity. an object is simply something you can give a name.

22. What is abstraction?

Hiding the complexity. it is a process of defining communication interface for the functionality and

hiding rest of the things.

23. Differentiate between VB.Net & VB.

1. VB.NET is an Interpreted Language whereas VB.NET is a Compiled one.

2. Visual Basic is a Backword compatible whereas VB.NET is not backward compatible.

3. VB cannot be used to develop Multi-Threaded applications whereas VB.NET helps to develop Multi Threaded
applications.

24. What is CTS?

CTS represents Common Type System. It is a subset of Common Language Specification

25. How many languages are supported by .Net Framework?

NET Framework supports more than 60 programming languages.

You might also like