Saturday, 29 March 2025

10+ Years Question and answers

 1.Globalization(Application that function for multiple cultures- Using unicode, Formatting date, number and currencies calender) vs localization(cluture translation text , adapting UI elements and Adjusting image and icons)

Resources.resx(using system.Resources)

2.Event Driven architecture (Event Source, Event, Event Broker/Event Bus , Publisher, Subscriber, Event Handler , Dispatch)

3.Eventhandler(event keyword) vs function pointers(delegate)

4.IOC - DIO

5. Reflection 

6. System.IO - read and write files using streamwriter and streamreader

7. Hashmaps in c# - dictionary<string,int>
Add,containskeys,remove

8. Use an eager loading ienumerable( not benefit from deferred execution)
Use a Lazy loading Iqueryable ( defers execution of the entire query until output is required)

9. Null Coalescing Operator - a=b??c; means if b is null then a will be assigned the value of c

10. Example for boxing and unboxing 
Is - reference, boxing and unboxing 
As- nullable, Reference and boxing

11. In Web API header
Content-Type: request body
Accept : response format

12. In web AP
Httpget - will not have the body , it will need only the query params
Httpost - will have the body params

No comments:

Post a Comment