Sobes.tech

How is the Equals method implemented when working with dictionaries and how does it affect data handling?

Junior — Middle
259

How does the GetHashCode method affect the operation of a dictionary in .NET?

Junior — Middle
240

What is the purpose of overriding the equals method in a class?

Junior — Middle
237

Load balancing algorithms. How to choose a specific service instance?

Middle
232

Have you used automated tests to check your code?

Junior — Middle
229

Why should the GetHashCode method be overridden in a class?

Junior — Middle
226

Did you have a military ID?

Junior — Middle
225

Can you explain what VACUUM FULL command means in SQL and how it differs from the regular VACUUM?

Junior — Middle
220

What is async/await, why is it needed, and how does it unfold?

Middle
217

How to implement element search by key with a time complexity of O(n)?

Junior — Middle
210

What types of memory for data storage exist for a single process in an operating system?

Junior — Middle
210

Where is an integer field usually placed in a class object?

Junior — Middle
208

Will the catch block logic for compensation work correctly when using await Task.WhenAll? What exception will be thrown?

Middle+
207

Can you explain the difference between stack and heap in memory management?

Junior — Middle
207

Can you give an example of a situation where a large object is allocated in heap memory?

Junior — Middle
205

How do reference types differ from value types, and how does this affect working with them?

Junior — Middle
201

There are three methods that change product information (change state, modify tags, and set weight). Since there are plans to add another 10-20 methods that change product information (these methods can be implemented as NuGet packages in another service), it is necessary to implement a single method DoSomethingWithItem that, depending on the input parameters, could invoke any product modification. That is, the method could be told "Change state" or "Set weight" and so on, and its implementation would call one of the methods like StateChanger.Change or WeightSetter.Set, etc. The classes StateChanger, TagsSetter, and WeightSetter can be modified. The main goal is to preserve the business functionality. namespace ItemsService { public sealed class StateChanger { public enum State { Active, InActive } public void Change(int itemId, State newState) { } } public sealed class TagsSetter { public void Set(int itemId, string[] tags) { } } public sealed class WeightSetter { public void Set(int itemId, int weight) { } } public sealed class ItemsService { //public void DoSomethingWithItem } }

Middle
199

What is the purpose of using execution plan descriptions in SQL?

Junior — Middle
194
/8