Ruby Interview Questions
Questions Answers Views Company eMail

Can you please explain what is the difference between string and symbol?

1

Tell me the role of modules and mixins in ruby?

1

Tell me what is the command to create a migration?

1

Tell me what is the difference between active support's “hashwithindifferent” and ruby's “hash” ?

1

Do you know about dig, float and max?

1

Do you know how ruby looks up a method to invoke?

1

As you know ruby provides four types of variables. List them and provide a brief explanation for each?

1

Tell me what are blocks and procs?

1

Do you know what is the defined operator?

1

Tell us the types of variables available in ruby class?

1

Explain me what is the difference between symbol and string?

1

Tell me what is the role of sub-directory app/controllers and app/helpers?

1

Please explain what is mvc and why do we use it?

1

Tell me what is the difference between calling super() and super call?

1

Tell me how symbol is different from variables?

1


Post New Ruby Questions

Un-Answered Questions { Ruby }

Do you know when self.up and self.down method is used?

1


How is object methods defined in ruby?

5


What's the difference in scope for these two variables: @name and @@name?

5


Tell me how you can create a controller for subject?

1


How would you freeze an object in ruby? Can you provide a simple example?

1






difference between activesupport's “hashwithindifferentaccess” and ruby's “hash”?

5


Explain about garbage collection feature of ruby?

5


Overview of ruby programming language?

5


Explain the difference in scope for these two variables: @@name and @name?

1


In Ruby code, often it is observed that coder uses a short hand form of using an expression like array.map(&:method_name) instead of array.map { |element| element.method_name }. How this trick actually works?

5


Explain raise statement in Ruby?

5


Describe class libraries in Ruby?

5


Explain case statement in Ruby?

5


In Ruby, it explains about the defined operator?

5


How an exception is handled in Ruby?

5