What would the count for the list of it. public class Test { string Data; int Id; public Test(int id, string data) { Data = data; Id = id; } } static void Main(string[] args) { List<Test> list = new List<Test>(); list.Add(new Test(10, "test")); var d = new Test(10, "test"); if (!list.Contains(d)) list.Add(d); Console.WriteLine("Count of the list is : " + list.Count); Console.ReadLine(); } } What to do to make count 1?
Developer Interview Questions
271,191 developer interview questions shared by candidates
An airport employee checked a group of passengers through security on Thursday. On Friday, she checked three times as many passengers, and on Saturday she processed 5,000 passengers through security. In the 3 days, she processed 15,000 passengers. How many did she process on Friday?
program
Write a function named 'Once' which accept another function 'sum' ( function sum(a,b){return a+b;}) and return a function and when this returned function called, it should return result of 'sum' (i.e a+b ) passed to 'Once' function. And every time it should return same result that got at first call .
What are the levels of isolation in sql?
What is PHP
They give a coding repo 2h prior to the interview, we are allowed to make any changes to the code before the interview and add whatever extra code you want
all questions are of patterns and 1st question was lengthy and sort of tricky one.
The people of TownX pay as much income tax(percentage-wise) as the number of rupees made per week. What's the optimal salary?
Give the minimum height of a binary search tree?
Viewing 1191 - 1200 interview questions