C# Algorithm Interview Questions and Answers - 2
Question: 6
What is a delegate?
A delegate object encapsulates a reference to a method. In C++ they were referred to as function pointers.
Question: 7
Differentiate between Friend and Protected Friend?
Entities declared with the Friend modifier have Friend access.
An entity with Friend access is accessible only within the program that contains the entity declaration.
Entities declared with the Protected Friend modifiers have the union of Protected and Friend access.
Question: 8
What is the difference between Array and Array list?
As elements are added to an array list, the capacity is automatically increased as required through reallocation.
The capacity can be decreased by calling TrimToSize or by setting the Capacity property explicitly.
Question: 9
What’ the difference between // comments, /**/ comments and /// comments?
Single-line, multi-line and XML documentation comments.
Question: 10
How do you generate documentation from the C# file commented properly with a command-line compiler?
Compile it with the /doc switch.
- C# Interview Questions and Answers for Freshers
- C# Interview Questions for Experienced Professionals
- C# Interview Questions and Answers for Experienced
- C# Interview Questions with Answers Pdf
- C Sharp Interview Questions and Answers
- C Sharp Interview Questions and Answers for Freshers Pdf
- Top 200+ Advanced C# Interview Questions 2019-2020
- C# Programming Online Test Questions and Answers
- C# Algorithm Interview Questions and Answers
Analog Electronics Questions Pdf Download with Answers More
Engineering Materials Science MCQ Questions & Answers More
Material Science MCQ Questions Pdf Download More
Dairy Technology MCQ Questions and Answers More
Agricultural Engineering MCQ Questions & Answers Pdf More
100+ Problems on HCF and LCM Aptitude Questions Answers More
Number Series Questions for TNPSC Exams More
PG TRB Home science Online Test More
1000+ Verbal, Non Verbal Reasoning Online Test More
Top 1000+ One Word Substitution Exercise with Answers More