Ruby Interview Questions
Questions Answers Views Company eMail

How ruby looks up a method to invoke?

1

What is mvc and why do we use it?

1

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

1

How do you remove nil values in array using ruby?

1

Explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?

1

What are blocks and procs?

1

What is the difference between ruby 1.9 and ruby 2.0?

1

Explain the types of variables available in ruby class?

1

Explain the difference between a single quote and double quote?

1

Can you call a private method outside a ruby class using its object?

1

Explain the role of thread pooling in relation to the thread lifecycle in ruby?

1

How symbol is different from variables?

1

What is the difference between extend and include?

1

Explain about the defined operator in ruby?

1

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

1


Post New Ruby Questions

Un-Answered Questions { Ruby }

What is the use of global variable $ in Ruby?

3


What is sysread method in Ruby?

5


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

5


Explain the three levels of access control for ruby methods?

1


What is the difference between #== and #eql??

5






What are ruby blocks.

1


What are the object-oriented programming features supported by ruby?

5


Explain class libraries in ruby.

1


In how many ways items can be removed from array in Ruby?

3


Does hash use “ #==” or “#eql?” To compare hash keys?

5


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

1


Explain about operators in Ruby?

5


Explain about variables?

5


What is the use of interpolation in ruby?

5


what is the difference between String and Symbol?

5