Developer Interview Questions

269,158 developer interview questions shared by candidates

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?
avatar

Senior Applications Developer

Interviewed at RBC

3.9
Mar 10, 2018

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?

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?
avatar

Software Developer

Interviewed at Reynolds and Reynolds

3.5
Aug 9, 2017

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?

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 .
avatar

UI Developer

Interviewed at Dream11

4.2
Jan 2, 2019

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 .

Viewing 1201 - 1210 interview questions

Glassdoor has 269,158 interview questions and reports from Developer interviews. Prepare for your interview. Get hired. Love your job.