.Net framework interview questions and answer
25. What are the improvements made in CAS in .NET 4.0? The CAS mechanism in .NET is used to control […]
25. What are the improvements made in CAS in .NET 4.0? The CAS mechanism in .NET is used to control […]
19. How does CAS works? There are two key concepts of CAS security policy- code groups and permissions. A code
13. State the differences between the Dispose() and Finalize(). CLR uses the Dispose and Finalize methods to perform garbage collection
7. Name the classes that are introduced in the System.Numerics namespace. The following two new classes are introduced in the
1. What is .NET Framework? .NET Framework is a complete environment that allows developers to develop, run, and deploy the
6. For the code snippet given below, which of the following statements is valid? public class Generic<T> { public T
1. Which one of the following classes are present System.Collections.Generic namespace? Stack Tree SortedDictionary SortedArray A. 1 and 2
11. Which of the following CANNOT be a target for a custom attribute? A. Enum B. Event C.
6. Which of the following statements are correct about Attributes used in C#.NET? A. If there is a custom
1. The [Serializable()] attribute gets inspected at A. Compile-time B. Run-time C. Design-time D. Linking-time E.
11. Suppose on pushing a button an object is to be notified, but it is not known until runtime which
6. Which of the following is the correct way to call subroutine MyFun() of the Sample class given below? class
1. Which of the following statements is incorrect about delegate? A. Delegates are reference types. B. Delegates are
16. Which of the following statements are correct about the Collection Classes available in Framework Class Library? A. Elements
11. Suppose value of the Capacity property of ArrayList Collection is set to 4. What will be the capacity of
6. Which of the following statements are correct about the C#.NET code snippet given below? Stack st = new Stack();
1. Which of the following statements are correct about an ArrayList collection that implements the IEnumerable interface? The ArrayList class
11. Which of the following statements are correct about an interface used in C#.NET? An interface can contain properties, methods
6. Which of the following statements is correct about an interface used in C#.NET? A. If a class implements
1. Which of the following statements is correct about the C#.NET code snippet given below? interface IMyInterface { void fun1();
16. Which of the following are necessary for Run-time Polymorphism? The overridden base method must be virtual, abstract or override.
11. Which of the following operators cannot be overloaded? true false new ~ sizeof A. 1, 3 B.
6. Which of the followings is the correct way to overload + operator? A. public sample operator + ( sample
1. Which of the following unary operators can be overloaded? true false + new is A. 1, 2, 3
16. Which of the following is NOT an Exception? A. StackOverflow B. Division By Zero C. Insufficient