uk
Feedback
Ruby Interview | Ruby on Rails

Ruby Interview | Ruby on Rails

Відкрити в Telegram

The Ruby Interview channel is a resource for preparing for Ruby developer interviews. It features questions, problem-solving solutions, and interview tips.

Показати більше
425
Підписники
Немає даних24 години
+57 днів
+930 день
Архів дописів
What will be the output?☝️
Anonymous voting

The quiz will be in 1 minute
The quiz will be in 1 minute

What will be the output?☝️
Anonymous voting

The quiz will be in 1 minute A - right answer
The quiz will be in 1 minute A - right answer

What will be printed when the following code is executed? ☝️
Anonymous voting

x = [1, 2, 3]
y = x.map { |n| n * 2 }
x[0] = 10
puts "#{x} #{y}"
The quiz will be in 1 minute

What will be the output? ☝️
Anonymous voting

array = [1, 2, 3, 4]
array.each do |num|
  next if num.even?
  print num
end
The quiz will be in 1 minute

What will be the output of the following code?☝️
Anonymous voting

x = 5
y = 10
x, y = y, x
puts "#{x} #{y}"
The quiz will be in 1 minute

What does before_action :authenticate_user! do in a Rails controller?
Anonymous voting

How do you retrieve all users whose name starts with "A" using ActiveRecord?
Anonymous voting

How do you generate a new Rails model named Article?
Anonymous voting

Which of the following commands will delete a table permanently?
Anonymous voting

What SQL query retrieves the second-highest salary from the employees table?
Anonymous voting

Which SQL query selects unique values from a column?
Anonymous voting

What does the GROUP BY operator do in SQL?
Anonymous voting

Which of the following statements is true when using the UNION operator in SQL?
Anonymous voting

Which method in Ruby is used to join two arrays?
Anonymous voting

How do you create an empty hash in Ruby?
Anonymous voting