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.