Ruby On Rails Interview Questions

Here are few of the interview questions which have been recently asked by companies

  1. What is the difference between Ruby Select and Detect?
  2. What is the difference between Ruby strings declared with  single quotes and the one declared with double quotes?
  3. What is the difference between Classes and Modules?
  4. What are different types of associations in rails?
  5. What is the difference between Has Many Belongs To association and Has Many Through association?
  6. Explain MVC architecture?
  7. What are Active records?
  8. What is the difference between Collection Routes and Member Routes?
  9. What is the Purpose of declaring resources in Routes file?
  10. How we can skip any of the action declared by resources in routes file?
  11. What is the purpose of Helpers?
  12. How we can Apply DRY technique to our controllers?
  13. What is the difference between web server and web application?
  14. What is capestrino used for?
  15. What is elastic search ? Explain it’s advantages.
  16. What is the purpose of precompiling assets in production?
  17. What is CSRF? How does Rails protect against it?
  18. How does Rails implement AJAX?
  19. Explain what is “Yield” in Ruby on Rails?
  20. Explain what is Rails Active Record in Ruby on Rails?
  21. Explain when self.up and self.down method is used in rails Migration?
  22. Mention what is the difference between String and Symbol?
  23. Explain what is Mixin in Rails?
  24. Explain how you define Instance Variable, Global Variable and Class Variable in Ruby?
  25. Explain how you can run Rails application without creating databases?
  26. Explain what is Polymorphic Association in Ruby on Rails?
  27. Mention what is the difference between Active support’s “HashWithIndifferent” and Ruby’s “Hash” ?
  28. Mention what is the naming convention in Rails?
  29. Explain the role of the subdirectories app/controllers and app/helpers in Rails.

  30. What is the difference between compiled language and interpreted language?
  31. what is ‘make’ in ruby?

Keep watching this space for more questions.

HAPPY CODING 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s