Total Questions : 30
Expected Time : 30 Minutes

1. Which method is used to check if a variable is of a certain class in Ruby?

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

3. In Ruby, what is a 'Range' object used for?

4. In Ruby, what is the 'singleton class' or 'eigenclass'?

5. What is the purpose of the 'initialize' method in a Ruby class?

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

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

8. What is the symbol used to define a class variable in Ruby?

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

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

11. What is the Ruby convention for naming classes?

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

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

14. What is a Ruby symbol?

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

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

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

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

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

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

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

22. What is the Ruby convention for naming variables?

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

24. What is the output of the code 'puts true && false' in Ruby?

25. Who created the Ruby programming language?

26. What is a 'Proc' in Ruby?

27. What does the 'unless' keyword do in Ruby?

28. In Ruby, what does 'self.included(base)' method indicate in a module?

29. Which method is used to remove the last element from an array in Ruby?

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