Home | | C Sharp and .NET Framework(CNF) | Important Short Questions and Answers: .NET Framework

Chapter: C# and .NET Framework

Important Short Questions and Answers: .NET Framework

C# and .NET Framework - Important Short Questions and Answers: .NET Framework

1. What are assemblies?

 

An assembly is an collection of file that appear to be a single dill or executable(exe) Assemblies are .NET unit of reuse, versioning, security and deployment.

 

2. What is the difference between single call and singleton?

 

With a well-known singleton object, all messages for the object, from all clients, are dispatched to a single objet running on the server.

 

With a well-known single-call object, each new message from a client is handling by new objects.

 

3. Define metadata?

 

Assemblies are the .NET unit of reuse, versioning, security, and deployment. In addition to the objects code for the application, assemblies contain resources.

 

4. What are PF files?

 

On disk, assemblies are portable executable files, PF files are not new. The format of a.NET PE file is exactly the same as a normal windows PE files. PE files are implemented as DLLS or EXEs.it consists of one or more modules.

 

5. Define multimodule assemblies

 

A multimodule assembly consist of multiple files . The assembly manifest in this case can reside in a standalone file, or it can be embedded in one of the modules.

 

When the assembly is referred the runtime loads the file containing the manifest and then loads the required modules as needed.

 

6. Define shared assemblies

Ø   If you want to share your assembly, it must meet certain stringent requirement

 

Ø   Your assembly must have a strong name. strong name are globally unique.

 

 

Ø   To share your assembly place it in the global assembly cach .this is an area of the file system set aside by the CLR to hold shared assemblies.

 

 

7. Define private assemblies

 

Assemblies come in two flavor: o Private

o  shared

 

Private assemblies are intended to be used by only one application. Shared assemblies are intended to be shared among many applications.

 

8. Define attributes

 

Ø   Attributes are a mechanism for adding metadata, such as compiler instructions and other data about your data, method, and classes to the program itself.

 

Ø   Attributes are inserted into the metadata and are visible through ILDasam and other metadata-reading tools.

 

9. Define reflection

 

Ø   Reflection is the process by which a program can read its own metadata or metadata from another program.

 

Ø   A program is said to reflect on itself or on another program, extracting metadata from the reflected assembly and using that metadata either to inform the user or to modify the program’s behavior

 

10.            Define Marshaling

The process of moving an object to be remoted is called marshaling.

 

11. What are the uses of server side controls?

 

.NET want you to use server side controls that can often generate unnecessary trips back to the server by default.plus .NET also wants to make the determination as to how the control will act with various browsers.while not impossible,it makes it much more cumbersome to create custom workarounds for special situation.

 

12.            List out the server side state management option suppoted by asp.net?

·        Application state

·        Session state

·        Profile properties

·        Database support

 

13.            Define DLL hell?

 

DLL hell is where loading one program breaks another program. Windows file protection (WTP) protects system DLLs from being updated or Deleted by unauthorized agents.

 

14. Define Joining threads?

 

A thread to stop processing and wait until a second thread complete its work, you are said to be joining the first thread to the second.

 

15. Define Starting threads?

 

The simplest way to create a thread is to create a new instance of the thread class. The thread constructor takes a single argument.

 

16. Define Remoting?

 

When an object is marshaled, either by value or by proxy, across a process or machine boundary, it is said to be remoted.

 

17. Define application (app) domain?

 

App domain can be independently started and halted. They are secure, lightweight and versatile. An app domain can provide fault tolerance. If you start an object in a second app domain and it crashes.

 

18.            What are the methods and properties of the app domain class.

·        CurrentDomain

·        createDomain()

·        GetcurrentthreadID()

·        Unload ()

 

·        FriendlyName ()

·        GetData ()

·        Load ()

·        setData()

 

19.            Define Member Filter?

 

A delegate that filter the list of members in the member info array of object. You use a type.filtername filter, which is a field of the type class that filter on the name.

 

20.            List out the four task of reflections?

·        Viewing metadata

·        Performing type discovery

 

·        Late binding to method and properties

·        Creating types at runtime (reflection emit)

 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
C# and .NET Framework : Important Short Questions and Answers: .NET Framework |


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.