C# Interview Question

Share With All

1). What is C#?

C# [pronounced as “C sharp”] is a simple, modern, object-oriented, and type-safe programming language.

2). What are the basic concepts of object oriented programming?

It is necessary to understand some of the concepts used extensively in object oriented programming.These include Objects, Classes, Data abstraction and encapsulation, Inheritance,Polymorphism.

3). Can you inherit multiple interfaces?

Yes , In Dotnet C# Multiple Inheritence is not allowed so instead of we can use Interfaces which are inheritable.

4). What is Garbage collection?

The .NET Framework’s garbage collector manages the allocation and release of memory for your application.

5).Where are all .NET Collection classes located?

System.Collection namespace has all the collection classes available in .NET.

6). What is boxing and unboxing?

Implicit conversion of value type to reference type of a variable is known as BOXING, for example integer to object type conversion.  Conversion of reference type variable back to value type is called as UnBoxing.

7). What are the types of arrays in C#?

Single-Dimensional, Multidimensional, Jagged arrays.

8). What is the difference between Object and Instance?

An Instance of a user-defined type is called an object. We can instantiate many objects from one class. An object is an instance of a class.

9).Define Constructors?

A constructor is a member function with the same name as its class.
The constructor is invoked whenever an object of its associated class is created. It is called constructor because it constructs the values of data members of the class.

10).What is encapsulation?

The wrapping up of data and functions into a single unit (called class) is known as encapsulation. Encapsulation containing and hiding information about an object, such as internal data structures and code.

For more details you can comment or leave a reply below.

Share With All
Updated: February 1, 2012 — 8:39 pm

The Author

Sushmita Ghosh

Sushmita is a website developer with a vast experience. She has done her masters and has been working on this domain since 10 years. She has her own company where she designs and develops websites for her clients. Her companies name is Pasham Technologies. If you need academic projects or want to get trained in website designing and development, she will be happy to assist and guide you. You can visit her company website and contact her for more details.

Leave a Reply

Your email address will not be published. Required fields are marked *

Pasham Technology © 2018 Pasham Technologies