Wednesday, February 13, 2013

C#.Net Interview Question and Answers

=>
What is C#?

§  C# (pronounced "C sharp") is a simple, modern, object-oriented, and type-safe programming language.
§  It will immediately be familiar to C and C++ programmers.
§  C# combines the high productivity of Rapid Application Development (RAD) languages.

=>
What are the types of comment in C#?

There are 3 types of comments in C#.
§  Single line (//)
§  Multi (/* */)
§  Page/XML Comments (///).

=>
What are the namespaces used in C#.NET?

Namespace is a logical grouping of class.
§  using System;
§  using System.Collections.Generic;
§  using System.Windows.Forms;