esasy
1. What are some advantages of using Ruby?
esasy
2. How would you freeze an object in Ruby? Can you provide a simple example?
esasy
3. Ruby provides four types of variables. List them and provide a brief explanation for each.
esasy
4. Name the three levels of access control for Ruby methods.
esasy
5. Can you explain the role of thread pooling in relation to the thread lifecycle in Ruby?
esasy
6. Find and fix the bug within the code below.
esasy
7. What is the difference between calling super and calling super()?
esasy
8. Explain each of the following operators and how and when they should be used: ==, ===, eql?, equal?
medium
9. Write a single line of Ruby code that prints the Fibonacci sequence of any length as an array.
medium
10. Can you call a private method outside a Ruby class using its object?
medium
11. What is the difference between extend and include in ruby?
medium
12. What is the difference between Array#map and Array#each?
esasy
13. How do you remove nil values in array using ruby?
medium
14. What is the difference between the Object methods clone and dup?
medium
15. How many types of variables are used in Ruby and what are they?
esasy
16. What is a class?
esasy
17. What is an object?
medium
18. What is a module? Can you tell me the difference between classes and modules?
medium
19. Can you tell me the three levels of method access control for classes and modules? What do they imply about the method?
esasy
20. There are three ways to invoke a method in ruby. Can you give me at least two?
hard
21. Explain this ruby idiom: a ||= b
hard
22. What does self mean?
hard
23. What is a Proc?
hard
24. What is unit testing (in classical terms)? What is the primary technique when writing a test?
hard
25. What does this say about the advantages of ruby's dynamic (duck) typed system?
medium
26. Does Ruby support constructors? How are they declared?
hard
27. How would you implement hash in Ruby internally?
hard
28. What is the difference between Ruby 1.9 and Ruby 2.0 ?
esasy
29. What is the difference between `#puts` and `#print`?
esasy
30. What are different variables in Ruby?
esasy
31. What are levels of method access control for classes in Ruby?
medium
32. What is an interpolation in Ruby Programming Language?
esasy
33. What is the difference between NIL and FALSE in Ruby?
medium
34. Why Ruby Is Known As A Language Of Flexibility?
medium
35. Explain About Float, Dig And Max?
medium
36. What Is The Use Of Global Variable $ In Ruby?
medium
37. Mention What Is The Difference Between A Gem And A Plugin In Ruby?
medium
38. Explain About Garbage Collection Feature Of Ruby?
medium
39. What Is Rails?
medium
40. What Is The Use Of Load And Require In Ruby?
hard
41. Explain About Portability?
medium
42. Explain About Normal Method Class?
esasy
43. Mention What Is The Difference Between A Single Quote And Double Quote?
medium
44. What’s difference between symbol and string?
hard
45. What’s difference between blocks, procs and lambdas?
medium
46. What’s difference between string += and concat?
hard
47. Can you explain how Ruby looks up a method to invoke?
medium
48. Explain the use of Meta programming?
medium
49. How to call send method dynamically? What is send method, what is so special about it?
medium
50. How to create method(s) dynamically?
medium
51. List some of the dynamic methods that (you) have been used?
medium
52. In Ruby, what are instance methods and class methods? How are they different?
medium
53. In how many ways the class methods can be created?
hard
54. Why mix-ins? Do we have any other programming languages using the same or similar concepts? Does Ruby support multiple-inheritance?
hard
55. Why nested modules?
medium
56. Explain load vs. require vs. include vs. extend?
medium
57. How does inheritance implemented in Ruby? What is super?
hard
58. Both modules and inheritance pretty much do the same “extending behaviour/methods”. In that case d we still need two for one purpose? How do they differ?
esasy
59. Explain some of the looping structures available in Ruby?
medium
60. What is singleton, when do we need singletons?
hard
61. What are Gems and which are some of your favourites?