Or just like you can test a software engineer by discussing basic data structures and how they behave both in theory and in practice.
I've also seen things like "Why would you specify the # of elements when initializing an ArrayList in Java?", and you just know the person asking is the guy that sprinkles magic constants all over his code. And gives negative reviews when you don't put random (often relatively small) numbers in yours too.