C# Interview Questions – Placement Papers :
Dear Freshersmail Subscribers, Here some important Interview based
questions are given for the C# Domain. All are advised to make use of these
questions for your interview as well as placement purpose.
What is CSHARP?
C# (pronounced “see sharp”) is a one of Dot Net programming
language and supports functional, generic, object-oriented (class-based), and
component-oriented programming disciplines.
Microsoft has introduced C# on June 2000 and updating/Introducing
new features with different versions.
The most recent version is C# 4.0, which was released in April 12,
2010.
Explain different C# Types used to create a csharp program?
Basically c# compiler supplies intrinsic data types (int, double,
string etc) and programmers can define user defined data types(class, struct,
enum etc).
All above C# types fall into any one of the following categories
1. Value types
2. Reference types
Explain Value type and reference type?
1.
Value Type
2.
Variables of value types directly
contain their data.
3.
Value types store in stack.
4.
Reference Type
5.
Variables of reference types
store references to their data
6.
Reference types store in Heap
Memory.
Tell me the three important Object Oriented programming features
supported by C sharp?
1.
Encapsulation
2.
Inheritance
3.
Polymorphism
How Many Versions Currently Released on C# ?
Currently there are four versions are released for C#, They are
1.
C# 1.0
2.
C# 2.0
3.
C# 3.0
4.
#C 4.0
Could you able to apply inheritance to structure type in C#?
No, we could not apply inheritance to structure. Structure types
are always sealed.
What are the main features involved in C#2.0 Version?
C# Generics and Iterators has come in C# 2.0 version with these
features C# Collections has great benefits. Some of the other features are
mentioned below :
1.
Partial Classes
2.
Anonymous Methods
3.
Nullable Types
4.
CoVarience and Contra Varience in
Delegates
Could remember some of the new features included in C#3.0 Version?
C# 3.0 has following good features and these features works with
Visual studio 2008.
1.
Object and Collection
Initializers
2.
Implicitly Typed Local Variables
3.
Implicitly Typed Arrays
4.
Extension Methods
5.
Lambda Expressions
6.
Anonymous Types
7.
Query Expressions(LINQ)
8.
Automatically Implemented
Properties
What are the new features included in C#4.0 version?
C# 4.0 has released recently in 2010 and all these features could
work with visual studio 2010 because VS2010 can be targeted to .net framework
4.0 version. C# 4.0 mainly focused on dynamic programming and contains
following features.
1.
Dynamic Binding
2.
Name and optional Arguments
3.
Improvements in CoVarience and
ContraVarience
4.
COM specific interop features
No comments:
Post a Comment