GAD Oral Questions
GAD Oral Questions
GAD Oral Questions
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:
• 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.
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.
• 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.
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.
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
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?
system.object
namespace is a collection of different classes. whereas an assembly is the basic building blocks of the .net framework.
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 Constructor is a special member function or a method whose task is to initialize objects of its class.
9. What is CLS?
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:
3. Domain Up Down
4. List Box
5. List View
3. MSIL defines a set of portable instructions which are independent of any specific CPU.
1. Shared Assemblies
2. Private Assemblies
1. VB.NET
3. C#
4. VBScript
5. Jscript
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).
Authentication is the process of identifying users. authentication is identifying/validating the user against the credentials
(username and password).
1. windows authentication
2. forms authentication
3. passport authentication
system
system.data
system.io
system.drawing
system.windows.forms
system.threading
19. What are the two main parts of the .net framework?
Class is concrete representation of an entity. it represents a group of objects, which hold similar attributes and behavior.
It provides abstraction and encapsulations.
Object represents/resembles a physical/real entity. an object is simply something you can give a name.
Hiding the complexity. it is a process of defining communication interface for the functionality and
3. VB cannot be used to develop Multi-Threaded applications whereas VB.NET helps to develop Multi Threaded
applications.