Skip navigation

Fellow Job-Seekers:

Here’s what I was asked in a second-stage interview for a C#.NET Intermediate-level contract position for a major software company:

1) What is an Anonymous Method and when would you use it ?
[I didn’t know, but mentioned in-line delegates and got points for knowing about those. I said we used it for very simple routines that did not justify a whole method for itself, so can save a few lines of code. They said ‘that’s fair enough’.
2) What is a nullable type ? Are they useful in method signatures ?
[I said not to use them in method sigs as the consumer will be confused as to whether or not to pass a value or not. Better to have an overloaded method for the null case. Interviewer said this was a good answer.
3) What is the difference between String and StringBuilder ?
4) Since strings are immutable, what is the implication for security e.g Passwords ?
[No idea]
5) A user does not have permissions to access a file? How can you give them those permissions
through .NET ?
[I speculated that CASPOL might do it, then said to use anonymous authetication and set permissions on the folder to the anonymous user. They said no, has to be an authenticated user. I said I would just use Windows and give them permission, then said I don’t know how .NET would do it. They said ‘Trick Question. It actually can’t be done in .NET.]
6) What is Reflection and what’s a use for it ?
7) What does this block of code in LINQ do ?
[It was a simple block that grouped an array of numbers according to the Modulus of 5 (i.e. n % 5) then printed out each group and the numbers in that group.
8) In LINQ what does var signify ?
[My answer: an anonymous type]
9) What is an AsyncCallbackDelegate and when do you use it ?
10) Explain protected, internal, public, private.
11) SQL: What is a clustered index ?
12) SQL: What is a primary key ?
13) SQL: What kind of collection does ADO.NET return from a SELECT statement?
[Ans: Dataset]
14) NUNIT: What class- and method-decoration attributes are available to you and what do they do ?
[I talked about TextFixture, Test, TearDown and SetUp and local Teardown and SetUp]
15) Given this block of code find all the errors and comment on coding style.
[It was a fairly simple FileStream example – unfortunately FileStreams are not my strongest point.]
16) POWERSHELL: What differentiates Powershell from other scripting shells e.g JScript ?
[It returns and processes .NET objects, not text]
17) POWERSHELL: Why is it an advanatge that it doesn’t process text ?
[Text is tedious to Pipe because you have to extract the pieces of information you require by position and length. .NET objects can be processed directly by each chain in the Pipe.]
18) POWERSHELL: What is get-member ? Which .NET technique is it analagous to ?
[Reflection]
19) POWERSHELL: What is where-object ?
20) POWERSHELL: What is format-table ?
21) POWERSHELL: What is get-wmiobject ?
22) What is a WebService? How does it work ?
[Exposure of services to heterogenous systems. SOAP over HTTP]
23) What is WSDL ?
24) What is UDDI ?
25) What is the method GetHashCode in relation to object equivalence? What is it used for ?
[Didn’t know this one]
26) What’s the difference beween a.Equals(b) and a == b ?

And So ?
I got most of them and for my reward was required to sit an IKM Knowledge Test. Which I did at Moderate level and got 83 which is 87th percentile all thanks to Google.

So now its up to the reference checks…wish me luck.

Advertisements

10 Comments

  1. Strings are immutable and their internal value cannot be overwritten meaning even a nulled String instance might be accessible in memory at a later time (e.g. memory dump)

    • baraholka1
    • Posted May 12, 2009 at 10:39 pm
    • Permalink

    Salim,

    Excellent. Thanks for that.

    Baraholka.

  2. Hey, Nice post. I have researched some Excellent C#.Net interview questions and answers

  3. Excellent post!!

    • Youssef
    • Posted July 12, 2010 at 3:41 pm
    • Permalink

    I got 90 at the IKM test, 96% percentile.
    The test is adaptive, which means questions get harder as you give good answers. Hard questions are long and subtle; you just cannot google them.
    IMHO the IKM score make more sense at the higher scores than the average ones because you cannot cheat them.

    • baraholka1
    • Posted July 13, 2010 at 6:24 am
    • Permalink

    Well done Youssef.
    I hope it leads to a juicy job and/or happiness.
    When you are CIO could you give me a job please ?

    • Den
    • Posted August 12, 2010 at 10:42 am
    • Permalink

    Baraholka1,

    I’ve just been informed by a recruiter that the company I’m applying for uses the C# .NET 2.0 IKM test to select their candidates. Apparently the test takes approx. 1 hour to complete.

    I have few questions and was wondering if you could share your experiences to help me and others reading your blog.

    Do you remember any of the questions from the C# .NET IKM test?

    How many questions did it ask?

    Also, what’s the best way to succeed on the C# .NET 2.0 IKM test? (Do you google immediately if you don’t know and guess if you can’t find it quick enough via google e.g. if you didn’t know the answer you would just google “msdn some_topic_area_name” e.g msdn anonymous methods.

    What about time constraints? Did you have that much time to google and answer all questions?

    Thanks!

    [Can you please deny publishing my 1st post, I was in the middle of editing my comment in that small text box and accidently pressed the post button]

    • baraholka1
    • Posted October 19, 2010 at 5:41 am
    • Permalink

    Den,

    My strategy when using IKM is to Google My Brains Out.
    I have found most agencies don’t care if you take nearly all the allotted time.
    But they do want you to finish all the questions in that time.

    So Google yourself into a frenzy and in my experience you will score somewhere between 82 and 98.
    In my experience your agent will be very happy even if you admit you Googled.
    If questioned I always admit I use Google as it is what I would do at work anyway.

    HTH

    – Barra

    • maggie
    • Posted December 2, 2010 at 8:49 am
    • Permalink

    hi How could you use google on the test? i thought copy and paste is not allowed during the test session?

    • baraholka1
    • Posted December 6, 2010 at 12:38 am
    • Permalink

    Hi Maggie,

    Correct. You can’t cut and paste.
    You just have to type the keywords in as quick as you can without using cut ‘n’ paste.

    Regards,

    Barra


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: