Ruby Programming Interview Questions

Jesse Wright
3 min readMar 12, 2021

Simple questions on language and idioms.

Photo by Sebastian Herrmann on Unsplash

When you interview someone for a Ruby programming job what should you ask about their Ruby knowledge. These are simple questions that should only take a minute or two that will give you a good idea if they have worked with the language. And if they know the common idioms of Ruby.

If they don’t know Ruby, then hand it out for them to investigate. This will get them started on writing code for your institution.

The answers are at the end of this article.

  1. If there is a name that is all upper case and snake case what is it?
  2. If there is a name that begins with an uppercase letter and is camel-case what is it?
  3. If there is a name that is all lower case and snake-case what is it?
  4. If a method starts with lower case and is camel case what does that mean?
  5. If the method ends with a ‘?’ what does that imply?
  6. If the method ends with a ‘!’ what does that imply?
  7. What does Object dup method do? Why is it important?
  8. What does Array map do?
  9. What does Array select do?
  10. How do you check that a Hash has a key?

--

--

Jesse Wright

Learning to be a writer. Ex-Grey beard programmer, now retired. Extensive wide ranging reader. Proud Democrat and Liberal and Atheist. Bipolar but Medicated.