Ruby Interview | Ruby on Rails – Telegram
Ruby Interview | Ruby on Rails
476 subscribers
14 photos
2 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
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
7%
raise
16%
ensure
32%
retry
What is the output of the following Ruby code?

If someone has not decided, there will be an explanation in 5 minutes
What is the output of the following Ruby code?
Anonymous Quiz
41%
[2, 3, 4]
52%
[1, 2, 3]
6%
No output, error occurs
1%
[1, 2, 3, 4]
Which method in Ruby is used to join two arrays?
Anonymous Quiz
23%
merge
2%
combine
67%
+
8%
join
Which of the following commands will delete a table permanently?
Anonymous Quiz
9%
DELETE TABLE table_name;
89%
DROP TABLE table_name;
2%
REMOVE TABLE table_name;
0%
CLEAR TABLE table_name;
How do you retrieve all users whose name starts with "A" using ActiveRecord?
Anonymous Quiz
77%
User.where("name LIKE 'A%'")
8%
User.find_by(name: 'A%')
4%
User.get_all(name: /^A/)
10%
User.select("name LIKE 'A%'")