Skip to content

Instantly share code, notes, and snippets.

@austenito
Last active June 7, 2020 19:37
Show Gist options
  • Save austenito/5810640 to your computer and use it in GitHub Desktop.
Save austenito/5810640 to your computer and use it in GitHub Desktop.
Ruby Interview Questions

Ruby Questions

  • What is a class?
  • What is an object?
  • What is a module? Can you tell me the difference between classes and modules?
  • Can you tell me the three levels of method access control for classes and modules? What do they imply about the method?
  • There are three ways to invoke a method in ruby. Can you give me at least two?
  • Explain this ruby idiom: a ||= b
  • What does self mean?

Answers to questions

More Ruby Questions

  • What is difference between unit, functional, integration testing?
  • Tell me about the Ruby Object Model.
  • What happens when you include a module on a class? What about extending a module on a class? Why?
  • What happens when you include a module on an instance? What about extending a module on an instance? Why?
  • What is a Proc?

Rails Questions

  • What is a named scope?
  • What is the difference between includes and joins.
  • How would you implement basic caching?
  • How about partial page caching?
  • What is a polymorphic association?
  • What is a has and belongs to many association?
  • What is Rack?
  • What is the purpose of Active Record?
  • What is the purpose of Active Support?
  • What would you store in a Session?

General Questions

  • What is HTTP?
  • Explain is as much possible detail what happens when you make a request in your browser.
  • Explain REST
  • What is a HTTP response for?
  • What is a HTTP request for?
  • What does it mean for a request to be idempotent? What types of requests are idempotent?
  • What are cookies for?
  • Explain inner, outer, left and right joins. Hint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment