Total Questions : 50
Expected Time : 50 Minutes

1. In Ruby, what is the purpose of the 'super' keyword in a subclass?

2. What is the purpose of Ruby's 'yield' keyword?

3. In Ruby, what is a lambda?

4. What is the purpose of the 'tap' method in Ruby?

5. Which Ruby operator is used to check if an object belongs to a specific class or module?

6. In Ruby, what is the 'self' keyword used for?

7. In Ruby, how do you define a constant?

8. What is the difference between '==', '===' and 'eql?' in Ruby?

9. What is the purpose of the 'map' method in Ruby?

10. In Ruby, how do you define a range from 1 to 10?

11. What is the 'splat' operator (*) used for in Ruby?

12. In Ruby, what does 'nil' represent?

13. What does the 'attr_reader' method do in Ruby?

14. What is the result of '5.times.map { |i| i * 2 }' in Ruby?

15. In Ruby, what is the purpose of the 'module_function' keyword?

16. What does the 'nil' value represent in Ruby?

17. What is the output of the code 'puts 2 * 3' in Ruby?

18. What is the purpose of the 'each' method in Ruby?

19. In Ruby, what symbol is used to define a comment that spans multiple lines?

20. What does the 'private' access modifier do in a Ruby class?

21. Which method is used to convert a string to uppercase in Ruby?

22. Which operator is used for the logical 'OR' operation in Ruby?

23. What is the symbol used to represent the current object in Ruby?

24. What is the Ruby convention for naming variables?

25. What is the purpose of the 'require' keyword in Ruby?

26. In Ruby, what is the purpose of the 'puts' method?

27. What is the purpose of the 'unless' keyword in Ruby?

28. What is the purpose of the 'include' module in Ruby?

29. What is the result of 5 + 3 in Ruby?

30. In Ruby, what is a 'block'?

31. In Ruby, what is the 'case' statement used for?

32. What is Ruby known for in the world of programming?

33. What is Ruby?

34. Which operator is used to concatenate two strings in Ruby?

35. What is the Ruby equivalent of 'null' in some other programming languages?

36. What is a Ruby symbol?

37. In Ruby, what is the purpose of the 'require' keyword?

38. Which keyword is used to define a conditional statement in Ruby?

39. How do you define a method in Ruby?

40. In Ruby, what is the 'yield' keyword used for in a method definition?

41. What is the Ruby convention for naming classes?

42. In Ruby, what is the 'elsif' keyword used for in control structures?

43. Which operator is used for concatenating strings in Ruby?

44. Which of the following is NOT a valid way to define a variable in Ruby?

45. Which Ruby operator is used to check if two values are equal in both value and data type?

46. What is the purpose of the '__FILE__' constant in Ruby?

47. What does the 'include' module function do in Ruby?

48. In Ruby, what is the difference between 'puts' and 'print'?

49. In Ruby, what is the 'send' method used for?

50. What is the purpose of the 'module' keyword in Ruby?