Gad Viva Questions
Gad Viva Questions
1. What is VB.Net.
GUI (Graphical User Interface) application development using VB.NET
involves creating applications with visual elements such as windows, buttons,
textboxes, labels, and other controls to interact with users. VB.NET is a
programming language that is part of the .NET framework, primarily used for
building Windows applications.
2. What are the Modules in VB.Net.
In VB.NET, a module is a container for code that can include variables,
functions, and subroutines. Modules provide a way to organize and structure
your code, making it more manageable and easier to maintain.
3. What are garbage collection in VB.Net.
Garbage collection in VB.NET, as well as in other .NET languages, is a
mechanism for automatic memory management. It works by reclaiming
memory that is no longer being used by objects in your application, allowing
that memory to be reused for other purposes.
4. What are the features of VB.Net.
VB.NET (Visual Basic .NET) is a versatile programming language that
offers a wide range of features for building various types of applications. Here
are some of the key features of VB.NET:
1. Object-Oriented Programming (OOP)
2. Rapid Application Development (RAD)
3. Exception Handling
5. What are the advantages of .Net.
.NET is a versatile and powerful development platform with numerous
advantages that make it a popular choice for building a wide range of
applications. Here are some of the key advantages of .NET:
1. Language Independence: C#, Visual Basic .NET (VB.NET), F#, and more.
2. Security: .NET includes built-in security features such as code access security,
role-based security, and cryptographic services, which help protect applications
from unauthorized access, data breaches, and other security threats.
3. Scalability: .NET applications are inherently scalable, thanks to features like
multi-threading, asynchronous programming, and support for distributed
computing.
6. Explain VB.Net IDE.
The VB.NET IDE (Integrated Development Environment) refers to the
software environment provided by Microsoft for developing applications using
the Visual Basic .NET programming language. The primary IDE for VB.NET
development is Microsoft Visual Studio.
7. What are the events in VB.Net?
In VB.NET, events are actions or occurrences that happen during the
execution of a program, typically triggered by user interactions or system
events. Events are used to handle user input, respond to changes in the
application state, and perform various tasks.
Form Events
Timer Events
Keyboard and Mouse Events
8. What are the datatype in VB.Net ?
A datatype, in the context of programming, defines the type of data that
a variable can hold.
Primitive Data Types:
Boolean: Represents a Boolean value (True or False).
Byte: Represents an 8-bit unsigned integer value (0 to 255).
Char: Represents a single Unicode character.
Date: Represents a date and time value.
Decimal: Represents a decimal value with up to 28 significant digits.
Double: Represents a double-precision floating-point value.
Non-Primitive Data Types:
String: Represents a sequence of characters.
Object: Represents an instance of an object.
Array: Represents a collection of elements of the same type stored
sequentially in memory.
Comparison Operators:
Equal to (=)
Not equal to (<>)
Greater than (>)
Logical Operators:
Logical AND (And)
Logical OR (Or)
Logical NOT (Not)
1. Label: Used to display text or images on a form. Labels are typically used
for static text that does not change during runtime.
2. TextBox: Allows users to input and edit text. TextBox controls are
commonly used for capturing user input, such as names, addresses, or other
textual data.
3. Button: Represents a clickable button that users can interact with by
clicking or pressing Enter. Buttons are often used to trigger actions or
submit forms.
4. ComboBox: Provides a dropdown list of items from which users can select
one option. ComboBox controls are useful for presenting a list of choices to
the user.
5. ListBox: Displays a list of items from which users can select one or more
options. ListBox controls are commonly used for displaying and selecting
items from a list.
6. CheckBox: Represents a checkbox that users can toggle on or off.
CheckBox controls are used to enable or disable options or settings.
7. RadioButton: Presents a set of mutually exclusive options from which
users can select one. RadioButton controls are often used in groups to allow
users to choose one option from a list.
1. Data Providers:
Data providers are components that facilitate communication
between a .NET application and a data source. ADO.NET supports
multiple data providers, each optimized for a specific data source.
The two primary data providers in ADO.NET are:
SQL Server Data Provider (System.Data.SqlClient): Used for
connecting to Microsoft SQL Server databases.
OLE DB Data Provider (System.Data.OleDb): Provides
access to a wide range of data sources using the OLE DB
protocol.
2. Connection: