Preguntas de entrevista de Rails developer


Preguntas de entrevista para Rails Developer compartidas por los candidatos

Principales preguntas de entrevista

Ordenar: Relevancia|Popular|Fecha
A un Contract Ruby On Rails Software Engineer le preguntaron...27 de enero de 2012

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

12 respuestas

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

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

Mostrar Más respuestas

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 respuestas

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

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

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

1 respuestas

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 Menos


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

1 respuestas

Use a trie

Advantage Club

How does map(&:to_i) internally works?

1 respuestas

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). Menos


experiencias pasadas, conocimientos, prueba tecnica muy basica

1 respuestas

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

Bold Penguin

HR Interview

1 respuestas

General chit chat. Nothing technical.

Sunflower Lab

They asked me that Do you know elastic search?

1 respuestas

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


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 respuestas

6 times


Prueba tenica mediate plataforma online y segunda prueba tecnica compartiendo pantalla

1 respuestas

realizando los ejercicios solicitados

Viendo 1 - 10 de 344 Preguntas de entrevista

Consultar preguntas de entrevista para empleos similares

javascript developerweb developerruby developersoftware developer