Questions d'entretiens - Ruby developer


Questions d'entretien pour Ruby Developer partagées par les candidats

Principales questions d'entretien

Trier: Pertinence|Populaires|Date
On a demandé à un Contract Ruby On Rails Software Engineer...27 janvier 2012

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

12 réponses

(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 Moins

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

Afficher plus de réponses

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 réponses

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

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


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 réponses

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

A blog of interview puzzles, specifically probability ones Moins

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

1 réponses

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 Moins


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

1 réponses

Use a trie


experiencias pasadas, conocimientos, prueba tecnica muy basica

1 réponses

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

Sunflower Lab

They asked me that Do you know elastic search?

1 réponses

I answered , Elastic search is gem which is used to implement the search functionality. Moins


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 réponses

6 times


Prueba tenica mediate plataforma online y segunda prueba tecnica compartiendo pantalla

1 réponses

realizando los ejercicios solicitados


How would you refactor this code base with lack of test?

1 réponses

As the code was working as is, I start adding test to it so I could refactor relying on something robust. Moins

1 - 10 sur 466 questions d'entretien d'embauche

Consultez les questions posées en entretiens pour des emplois similaires

ruby on rails software engineerpython developerrails developerphp developerweb developerios mobile developer