Liverpoololympia.com

Just clear tips for every day

Trendy

What are the interview questions in C#?

What are the interview questions in C#?

C# Interview Questions

  • How is C# different from C?
  • What is Common Language Runtime (CLR)?
  • What is garbage collection in C#?
  • What are the types of classes in C#?
  • What is a managed and unmanaged code?
  • What is the difference between an abstract class and an interface?
  • What are the differences between ref and out keywords?

What are all the C# important topics for an experienced interview?

Following are the topics from C#.NET

  • . NET Framework.
  • CLR.
  • CLS.
  • CTS.
  • Classes & Objects.
  • OOP’s.
  • Concepts of OOP’s (Encapsulation, Inheritance, Polymorphism, Abstraction)
  • Difference b/w Abstract & Interface.

What is extension method in C# Interview Questions?

Extension methods enable you to add methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original type. An extension method is a special kind of static method, but they are called as if they were instance methods on the extended type.

What is enum in C# Interview Questions?

Enumeration (or enum) is a value data type in C#. It is mainly used to assign the names or string values to integral constants, that make a program easy to read and maintain.

What is garbage collection in C#?

The garbage collector (GC) manages the allocation and release of memory. The garbage collector serves as an automatic memory manager. You do not need to know how to allocate and release memory or manage the lifetime of the objects that use that memory.

What are interfaces in C#?

Interface in C# is a blueprint of a class. It is like abstract class because all the methods which are declared inside the interface are abstract methods. It cannot have method body and cannot be instantiated. It is used to achieve multiple inheritance which can’t be achieved by class.

What is an enumerator in C#?

In the C# language, enum (also called enumeration) is a user-defined value type used to represent a list of named integer constants. It is created using the enum keyword inside a class, structure, or namespace. It improves a program’s readability, maintainability and reduces complexity.

What is CLI and CLR?

The CLR code uses a common type system (CTS) that is based on a common language infrastructure (CLI). CLI is a specification developed by Microsoft that describes the executable code and runtime environment.

What is JIT compiler in C#?

The JIT compiler translates the MSIL code of an assembly to native code and uses the CPU architecture of the target machine to execute a . NET application.

What is CTS and CLS in C#?

CTS and CLS are parts of . NET CLR and are responsible for type safety within the code. Both allow cross-language communication and type safety. In this article, I would like to expose the relationship between these two.

What is heap memory in C#?

What is Heap Memory? The heap is an area of memory where chunks are allocated to store certain kinds of data objects. Unlike the stack, data can be stored and removed from the heap in any order. your program can store items in the heap, it cannot explicitly delete them.

Related Posts