Ruby On Rails Interview Questions and Answers
Ques 1. What is Ruby On Rails?
Ques 2. Why Ruby on Rails?Ans. 1.CRUD (convention over configuration)
2. DRY Principal (Do not repeat Your self )
3. Gems and Plugins
4. Pure OOP Concept
6.. Rest Support
8. Rake support
9. open source
10.Rpsec Suppot for testing
Ques 3. Explain how (almost) everything is an object in Ruby.Ans.
This is a simple question based on complex concept. Here’s your chance to show off your theoretical knowledge and demonstrate that you can have an in depth conversation on class hierarchies, inheritance, methods, encapsulation, polymorphism, and more.
Explaining this could take an hour or a few minutes – there’s no single correct answer here, save from being able to demonstrate your familiarity with OOP concepts.
Ques 4. What’s your favorite testing tool?Ans. The specific answer here is probably not important in and of itself – What’s important is that you can demonstrate familiarity with at least several testing tools, and be able to discuss their individual advantages and weaknesses. Never ventured outside of Rails default testing tools? Take some time to familiarize yourself with tools such as Rspec, FactoryGirl, Capybara, and Cucumber.
Ques 5. What are Gems and which are some of your favorites?Ans. Gems are packaged bits of Ruby code that you can install to extend or add functionality to your app.
Be sure to be able to discuss a list of your favorite gems, why you like them, and any customizations you like to add. This is also a good opportunity to highlight any gems you may have published.
Most helpful rated by users: