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
Which pattern is used to wrap an object and add new behaviors dynamically at runtime?
Anonymous Quiz
12%
Adapter
10%
Proxy
72%
Decorator
5%
Bridge
Which pattern is used to allow incompatible interfaces to work together?
Anonymous Quiz
78%
Adapter
8%
Strategy
8%
Observer
7%
Factory
Which pattern allows an object to change its behavior dynamically depending on its state?
Anonymous Quiz
24%
Strategy
41%
State
27%
Observer
8%
Factory Method
Which component in MVC is responsible for updating the user interface?
Anonymous Quiz
10%
Model
16%
Controller
1%
Router
73%
View
Which HTTP method is typically used to create a new resource?
Anonymous Quiz
6%
GET
88%
POST
6%
PUT
0%
DELETE
Which HTTP method is typically idempotent?
Anonymous Quiz
21%
POST
16%
PATCH
20%
PUT
44%
CONNECT
Which of the following URLs is the most RESTful for fetching a specific order with ID 42?
Anonymous Quiz
3%
/getOrder?id=42
67%
/orders/42
5%
/order?id=42
26%
/api/v1/orders?id=42
Which operator is used for string interpolation?
Anonymous Quiz
8%
+
2%
%
89%
#{}
1%
@{}
The quiz will be in 1 minute 👇
What will this Ruby code return?
Anonymous Quiz
1%
3
90%
8
8%
Error
0%
5
Which of the following code snippets correctly checks if a number is even in Ruby?
Anonymous Quiz
27%
if number % 2 == 0
2%
if number == even?
70%
if number.even?
1%
if number.even
👍5
What will this code output?
Anonymous Quiz
12%
true
80%
false
1%
5
7%
Error
Which values are considered falsy in Ruby?
Anonymous Quiz
7%
0
3%
" (empty string)
3%
[] (empty array)
88%
nil and false
🔥 Battle City 3 — a game that’s growing more popular every day

🎮 Online seasons, tank selection, and awesome rewards: grenades, enemy freeze, extra lives, and more

🌐 New online levels are added regularly — there's always something fresh to play!

📴 Prefer offline? Enjoy 12 levels with selectable difficulty

📲 Download now and jump into the battle!
👇👇👇
https://battlecity.udfsoft.com?from=tg_rubyI
https://battlecity.udfsoft.com?from=tg_rubyI
1💩6🔥2
What will this code output?

puts "apple" < "banana"
Anonymous Quiz
59%
true
17%
false
4%
nil
19%
Error
What is the result?