VB.Net Windows Application Interview Questions and Answers - 1

Question: 1

What is the difference between static or dynamic assemblies?

Assemblies can be static or dynamic. Static assemblies can include .NET Framework types (interfaces and classes), as well as resources for the assembly (bitmaps, JPEG files, resource files, and so on).

Static assemblies are stored on disk in portable executable (PE) files.

You can also use the .NET Framework to create dynamic assemblies, which are run directly from memory and are not saved to disk before execution.

You can save dynamic assemblies to disk after they have executed.

Question: 2

Differences between dataset.clone and dataset.copy?

Dataset.clone copies just the structure of dataset (including all the datatables, schemas, relations and constraints.); however it doesn’t copy the data.

On the other hand dataset.copy, copies both the dataset structure and the data.

Question: 3

What is difference between namespace and assembly?

Namespace is a logical design-time naming convenience, whereas an assembly establishes the name scope for types at run time.

Question: 4

How many classes can a single .NET DLL contain?

It can contain many classes.

Question: 5

What is reflection?

Reflection is used to query .NET assemblies and types for information.

It can also be used to create type instances, invoke methods and even emit .NET code at runtime (Reflection.Emit).

Related Questions