dublin104 wrote: » I have an interview for a post as a C#.NET developer which will include a 'whiteboard' test where I'll be asked to code a problem/function. Impossible to know what I'll be asked to do, what have you been asked in an interview? Thanks
dublin104 wrote: » Fizz Buzz? Do employers really ask that?
Mo14 wrote: » Check out the book 'Cracking the Coding Interview' if you have the time and haven't already. I'm only a third year intern so this may not be too relevant, but for the whiteboard part of the interview for my internship, I was asked 'Given a string, write a method that returns a string containing the duplicate characters in the input string'. So for the input "aaghgd", you'd return "ag". Very trivial, but it would still weed out the people who can't code to save their life.
mrkite77 wrote: » If I were to interview someone for a C# position, I'd ask them to do some simple tasks and see if they used LINQ or not. Checking to see if people use idiomatic C# is the quickest way to see if they're C# programmers or Java programmers who quickly taught themselves C# syntax for the job.
BrokenArrows wrote: » Surely the use of LINQ or not doesn't make a good or bad programmer. If you want to know if they can use LINQ then put that in the question. I can use LINQ if I choose but whether I use it or not depends on the situation. Personally I find LINQ makes code a lot less readable.
public static void Main(string[] args) { Console.WriteLine("Before Method"); GetStrings(); Console.WriteLine("AfterMethod"); Console.ReadLine(); } public static IEnumerable<string> GetStrings() { Console.WriteLine("inside method"); yield return "1"; yield return "2"; }
not1but4 wrote: » It was harder to pretend that I hadn't seen it before.