programming test

Status
Not open for further replies.

Plasdom

Ars Tribunus Angusticlavius
6,704
I have an interview next week that will include a programming test (actual programming on a computer + IDE, not on a white board). The interview is scheduled to last 2 hours. What kind of problems should I brush up on in terms of learning how to code? Right now I am working on graphs and traversals. This is for a senior level developer position. thanks
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
++.

In the absence of any info on where/what you are going for I would add some basic general algorithmic concepts like recursion (the graph work will help here) and perhaps trees.

Do you know the IDE used? If you do and have some experience with it then try working on it in 'factory default mode' so you are familiar with it and don't have any cognitive dissonance if some keybindings are inverted (This can avoid you getting frustrated when you really want to get in the flow quickly).

You may want to check whether online/local docs are available in case you end up in an area you are not familiar with and need to check the return type.

If the IDE has an immediate window like Visual Studio learn how to use it. This can get you very rapid testing iterations without a lot of effort.
 

Blacken00100

Ars Legatus Legionis
10,130
Subscriptor
Richard Berg":3benzb96 said:
How often do C# programmers use arrays? How often should they? Doesn't seem like something that belongs on a test unless you do a lot of interop.
"Normal" C#, maybe less often, but in my own projects I tend to use them fairly often. My libraries usually take an IList<T>, and profiling generally shows arrays to be somewhat faster than other IList-implementing classes (and easier to write in shorthand). Even when not dealing with interop systems, arrays have their place. (I don't care that much about speed, otherwise I wouldn't be using .NET, but if it doesn't cause problems to do something faster, I'd rather do it.)
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
How often do C# programmers use arrays? How often should they? Doesn't seem like something that belongs on a test unless you do a lot of interop.

I'd probably[1] fail anyone that couldn't distinguish the core difference between an array an List/vector/expanding contiguous collection of your choice. I'd admittedly be more concerned about contiguous verses linked data structures though.

If it was Java rather than .Net then it would be even more important because ArrayList<primitive> has significant differences[2] compared to primitive[] when contrasted with the idiomatic List<T> .Net behaviour.

[1] You never can tell, they might have awesome algorithmic understanding.
[2] not just performance, Autoboxing changes the possible conversions when casting.
 

Richard Berg

Ars Legatus Legionis
43,037
Subscriptor
I'd probably[1] fail anyone that couldn't distinguish the core difference between an array an List/vector/expanding contiguous collection of your choice.
Well sure. I'd also fail someone who didn't know the difference between an int and a string. That doesn't mean questions targeted at said difference belong on a programming test. Having them solve real world problems should make their grasp of the basics (or lack thereof) utterly plain, without wasting either person's time.

However, I'm having trouble thinking of a problem that is worth investing a large chunk of a senior C# candidate's interview day, yet whose solution hinges on their choice of fixed-length over variable-length collection types. Nevermind that it's entirely possible to use IList<T> in an immutable/functional style if you so desire.

Edit: that came out wrong. Arrays are mutable too, duh. You know what I meant.
 
Status
Not open for further replies.