Mastering the Technical Interview: Must Know Ruby on Rails Questions

As a Full-Stack Engineer and after my last article on React, it only seems right to also inform my readers about 22 essential questions regarding Ruby on Rails that will help them ace the verbal portion of the interview.

Source: https://miro.medium.com/max/15366/1*TQmpa7zsU4zocFVdilhcZw.jpeg

1. What is Ruby on Rails?

2. How Does Ruby on Rails Use the MVC Framework?

3. How Does Rails Implement Asynchronous JavaScript and XML (AJAX) Requests?

4. What is a Rails Migration?

5. What are Routes?

Source: https://miro.medium.com/max/2628/1*M0hdLsgbzelOFuq-1BVH-g.png

6. What are the HTTP Verbs?

7. Why is *Almost* Everything in Ruby an Object?

7. Is Ruby Statically or Dynamically Typed?

x = 16
x = "hello world"

8. What’s the Difference Between Getter and Setter Methods?

class Dog
attr_accessor :color
end
dog1 = Dog.new
dog1.color = "black"
puts dog1.color #=> black

9. How Do You Call a Method In Ruby and What Happens When You Do?

9. What is a Gemfile?

10. What is a Gemfile.lock?

11. What is the Difference Between Count, Length, and Size?

12. What are Callbacks?

13. What is the Difference Between Class and Instance Methods?

def self.method_name
end

14. Does Ruby Allow Multiple Inheritances?

15. Is Ruby Strongly or Weakly Typed?

16. How do we Declare a Constructor Class in Ruby?

class Puppy
attr_reader :breed
def initialize(breed)
@breed = breed
end
end
Sidney = Puppy.new("German Shepherd")
puts Sidney.breed # => German Shepherd

17. What is Rack?

18. What is Yield?

def yield_example
puts "first line"
yield if block_given?
puts "third line"
yield if block_given?
end
yield_example { puts "yielding" }
# => first line
# => yielding
# => third line
# => yielding

18. What’s the Difference Between a Hash and JSON?

19. What are Some Advantages of Rails?

19. What are Some Disadvantages of Rails?

20. What is Spring?

21. What is the Difference Between Select, Map, and Collect?

i = [1,2,3,4,5]
i.select {|x| x % 2 == 0}
# => [2, 4]
i = [1,2,3,4,5]
i.map {|x| x+1}
# => [2,3,4,5,6]

22. What are the Three Levels of Access Control?

Graduate of Flatiron School’s Software Engineering Bootcamp as of 12/4/2020. Actively job searching in New York City.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store