in Projects, Programming, Technology

9 Ruby Interview Questions

Here are examples of two types of ruby interview questions. The first set are phone screen questions which gauge your depth in the ruby language. Second are some more difficult white board questions where the language and syntax doesn’t matter (as much), just your grasp of computer science.

 Phone Screen Questions

  1. What are ruby code blocks? What is the difference between functional and object oriented programming?
  2. What is a gem?
  3. What is garbage collection?
  4. A web page on your rails web site slow. How would you track down the bug, and how would you solve it?
  5. What is a pull request?
  6. What does the send method do in Ruby?
  7. What is the difference between a symbol and a string in ruby?
Whiteboard Questions
For these, psuedo-code is OK. Syntax is less important than clearly explaining the solution to the problem.
  1. Reverse a linked list
  2. Write a function to output a list of tables in order of their dependencies in a relational database. (Describe a process for synchronizing dependent data across two databases)
  3. Write a function to shuffle a deck of cards
  4. Sort a list of points in order by their distance from the origin

Write a Comment

Comment