Question 1. What Are The Advantages Of .Internet?
Object-Oriented Programming – Using C# and .NET which can be primarily based on item-oriented Concepts.
Language Independence – All the languages which are supported by means of .Net (VB.NET, C#, J#, and managed C++) are compiled into not unusual Intermediate Language (IL). So IL makes positive that languages are interoperable.
Efficient Data Access – ADO.NET offers rapid and efficient manner to get entry to RDBMS, record device and so on.
Code Sharing – To proportion code between applications, a brand new concept known as assembly is brought. Assemblies helps versioning.
Support Dynamic Web Pages – Using ASP.NET
Support for Web Services
Question 2. What Is .Internet Framework ?
The .NET framework is a programming framework from Microsoft. Developers can use .Net Framework to expand applications, install and run the application on Windows operating systems.
C#. NET Interview Questions
Question 3. What Is Ms-il (microsoft Intermediate Language) ?
When a software is complied in .Net, the supply code will be converted into an intermediate language called Microsoft Intermediate Language (MS-IL). This is achieved with the aid of Just-In time Compiler (JIT). The dot internet framework is built in any such manner that the code is Just-In time complied, which means that it get complied whilst it is called as opposed to compiling entire code on the begin up. A part of the code gets complied handiest as soon as and it will exist till the utility exit. This will have a large development in performance for the reason that complete segment of the code might not get finished in most instances.
Question four. What Is Common Language Runtime (clr) ?
Common Language Runtime or CLR is the run-time execution environment of .Net Framework. Converting MS-IL into platform or OS particular code is accomplished by way of the CLR. Currently, .Net packages will run simplest on windows.
C#. NET Tutorial
Question five. What Is Common Type System (cts) ?
.Net uses Common Type System (CTS) for Language Interoperability. CTS defines the predefined data kinds which can be to be had in IL, so that every one languages that target the .NET framework will produce the compiled code that is in the end based totally on these sorts. CTS ensures that a statistics type described in a VB.Net can be understood by means of C#. For example, VB.Net makes use of “Integer” to outline the data kind Integer. C# uses “int” to define the data type Integer. When VB.Net code is compiled, it will convert the Integer to Int32. Since C# refers Int to Int32, VB.Net code might be understood through C#.
ASP.NET Interview Questions
Question 6. What Is Common Language Specification (cls) ?
Common Language Specification (CLS) is used for Language Interoperability in tandem with CTS to make certain the interoperability of the languages. CLS defines a set of minimal requirements that every one compilers focused on dot net have to guide. For example, VB.Net is not case sensitive. So attribute “EmployeeName” and “employeename” is taken into consideration equal. But C# is case sensitive. So for language interoperability, C# does not allow two variables which vary simplest in case.
Question 7. What Is Garbage Collector ?
Garbage Collector is used in dot internet Framework for memory control. While running an application, packages make a request for memory for its inner use. Framework allocates memory from the heap. Once the method is completed, allocated memory needs to be reclaimed for destiny use. The manner of reclaiming unused memory is taken care by using the Garbage Collector.
ASP.NET Tutorial Microsoft Silverlight Interview Questions
Question 8. How To Invoke Garbage Collector Programmatically ?
To call rubbish collector from a program, use code “ GC.Collect(); “
Question nine. What Is A Managed Code ?
Managed code is code that may be accomplished and controlled by means of .NET Framework Common Language Runtime. All codes based at the intermediate language(EL) executes as managed code.
Dot Net Remoting Interview Questions
Question 10. What Is An Assembly ?
Assemblies are self-describing logical unit which consists of one or extra documents targeted at dot net. An meeting may be saved throughout unmarried report inclusive of a unmarried DLL or EXE that consists of metadata, or it canbe stored in multiple files.
For instance, aid files like meta records, DLL's, and an EXE. Assemblies help versioning.
Microsoft Silverlight Tutorial
Question 11. What Is Assembly Manifest ?
Part of the meeting which includes assembly meta records that describes the meeting itself is called appear. Assembly occur consists of Assembly Name, Version Number, Culture, Strong name, List of documents inside the assembly and Reference facts.
Windows Presentation Foundation(WPF) Interview Questions
Question 12. What Are The Different Types Of Assembly ?
The two forms of Assemblies are Shared and Private.
C#. NET Interview Questions
Question thirteen. What Is A Private Assembly ?
Private Assemblies are supposed to be utilized by the program for which it's far made for. Reason in the back of this is that, the utility will most effective load personal assemblies which might be positioned inside the equal folder or in the sub folder of the principle executable.
Windows Presentation Foundation(WPF) Tutorial
Question 14. What Is Shared Assembly ?
Shared Assemblies include Common Libraries that are meant to be used by more than one applications. While making shared assemblies, name collisions and overwriting current assemblies want to be taken care. Name Collisions may be taken care by way of robust call. Global meeting cache can be used to keep away from meeting overwriting.
Question 15. How To View Assembly Information ?
By the usage of Ildasm.Exe, which is an MSIL Disassembler one can view attributes, references to different modules and assemblies.
Windows Communication Foundation (WCF) Interview Questions
Question sixteen. Where Is The Assembly Version Information Stored ?
In the Manifest.
Windows Communication Foundation (WCF) Tutorial
Question 17. What Is Namespace ?
A namespace is a logical grouping of associated lessons and types. Every magnificence should have a NameSpace.
Advanced C# Interview Questions
Question 18. What Is The Difference Between Namespace And Assembly ?
Forms the logical boundary for a Group of lessons.
It is a Collection of names where each call is Unique.
The namespace should be specified in Project Properties.
Assemblies are Self-Describing
It is an Output Unit. It is a unit of deployment and is used for versioning. Assemblies include MSIL code.
ASP.NET Interview Questions
Question 19. What Is Global Assembly Cache (gac) ?
While the usage of shared assemblies, to avoid Assembly being overwritten by means of a specific version of the identical meeting, shared assemblies are positioned in a special listing subtree of the record machine known as the global meeting cache (GAC). Placing shared assemblies can only be finished by way of a unique .Net Utilities.
Question 20. Explain The Concept Of Strong Names ?
While using shared assemblies, so as to keep away from name collisions strong names are used. Strong Names are based totally on non-public key cryptography, ie. Non-public assemblies are truly given the same name as their essential record call.
Asp Dot Net Mvc four Interview Questions
Question 21. How To Add And Remove A Assembly From Gac?
To installation meeting in Cache, use Gacutil. To run Gacutil, goto "Visual Studio Command Prompt" and type "gacutil -i <assembly_name>", wherein (assembly_name) is the DLL call of the challenge. To uninstall meeting, type gacutil –u <assembly name> in Visual Studio Command Prompt.
Question 22. What Is Reflection?
Reflection is used to dynamically load a class, create object and invoke techniques at runtime. It can also be used to examine its own meta information to find assemblies, modules and kind records at runtime.
Question 23. What Is Delay Signing ?
To create a strong named assembly and to make certain that this assembly can utilized by a person else, we partially build this assembly by means of presenting a Public Key. We write this Public Key inside the AssemblyInfo.Vb OR .Cs report. We also add an attribute via the name <Assembly:AssemblyDelaySignAttribute(true)> to the assembly data file. This makes it positive that once we construct the assembly, it would be containing the records handiest approximately the public key earlier than we supply it to our clients. This is a partial sturdy named assembly that we've got created, and therefore it is known as Delayed Assembly.
Asp Dot Net Mvc Interview Questions
Question 24. What Are The Different Type Of Jit's ?
Different Types of JIT are:
Pre-JIT - Complies complete supply code into native code on the time of deployment.
Econo-JIT - Complies methods which might be known as at runtime.
Normal-JIT - Complies methods that are known as at runtime and get stored in cache. Next time while the identical approach is known as, it'll be taken from cache.
Microsoft Silverlight Interview Questions
Question 25. What Are Value Types And Reference Types ?
There are sorts of data sorts in .Net, Value types and Reference types. Value types are saved in stack a part of the memory. Reference kind are stored in managed heap. Let have a take a look at the example for higher understanding.
Int iCount = zero; Value Type
int NewiCount = iCount; Reference Type
Question 26. Explain The Concept Of Boxing And Unboxing ?
Converting a value kind to reference type is called Boxing. Converting a reference type to price type is known as Unboxing.
Asp Dot Net Database Interview Questions
Question 27. What’s The Difference Between System Exceptions And Application Exceptions?
System exceptions are common exceptions thrown with the aid of the CLR of .Net Framework. Application exceptions may be person defined exceptions thrown with the aid of the utility.
Dot Net Remoting Interview Questions
Question 28. What Is Code Access Security?
CODE Access protection is a protection version that allow us to grant or deny execution permissions to an assembly in step with its "houses," known as proof, consisting of its strong name or writer.
Question 29. What Is A Satellite Assembly?
A satellite assembly are used when multilingual (UI) software are created. Satellite meeting is a compiled library that includes localized sources which presents us with the capability of designing and deploying solutions to multiple cultures, rather than difficult coding texts, bitmaps and so forth
Question 30. How To Prevent My .Net Dll To Be Decompiled ?
We can prevent .NET DLL to be decompiled upto an quantity by Obfuscate Source code, uneven encryption and encrypted w32 wrapper application.
Question 31. What Is Native Image Generator (ngen.Exe) ?
Ngen.Exe creates compiled processor-unique system code known as native pictures which are documents and installs them into the native photo cache on the neighborhood pc. The runtime will use native pics from the cache in preference to the usage of the JIT compiler to bring together the original assembly.
Question 32. What Is Code Document Object Model (codedom) ?
Code Document Object Model are code mills which might be used to minimize repetitive coding duties, and to limit the wide variety of human-generated source code traces.