Ruby Programming Interview Questions
3 min readMar 12, 2021
Simple questions on language and idioms.
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.
- If there is a name that is all upper case and snake case what is it?
- If there is a name that begins with an uppercase letter and is camel-case what is it?
- If there is a name that is all lower case and snake-case what is it?
- If a method starts with lower case and is camel case what does that mean?
- If the method ends with a ‘?’ what does that imply?
- If the method ends with a ‘!’ what does that imply?
- What does Object dup method do? Why is it important?
- What does Array map do?
- What does Array select do?
- How do you check that a Hash has a key?