Ruby Interview Questions
Sure, here are 50 common Ruby interview questions:
- What is Ruby?
- What are the key features of Ruby?
- How is Ruby different from other programming languages?
- What is the difference between Ruby and Ruby on Rails?
- What are some popular Ruby web frameworks?
- What is the difference between a symbol and a string in Ruby?
- What is a block in Ruby?
- What is a lambda in Ruby?
- How do you declare a class in Ruby?
- What is a module in Ruby?
- How do you include a module in Ruby?
- What is the difference between include and extend in Ruby?
- What is a gem in Ruby?
- How do you install a gem in Ruby?
- How do you create a new Rails application?
- What are the default directories and files in a Rails application?
- What is a migration in Rails?
- What is the purpose of the Rails asset pipeline?
- What is ActiveRecord in Rails?
- What is a callback in Rails?
- What is the purpose of the Rails router?
- What is a controller in Rails?
- What is a view in Rails?
- What is a partial in Rails?
- What is a helper in Rails?
- What is a layout in Rails?
- What is the purpose of the Rails console?
- What is the purpose of the Rails log?
- What is a session in Rails?
- What is CSRF protection in Rails?
- What is RESTful routing in Rails?
- What is a scaffold in Rails?
- What is a migration file in Rails?
- What is the purpose of the Rails database.yml file?
- How do you deploy a Rails application to a production server?
- What is the purpose of the Rake tool in Ruby on Rails?
- What is the purpose of the Bundler gem in Ruby on Rails?
- What is the difference between unit testing and integration testing in Rails?
- What is Test-Driven Development (TDD)?
- What is Behavior-Driven Development (BDD)?
- How do you write a RSpec test in Rails?
- What is the purpose of Capybara in Rails testing?
- What is the purpose of FactoryGirl in Rails testing?
- What is the purpose of SimpleCov in Rails testing?
- How do you optimize a Rails application for performance?
- What is the purpose of caching in Rails?
- What is the purpose of background processing in Rails?
- How do you use Active Job in Rails?
- What is the purpose of Action Cable in Rails?
- What is the purpose of Action Mailer in Rails?