.Net FAQ’s
.Net Online Training in Ameerpet Hyderabad
We are providing .Net Online Training in Ameerpet Hyderabad. We are one of best Institute to provide Best High Quality .Net online training all over India. The IT Professionals and Students from India and abroad who are unable to attend regular classes can attend our .Net online training from their home in their convenient timings. For more details on .Net Online Training and .Net FAQ’s please call to 9290971883, / 9247461324, or drop a mail to revanthonlinetraining@gmail.com
2. How many languages are supported by .NET at present time?
When invented .NET supports many languages like VB.NET,C#,COBOL, and Perl etc. At present time it supports almost 44 languages.
3. How is it possible for .NET to support many languages?
The .NET language code is compiled to Microsoft Intermediate Language (MSIL). The generated code is called managed code adn this code is run in .NET environment. So after compilation the language is not a barrier and the code can call or use function of another language also.
4. What is the difference between trace and debug?
Debug class is used to debug builds while Trace is used for both debug and release builds.
5. What are differences between system.stringbuilder and system.string?
The main differences between system.stringbuilder and system.string are:
system.stringbuilder is a mutable while system.string is immutable.
Append keyword is used in system.stringbuilder but not in system.string.
6. What is the meaning of MSIL?
MSIL stands Microsoft Intermediate Language. It is used to provide the instructions required for operations such as memory handling, exception handling, and more. It can also provide instructions to initialize and store values and methods easily.
The next .NET interview question we will check involves an important concept.
7. What is an assembly in .NET?
An assembly is the simple collection of all of the logical units present. Logical units are entities required to build an application and later deploy the same using the .NET framework. It can be considered as a collection of executables and DLL files.
8. What are some of the common components of .NET?
There are a lot of components that make up the .NET framework, and some of them are as follows:
- .NET Class Library
- .NET Framework
- Language Runtime
- Application Domain
- Profiling
9. What does JIT stand for in .NET?
JIT is the abbreviation of Just in Time. It is a compiler that is used to convert intermediate code into native code easily.
In .NET, during execution, the code is converted into the native language, also called the byte code. This is processed by the CPU, and the framework helps with the conversion.
10. What is the difference between int and int32?
There is no difference between int and int32. System. Int is an alias name for System.Int32 which is a .Net Class.
11. How do you prevent a class from being inherited?
In C#, we can use the sealed keyword to prevent a class from being inherited.
12. What is the difference between namespace and assembly?
An assembly is a physical grouping of logical units while namespace groups classes. A namespace can span multiple assemblies.
13. What is the differences between value type and reference type.
The main differences between the value type and reference type:
Value type contain variable while reference type doesn't contain value directly in its memory.
In reference type, memory is allocated in managed heap and in value type memory allocated in stack.
Reference type ex-class value type-struct, enumeration
14. What is the application domain?
ASP.NET introduces a concept of application domain or AppDomain which is like a lightweight process, acts like both container and boundary. The .NET run-time uses the AppDomain as a container for data and code. The CLR allows multiple .NET applications to run in a single AppDomain.
15. What is delegate in .NET?
A delegate in .NET is similar to a function pointer in other programming languages like C or C++. A delegate allows the user to encapsulate the reference of a method in a delegate object. It can then be passed in a program, which will call the referenced method. We can even use a delegate method to create a custom event in a class.
16. What are the different types of assemblies?
There are two types of assemblies:
- Private Assembly: It is accessible only to the application, it is installed in the installation directory of the application.
- Shared Assembly: It can be shared by multiple applications, it is installed in the GAC.
17. What is CAS?
CAS stands for Code Access Security, CAS is a part of a security model that prevents unauthorized access to the resources. It also enables the users to set permissions for the code. CLR then executes the code depending upon the permissions.
18. How many types of memories are there in .Net?
There are two types of memories in .Net
- Stack memory
- Heap Memory
19. What is the meaning of Immutable?
Immutable means once you create a thing, you cannot modify it. For example - If you want give new value to old value then it will discard the old value and create new instance in memory to hold the new value.
20. Explain the boxing and unboxing concept in .Net?
Boxing: Boxing is a process of converting value type into reference type.
Unboxing: Unboxing is a process of converting reference type to value type.
Institute Address :
B1, 3rd Floor, Eureka Court, Near Image Hospital, Ameerpet, Hyderabad, India