• 0

Programmers: Your favorite interview questions


Question

I haven't seen one these posts yet on this forum(if there is forgive me : )), but I figured to help out more people looking for programming work I would start a post for employers who are looking to hire new programmers what kind of questions you guys ask. I'm the technical director at a small game studio in LA, and were expanding so I also looking to see what everyone does so I can adjust accordingly.

Some of the basic questions I ask are:

What is global scope/local scope.

What is a template class

What is inheritance/polymorphism/etc.

Than some really basic logic stuff like whats a recursive function, etc etc.

Than I begin to ask a couple questions that are kind of off the wall because one thing I noticed is College graduates from big schools such as UCLA 9/10 can't figure stuff for themselves. Students are so used to stuff getting spoon fed to them, some of which is just nasty. One thing that really irritated me at one of the studios I worked at previously a couple of there senior programmers came to me and said "I don't know how to do xyz, can you help?" This normally is a pretty common thing, except when xyz happens over and over again and its something that easily be found by doing a quick google search.

I ask the interviewee if they can do something that 99% of the programmers out there can't do. They would obviously say I don't know, I would then ask them than to look it up for me on google and write out basic steps on how to get it done. Lets say I ask them how to register a custom Debug Engine in Visual Studio, first google search for "visual studio custom debug engine" which turns up http://msdn.microsof...4(v=vs.80).aspx , with a link to http://msdn.microsof...(v=vs.110).aspx. Even though the information on the latter article is actually wrong if they copied that I would be so happy. I've had guys sit there for 10 minutes struggling, and I feel that's kind of ridiculous. Every programmer in world should know how to use google :/.

Than depending on the level of the job, I would go into some more nitpicker things say in Unreal, Unity, D3D, whatever and if someone didn't know the answer I would ask them to google it and give me an explanation. I had actually had one guy who didn't graduate from a college, straight out of high school and he didn't know something I asked him, and than he immediately asked if he could go on google and look it up. I actually hired him on the spot and he ones of the best programmers I've ever had.

Anyway what kind of stuff do you guys ask?

Recommended Posts

  • 0

Well, there is our main difference: Im not passionate about code, I just want to write code to get me paid :)

 

as a sysadmin that takes care of hundreds of servers, that attitude bothers me; i've seen software made by top companies in my country so badly done and inefficient that hurts the clients (wallets), like requiring 16GB of RAM in a server just for an app, as an example i've recently found, not even mentioning the amount of RAM for SQL, etc.

 

funny thing is: when i questioned one of the project managers of one of those companies about the lack of optimization and high resources, the amount of crap that came out of his mouth showed what that they care is the paycheck, not the costumers (short signed because now they are gonna lose this same client).

  • 0

For weighing a recursive implementation versus iterative, there are several factors to consider. But in the end, if it's a perf critical path, the real answer is "measure, measure, measure."

The point in the explicit stack + iteration case I gave though is that it is just a recursive solution expressed explicitly. You are just reimplementing the call stack by hand and that's basically always going to be slower in practice than letting the memory be handled by the call stack. There are numerous reasons why, such as, algorithmic choices for the manual stack implementation, sanity checking when pushing/popping, introducing additional subroutine calls; or to say it another way: you increase the operation count & moved from direct stack allocation (via the call stack) to using heap allocation (via the explicit stack).

 

Going back to what I was originally saying, in terms of it taking more time to write efficient code versus not: all you are really doing in these types of cases is spending a lot of time trying to optimize out recursion for not because in the end you just end up re-implementing a recursive solution that looks iterative. And what's more is that it is less efficient in practice but doesn't look like it is to many people outside of compilers so the "efficient" implementation ends up staying in the code base  ;)

  • 0

as a sysadmin that takes care of hundreds of servers, that attitude bothers me; i've seen software made by top companies in my country so badly done and inefficient that hurts the clients (wallets), like requiring 16GB of RAM in a server just for an app, as an example i've recently found, not even mentioning the amount of RAM for SQL, etc.

 

funny thing is: when i questioned one of the project managers of one of those companies about the lack of optimization and high resources, the amount of crap that came out of his mouth showed what that they care is the paycheck, not the costumers (short signed because now they are gonna lose this same client).

At the end of the day the most important thing is the paycheck. Well actually making sure that your customers keep buying your product which gives you a paycheck.

Note the words: I said "making sure your customers keeping buying your product". I never said anything about "making sure your customers are happy". Big difference.

But at the end of the day, I guess people that like to program dont worry about the paycheck too much and do want to make their customers happy.

  • 0

We don't look for programmers, we look for solution providers, individuals that are passionate about the code they write, the way they work with other developers as well as our end users. They are valued contributors to the success of the company, not just a room full of 'coders'. Do I care if they can split a TIF image and do page manipulation in an interview. Nope... even though that might be their first problem. I care about how they think about problems and how they go about learning the things they don't know.

And that's the kind of attitude from a company that I look for in an interview. The interview process tells me a lot about the type of people that work there, and I want to work with, as you say, passionate solution providers, not "coders". I find the very idea that my job is to "produce code" abhorrent. I usually first try to solve problems by deleting code, actually, i.e. "do we really need to do this? is this code still relevant? can this be done more simply?" Code is technical debt, the less the better.

  • 0

 

I'll be honest, guys like you stand out like a sore thumb in interviews. Maybe not where you are located, but certainly in my shop. There is difference between telling someone what you think they want to hear and having a thoughtful discussion about writing code and solving problems. We don't look for programmers, we look for solution providers, individuals that are passionate about the code they write, the way they work with other developers as well as our end users. They are valued contributors to the success of the company, not just a room full of 'coders'. Do I care if they can split a TIF image and do page manipulation in an interview. Nope... even though that might be their first problem. I care about how they think about problems and how they go about learning the things they don't know.

 

That was good to read and im glad there are still companies and people out there who get this.  You need people who can just get in and code but innovation and building the sort of culture that fosters creativity, cultivates new developments and just the capacity to think outside the box to deliver client solutions, those aren't the qualities you find by asking a lot of the questions in this thread.

  • 0

If I was then I would give them a Fizz Buzz Test + Write Simple Function to print Manager - Employee Hierarchy with Reporting Level (hint : Recursive). I have seem 99% applicants failing that.

 

I'm not an interviewer, but if I was I think I would always start with the Fizz Buzz Test. Filtering out 99.5% of incompetents with such a simple question is appealing :)

  • 0

FizzBuzz is BS. Everyone knows it. It's a stock question.

My current go to question is to write (language agnostic) the logic for expressing a given monetary value using the least notes and coins possible.

It's ridiculously easy but it let's you see how they work, the way they optimise code.

  • 0

FizzBuzz is BS. Everyone knows it. It's a stock question.

My current go to question is to write (language agnostic) the logic for expressing a given monetary value using the least notes and coins possible.

It's ridiculously easy but it let's you see how they work, the way they optimise code.

 

You'd be surprised how many get FizzBuzz wrong  :laugh:

Your monetary value question, is that not a just a division and modulus question (not really thought about, but it can't be more complicated than that can it?)

  • 0
Your monetary value question, is that not a just a division and modulus question (not really thought about, but it can't be more complicated than that can it?)

 

It CAN be.  But it's how they do it.

 

I've had people loop with a while statement to see if the outstanding > 0, or I've had people loop through an array of denominations, heck I've had one person write way too many if statements.

 

My personal favourite (when I was solving it) was to define a class of denomination that has a rendered value and an actual value, a type of coin or note, etc.  Create an array of denominations representing the locale's currency.  Sort the array (highest to lowest) using a function to sort by the denominations actual value.  Then for each denomination, divide the outstanding balance by said value, floor it, subtract that amount.  Move to next.

  • 0

It CAN be.  But it's how they do it.

 

I've had people loop with a while statement to see if the outstanding > 0, or I've had people loop through an array of denominations, heck I've had one person write way too many if statements.

 

My personal favourite (when I was solving it) was to define a class of denomination that has a rendered value and an actual value, a type of coin or note, etc.  Create an array of denominations representing the locale's currency.  Sort the array (highest to lowest) using a function to sort by the denominations actual value.  Then for each denomination, divide the outstanding balance by said value, floor it, subtract that amount.  Move to next.

 

I hate these tests and I would probably fail most of them. However I love coding, it's a passion. And I love to learn. My opinion: a lot of companies are just missing out on pretty damn good and passionate developers. I've seen my share of code monkeys, non-user centric and lazy developers who do pass these tests. To me, they don't prove much.

 

And to answer the original question "Programmers: Your favorite interview questions": none! Just let me write useful code dammit! :rofl:

  • 0
I hate these tests and I would probably fail most of them. However I love coding, it's a passion. And I love to learn. My opinion: a lot of companies are just missing out on pretty damn good and passionate developers. I've seen my share of code monkeys, non-user centric and lazy developers who do pass these tests. To me, they don't prove much.

 

This isn't about code, it's proven itself to be about how well developers understand what is being asked.  Seriously, I have had some abhorrent interviewees recently!

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • It is such a shame. I used to really respect Neowin's articles.
    • So.... slower fixes and slower security updates are preferred? I mean, there is no goldilocks zone here until it can literally update without ever needing a restart, and even then I'm sure someone would complain.
    • [New Deal] Save 73% on a lifetime EbookMagic Starter Plan by Steven Parker Today's highlighted Neowin Deal comes via our Apps + Software section, where you can get a lifetime subscription and save 73% on a lifetime EbookMagic Starter Plan. EbookMagic helps turn your ideas into complete, professionally formatted ebooks without spending weeks writing, editing or designing. Simply enter your title, genre and key details, and EbookMagic creates structured content, polished layouts and a custom cover in just minutes. Instead of juggling separate writing tools, formatting software and cover generators, EbookMagic handles the entire ebook creation process in one place. Generate content, customize your book and export ready-to-use files designed for publishing, sharing or personal projects. EbookMagic Lifetime gives aspiring authors, creators and entrepreneurs the flexibility to build, publish and scale projects over time without ongoing subscription fees. Whether you're building lead magnets, creating educational resources or starting your self-publishing journey, EbookMagic simplifies the process and helps bring ideas to life faster. AI-Powered Ebook Creation AI Writing Assistant: Transform prompts & ideas into complete ebook content. 12 Professional Writing Styles: Write using multiple styles and tones. Author Style Mimicking: Adapt content to preferred writing styles. Personalized Cover Generator: Produce custom ebook covers automatically. AI Audiobook Creator: Convert your books into professional-sounding audiobooks using a variety of realistic AI voices (1 audio book included). Built to Help You Create Faster Lightning Fast Creation: Build complete ebooks in minutes. Target Audience Optimization: Tailor content to specific demographics and reader preferences. Intelligent Chapter Structure: Automatically organize chapters and generate a table of contents. 15+ Genres Supported: Create fiction, non-fiction, business, romance, self-help and more. Quality Assurance: Improve readability and engagement with built-in content optimization. Convert to Interactive Books: Transform standard content into interactive experiences. 57 Major Languages Support: Produce ebooks across supported languages. Ready for Download & Publishing Ready for Sale: Create professional books that can be published and sold on Amazon KDP and other major publishing platforms Kindle & Print-Ready Formats: Export files prepared for publishing. No Watermarks: Create cleaner deliverables for publishing. Commercial Usage Rights: Sell or publish your ebooks. Built-In Editing Tools: Make edits before export. What You'll Get 5 Ebooks per month Each generated ebook can support up to 500,000 words per book. Up to 50 cover generations 12 professional writing styles Author style mimicking Personalized Cover Generator Convert to Interactive Books Multiple languages support Kindle & Print-ready formats Commercial usage rights No watermarks Good to know Length of access: Lifetime Redemption deadline: Redeem your code within 30 days of purchase Access options: Desktop and mobile Max number of devices: Up to 3 devices can be used per license. Available for both new and existing users that are not on lifetime plan. Updates included A lifetime subscription to EbookMagic Starter Plan normally costs $149, but this deal can be yours for just $39.99, that's a saving of $109. For full terms, specifications, and license info please click the link below. Get this EbookMagic Starter Plan lifetime deal for just $39.99 (was $149) Although priced in U.S. dollars, this deal is available for digital purchase worldwide. Support queries If you have queries or need support for any of the Neowin Deals, please use the contact form here. Neowin Deals are managed and sold by StackCommerce who represent Neowin on an affiliate basis. Why we post these deals We post these because we earn commission on each sale so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. So for those that keep moaning and complaining, be thankful we're still online for you to even do that. Other ways to support Neowin Whitelist Neowin by not blocking our ads Create a free member account to see fewer ads Make a donation to support our day to day running costs Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: Neowin benefits from revenue of each sale made through our branded deals site powered by StackCommerce.
  • Recent Achievements

    • One Month Later
      Clizby earned a badge
      One Month Later
    • One Month Later
      Timaximus earned a badge
      One Month Later
    • Week One Done
      Timaximus earned a badge
      Week One Done
    • Rookie
      FBSPL went up a rank
      Rookie
    • First Post
      davidbazooked earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      492
    2. 2
      PsYcHoKiLLa
      169
    3. 3
      +Edouard
      164
    4. 4
      Steven P.
      85
    5. 5
      ATLien_0
      76
  • Tell a friend

    Love Neowin? Tell a friend!