Q61. Is a delegate a type-safe functions pointer?
Ans. Yes
Q62. What is the return type of an event in .NET?
Ans. There is No return type of an event in .NET.
Q63. Is it possible to specify an access specifier to an event in .NET?
Ans. Yes, though they are public by default.
Q64. Is it possible to create a shared event in .NET?
Ans. Yes, but shared events may only be raised by shared methods.
Q65. How to prevent overriding of a class in .NET?
Ans. Use the keyword NotOverridable in VB.NET and sealed in C#.
Q66. How to prevent inheritance of a class in .NET?
Ans. Use the keyword NotInheritable in VB.NET and sealed in C#.
Q67. What is the purpose of the MustInherit keyword in VB.NET?
Ans. MustInherit keyword in VB.NET is used to create an abstract class.
Q68. What is the access modifier of a member function of in an Interface created in .NET?
Ans. It is always public, we cant use any other modifier other than the public modifier for the member functions of an Interface.
Q69. What does the virtual keyword in C# mean?
Ans. The virtual keyword signifies that the method and property may be overridden.
Q70. How to create a new unique ID for a control?
Ans. ControlName.ID = "ControlName" + Guid.NewGuid().ToString(); //Make use of the Guid class
Q71A. What is a HashTable in .NET?
Ans. A Hashtable is an object that implements the IDictionary interface, and can be used to store key value pairs. The key may be used as the index to access the values for that index.
Q71B. What is an ArrayList in .NET?
Ans. Arraylist object is used to store a list of values in the form of a list, such that the size of the arraylist can be increased and decreased dynamically, and moreover, it may hold items of different types. Items in an arraylist may be accessed using an index.
Q72. What is the value of the first item in an Enum? 0 or 1?
Ans. 0
Q73. Can we achieve operator overloading in VB.NET?
Ans. Yes, it is supported in the .NET 2.0 version, the "operator" keyword is used.
Q74. What is the use of Finalize method in .NET?
Ans. .NET Garbage collector performs all the clean up activity of the managed objects, and so the finalize method is usually used to free up the unmanaged objects like File objects, Windows API objects, Database connection objects, COM objects etc.
Q75. How do you save all the data in a dataset in .NET?
Ans. Use the AcceptChanges method which commits all the changes made to the dataset since last time Acceptchanges was performed.
Q76. Is there a way to suppress the finalize process inside the garbage collector forcibly in .NET?
Ans. Use the GC.SuppressFinalize() method.
Q77. What is the use of the dispose() method in .NET?
Ans. The Dispose method in .NET belongs to IDisposable interface and it is best used to release unmanaged objects like File objects, Windows API objects, Database connection objects, COM objects etc from the memory. Its performance is better than the finalize() method.
Q78. Is it possible to have have different access modifiers on the get and set methods of a property in .NET?
Ans. No we can not have different modifiers of a common property, which means that if the access modifier of a property's get method is protected, and it must be protected for the set method as well.
Q79. In .NET, is it possible for two catch blocks to be executed in one go?
Ans. This is NOT possible because once the correct catch block is executed then the code flow goes to the finally block.
Q80. Is there any difference between System.String and System.StringBuilder classes?
Ans. System.String is immutable by nature whereas System.StringBuilder can have a mutable string in which plenty of processes may be performed.
Subscribe to:
Post Comments (Atom)
Archives
-
▼
2008
(201)
-
▼
July
(64)
- Acronyms in .NET
- Short Answer .NET Interview Questions (PAGE 5)
- Short Answer .NET Interview Questions (PAGE 4)
- Short Answer .NET Interview Questions (PAGE 3)
- Short Answer .NET Interview Questions (PAGE 2)
- Short Answer .NET Interview Questions (PAGE 1)
- VB.NET Interview Questions 16
- VB.NET Interview Questions 15
- VB.NET Interview Questions 14
- VB.NET Interview Questions 13
- VB.NET Interview Questions 12
- VB.NET Interview Questions 11
- VB.NET Interview Questions
- VB.NET Interview Questions 9
- VB.NET Interview Questions 8
- VB.NET Interview Questions 6
- VB.NET Interview Questions 5
- VB.NET Interview Questions 4
- VB.NET Interview Questions 3
- VB.NET Interview Questions 2
- VB.NET Interview Questions 1
- ASP.NET 2.0Interview Questions see
- Tough ASP.NET interview questions all see
- ASP.NET INTERVIEW QUESTIONS 16
- dot see it
- dot net free interview questions see
- General C# Interview Questions :
- C# Interview Questions and Answers 15
- C# Interview Questions and Answers 14
- C# Interview Questions and Answers 13
- C# Interview Questions and Answers 12
- C# Interview Questions and Answers 11
- C# Interview Questions and Answers 10
- C# Interview Questions and Answers 9
- C# Interview Questions and Answers8
- C# Interview Questions and Answers7
- C# Interview Questions and Answers 6
- C# Interview Questions and Answers 5
- C# Interview Questions and Answers 4
- C Interview Questions 3
- C Interview Questions 2
- C Interview Questions
- .Net Web Interview Questions and Answers 5
- .Net Web Interview Questions and Answers 4
- .Net Web Interview Questions and Answers 3
- Which of the following operators has the highest p...
- .Net Web Interview Questions and Answers
- dotnet
- .Net Database Interview Questions 12
- Microsoft .Net Interview Questions 00
- .Net Database Interview Questions and Answers free
- What are different methods of session maintenance ...
- Microsoft .Net Interview Questions and Answers 8
- Microsoft .Net Interview Questions and Answers 2
- Microsoft .Net Interview Questions and Answers
- .Net Interview Questions and Answers 10
- .Net Interview Questions and Answers 8
- .Net Interview Questions and Answers 6
- .Net Interview Questions and Answers 5
- .Net Interview Questions and Answers 4
- .Net Interview Questions and Answers 3
- dot net interview questions 2
- .Net Interview Questions and Answers 1
- Interview questions for .NET
-
▼
July
(64)
1 comment:
That is an extremely smart written article. I will be sure to bookmark it and return to learn extra of your useful information. Thank you for the post. I will certainly return.
Post a Comment