You are on page 1of 9

1.What is an assembly and its use?

An assembly is one of the elements of a .NET


application and it termed as a primary unit of
all .NET applications. This assembly can be either
DLL or executable file.

2. What are the different types of assembly?


There are two types of assembly –
 Private – A private assembly is normally used
by a single application and it is stored in
application’s directory.
 Public – A public assembly or shared
assembly is stored in Global Assembly
Cache(GAC) which can be shared by many
applications.

3.  What is namespace?
A namespace is an organized way of representing
Class, Structures and interfaces present in .NET
language. Namespaces are hierarchically
structured index of a class library, available to
all .NET Languages.
4 What is the difference between Namespace
and Assembly?
Assembly is physical grouping of all units and
Namespace logically groups classes. Namespace
can have multiple assemblies.
5 What is dim keyword and its use?

3. What is the difference between Namespace


and Assembly?
Assembly is physical grouping of all units and
Namespace logically groups classes. Namespace
can have multiple assemblies.
4.What is Garbage Collection?
Garbage collection is also known as automatic
memory management, which is used for automatic
recycling of dynamically allocated memory.
Garbage collection is performed by Garbage
collector which will recycle memory if it is proven
that memory will be unused.
5. What is the difference between Dataset and
Datareader?
DataReader Dataset
Datareader has read only access to Dataset can hold more than one table
the data and it is set to be forward the same data source. It even stores
only. relationships between tables.
Datareader cannot persist contents Dataset can persist contents
as it is read only
Datareader is connected Dataset is disconnected architecture
architecture
6.What is CLR, CTS, CLS, MSIL, JIT(Just in time
Compiler)?
What is CLR?
CLR is abbreviated as Common Language
Runtime and it forms heart of the .NET
framework. It is the responsibility of runtime to
take care of the code execution of the program.
CLR takes care of the following:
 Garbage Collection
 Code Verification
 Code Access Security
 IL (Intermediate Language)
What is CTS?
CTS is Common Type System which is used to
communicate smoothly between the languages.
For example, if VB has Integer data type and C++
has long data type and these data types are not
compatible.
In order to be compatible, CTS can be used as an
interface between two languages.
 What is CLS?
Common Language Specification is a subset of
CTS and it is used to unite all languages in to one
umbrella. This extends to support all the .NET
language into one unit.
How many languages are supported by .Net?
Following are the languages supported by VB.Net:
 C#
 VB.Net
 COBOL
 Perl
 And 32+
What are the two main parts of .NET?
They are – Common Language Runtime (CLR)
and .NET Framework class library.
What is the difference between VB and
VB.Net?
Following are the differences between VB and
VB.Net:
VB VB.Net
Platform dependent Platform Independent
VB is backward VB.Net is not backward compatible
compatible
Interpreted Compiler Language
Exception Handling Exception Handling by ‘Try….Catch
by ‘On Error…..Goto’
Cannot develop multi- Can develop multi thread application
threaded applications

 What is the difference between Namespace and


Assembly?
Assembly is physical grouping of all units and
Namespace logically groups classes. Namespace
can have multiple assemblies.
What are Option Strict and Option Explicit?
.Net generally allows implicit conversion of any
data types. In order to avoid data loss during data
type conversion, Option Strict keyword is used and
it ensures compile time notification of these types
of conversions.
Option Explicit is the keyword used in a file to
explicitly declare all variables using declare
keywords like Dim, Private, Public or Protected. If
undeclared variable name persists, an error occurs
at compile time.

VB.Net Data Types and Variable Declaration


with DIM
What are Data Types?
Data types determine the type of data that any
variable can store. Variables belonging to different
data types are allocated different amounts of space
in the memory. There are various data types in
VB.NET. They include:
 Boolean: the allocated storage depends on the
platform of implementation. Its value can be
either True or False.
 Byte: allocated storage space of 1 byte. Values
range from 0 to 255 (unsigned).
 Char: allocated a space of 2 bytes. Values
range from 0 to 65535 (unsigned).
 Date: allocated storage space of 8 bytes.
Values range from 0:00:00 (midnight) January
1, 0001 to 11:59:59 PM of December 31,
9999.
 Integer: has a storage space of 4 bytes. Values
range between -2,147,483,648 to
2,147,483,647 (signed).
 Long: has a storage space of 8 bytes. Numbers
range from -9,223,372,036,854,775,808 to
9,223,372,036,854,775,807(signed).
 String: The storage space allocated depends
on the platform of implementation. Values
range from 0 to about 2 billion Unicode
characters.

Q.what is difference between msgbox and


errorprovider control in vb.net
In summary, MsgBox() is a function used to
display messages to the user in a modal dialog,
while Error Provider is a control used to indicate
errors in user input in a non-modal manner.
Q.What is syntax for Select case statement?
Q.Differentiate between Do & While loop in VB
.net?
Q.Give Syntax for Do & While loop in VB .net
Q. . List the control which is used to set the icons
on the Toolbar Control
Q. Differentiate between Form & Panel
Control in VB.Net
Q. Write a procedure to display the icons
on the Toolbar Control.
Q. Differentiate between Form & Panel
Control in VB.Net
Q. What is Exception handling(Explain
try ,catch ,finally ,throw and throws)
Q.What are Operators in VB .net.
Q.What are Control Structurein VB.net(IF
else,IF,Select case)
Q.Explain Loops in VB.net?(For loop,while loop,Do
While loop,For each loop).
Q.Explain Form Control in VB.net and its
properties.(Study All)
Q.What is Sub-procedure and function in vb .net.
Q.What is Class and object in VB .net?
Q.What is Constructor and Destructor in VB.net?
Q.What is Inheritance in VB.net?
Q.What is Overloading,Overriding,Shadowing?
Q.What is ADO.net?
Q.What is
Dataprovider,DataReader,DataAdapter,Dataset?
Q.What is Datagrid control?
Q.How to do Data access using DataAdapter?
Q.What is Simple data Binding?Complex data
Bindig?

Dear students These are some question for Gad oral examination.Also
these are not final questions.please go through all Gad syllabus also.

You might also like