Ruby on rails Interview questions
A few months I had been looking for interview questions to prepare myself for a switch. And all I could find were these from Ryan and these from a so called job interview questions website.
But now when I was requested by a friend for some interview questions and I look for them I find some better results:
Puneet Pandey presents an exhaustive list of questions. Though you ll have to fight for the answers of a few of them.
Joe also has a nice variety.
Ben also has a good compilation of quality questions and Answers.
And then of course here is the list of questions that i could remember of my own interviews…
Basic
Q. Why ruby on rails? Why do you prefer RoR to other technologies like PHP, Python?
Q. What is Ruby on rails?
Q. What is scaffolding? What generates a scaffold?
Q. What is MVC? Does it score over n-tier? How?
Q. Do you use an IDE? Which?Why?
Specific Technical questions
Q. What in RoR is similiar to events in .NET. (Since I was familiar to .NET)
Ans. Callbacks (Read Active record callbacks)
Q. What is the difference between include and require?
Q. How is route/url mapping done in Rails? What files would you be changing?
Q. How can object oriented programming be implemented in ruby?
Q. What is rake? how does it help in migration?
Q. Tell us something about date and time support in rails?
Q. What is the base class of any class in ruby? Ans. Object
Q. How would you use a table to store a hierarchy? Ans. Acts_as_tree
Q. What is the difference between “.save” and “save!” ?
Q. Tell me about some validation helpers in active record that you have used?
Q. What steps will you take to tune performance in a rails based app?
Q. How do you deploy a rails based app?
Q. Can you use third party tools in Rails app? How?
Some of the answers have been given right there. Some Answers can be found in my blog, especially for the questions in Basic category. And for more your effort to find them in the book should be worth it. And if you still need help on any let me know…. All the best for your interviews.
Posted by
at
19:18:15
Hi Ujjwal,
It’s nice list you have got here. Few months back we were interviewed by one of our client before we got the project and the those questions were really good, here are some of them:
- How did you come into rails?
- Explain how REST works in context of Rails
- Explain polymorphic associations
- Explain how has_many association works
- How eval, method mission works
- Explain indexing, group by, order by
- Explain pros and cons of indexing and dynamism in ruby
- Explain nested routes
- Explain normalization pros and cons
- Explain how Ajax works in background
- Explain Unit testing.
- Which rails casts you have watched
- How STI works
- Explain best rails coding practices.
- What are different ways to store sessions, which one is faster.
There were many others, the whole discussion was very good. I hope you will find this list useful.
Thanks,
Atul Veer.
Thanks Atul, these are really helpful questions. Specially because they are from a client interview.