Ruby Interview | Ruby on Rails
483 subscribers
15 photos
3 links
The Ruby Interview channel is a resource for preparing for Ruby developer interviews.

It features questions, problem-solving solutions, and interview tips.

Contact:
@Connor_1992
Download Telegram
Which Ruby library is most commonly used for dependency injection?
Anonymous Quiz
7%
Sidekiq
47%
Dry::Container
10%
Faraday
37%
ActiveRecord
πŸ₯΄5πŸ’©3πŸ‘2πŸ‘1🀣1
Which of the following commands is used to create a new migration in Rails?
Anonymous Quiz
84%
rails generate migration
12%
rails db:migrate
4%
rails generate model
0%
rails db:rollback
How do you execute raw SQL queries in ActiveRecord?
Anonymous Quiz
69%
execute
9%
raw_query
19%
find_by_sql
3%
query
πŸ”₯4πŸ‘Ž1
Which gem is commonly used in Ruby to manage PostgreSQL-specific features like JSONB and arrays?
Anonymous Quiz
18%
ActiveRecord
72%
Pg
7%
Sequel
2%
Redis
πŸ‘2
πŸ₯±3πŸ‘1🀯1
Which of these is NOT valid Ruby syntax?
Anonymous Quiz
28%
x = ->(a, b) { a + b }
57%
y = { |x| x * 2 }
5%
z = Proc.new { |n| n ** 2 }
10%
a, b = [1, 2]
What will the following code output?
Anonymous Quiz
66%
1
19%
0
10%
2
4%
nil
Which of these Ruby keywords is NOT related to exception handling?
Anonymous Quiz
3%
rescue
42%
catch
8%
raise
16%
ensure
31%
retry