This article will be a follow-up for my previous one. Here am gonna deal with some C# questions.
1) The C# keyword .int. maps to which .NET type?
Ans: System.Int32
2) How will you define a two-dimensional array in c#?
Ans: int[,] arrayObject;
3) What is a satellite Assembly?
Ans: An assembly containing localised resources for another assembly.
4) Which keyword is used to specify a class that cannot inherit by other class?
Ans: "Sealed".
5) Does C# support multiple inheritance?
Ans: C# class does not support multiple inheritance. But we can use Interface and Abstarct class to use it.
6) How does assembly versioning in .NET prevent DLL Hell?
Ans: .NET allows assemblies to specify the name and the version of any assembly they need to run.
7) What is a Delegate?
Ans: It is like a Function Pointer of C++.
8) Can we create object for an Abstact class?
Ans: No. We can not.
9) Is it compulsary that all the methods in an abstract class must be abstract?
Ans: No. It is not.
10) What is the maximum dimension of array is possible in c#?
Ans: The technical maximum is 60 dimensions, but you probably won't use more than three.
Ok. I will meet you later with another set of questions.
Happy coding....
:))
Also check out the following posts:
ReplyDelete1) Addressing the aspirations of freshers.
2) Quenching the Quest for a good career.
Ya deepak. Its a real worthy post...
ReplyDelete