Ruby developer Interview Questions

"Ruby developers are responsible for developing code to build products using the Ruby programming language. In an interview context, expect to be quizzed on your technical skills through different kinds of computing problems or brainteasers. The specific questions you are asked will depend on what type of programming position you are looking for. Try researching a specific discipline such as web development, application development, or system development."

Ruby developer Interview Questions

Ruby developer Interview Questions

"Ruby developers are responsible for developing code to build products using the Ruby programming language. In an interview context, expect to be quizzed on your technical skills through different kinds of computing problems or brainteasers. The specific questions you are asked will depend on what type of programming position you are looking for. Try researching a specific discipline such as web development, application development, or system development."

440 Ruby Developer interview questions shared by candidates

Top Interview Questions

Sort: Relevance|Popular|Date
LinkedIn
Contract Ruby On Rails Software Engineer was asked...January 27, 2012

Describe a routine which returns the set of integers in {1..100} divisible without remainder by 3 but not by 9.

12 Answers

(1..100).select { |x| x%3 == 0 && x%9 != 0

1) start from number = 3 Loop while(number <= 100) 2) display number 3) number = number+3, display number 4) number = number+6 Loop Less

put those integers into an array, pick every third element, out of which discard every third element. Less

Show More Responses
Instacart

This was a pair programming session with a Ruby engineer. They allow you to use your own laptop which was great but you only get 30 minutes to finish the problem with working unit tests. I think they re-use this pair programming problem so I'm not going to divulge details here. But it wasn't a particularly hard problem, they just want you to see how you code and test. Do not forget to write unit tests! Ideally you would develop it in a TDD fashion.

2 Answers

I wrote failing unit tests to determine the API first and then kept writing code until the tests succeeded. Less

Do they expect use of rspec, minitest or just simple assert methods for tdd?

Groupon

Tiresome puzzle questions. Recommend looking up the standard ones and their solutions (no, these don't make someone a better software designer or programmer - they're a waste of time). Be prepared for a programming exercise as usual, but be prepared to ask for it in a font/format that's easier to read than Arial or whatever variable-spacing font was used, and without line-wraps. I got the impression that the printout was an afterthought, and the level of interest of the interviewer was minimal

2 Answers

dropping glass-balls, line of buckets with money, board-game heuristics - google these and all favorite interview questions Less

A blog of interview puzzles, specifically probability ones http://bayesianthink.blogspot.com/2012/11/winning-at-russian-roulette.html Less

what is out put of: 1) a && b, 2) a ||= b, 3) a & b?

1 Answers

1) bigger value will be returned, 2) b is assigned to a if a is nil or false, 3) Boolean value will be returned based on the value of a and b(if any of a or b is nil or false false will be returned Less

Animoto

What type of data structure would you use to implement auto-complete functionality where memory usage needs to be minimized?

1 Answers

Use a trie

Advantage Club

How does map(&:to_i) internally works?

1 Answers

map is used to execute a block of code for each element of a given Enumerable object, like an Array. The first thing that happens is that, whenever Ruby sees a & for a parameter, it wants this parameter to be a Proc. If this is not the case already, Ruby calls #to_proc on this object to convert it. map iterates over the received list and calls the received Proc on each element, passing it as a parameter. The Proc then executes element.send("to_i"), that is basically the same as "5".to_i, and will return the expected result (convert each element in to integer). Less

TechStudio

If we have 8 same little balls, but one of them is less weight. How may times do we need to weigh them to define which ball is less weight?

1 Answers

6 times

Rankmi

experiencias pasadas, conocimientos, prueba tecnica muy basica

1 Answers

di un resumen de mi experiencia y conocimiento, la prueba tecnica era mas que todo teorica en la que consultaban conceptos basicos de desarrollo. Less

Icreon Communications

Have you created any gem of yours?

1 Answers

No

RevZilla

How did you become a Ruby on Rails Developer?

1 Answers

I was a WordPress PHP developer at the time and I discovered that with Ruby on Rails you have more control over data flow and the Rails routing engine. (interview did not seem to understand what I meant by data flow). I explained from a data flow perspective that Rails allows for custom routes and custom routes with their own actions, unlike WordPress, which I was working with at the time. (Interviewing began wanting to debate me that you cannot compare one with the other). I answered I was not doing a compare and contrast, but walking him through how I went from PHP WordPress to being a Ruby on Rails developer. Less

Viewing 1 - 10 of 440 Interview Questions

See Interview Questions for Similar Jobs

python developerruby on rails software engineerphp developerrails developerweb developerios mobile developer