Total Questions : 20
Expected Time : 20 Minutes

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

2. What is Ruby primarily known for?

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

4. In Ruby, what does 'attr_accessor' do?

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

6. What is the purpose of the 'begin' and 'rescue' keywords in Ruby?

7. What is the Ruby convention for naming classes?

8. Which Ruby data structure is similar to an array but allows you to associate values with keys?

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

10. What is the Ruby convention for naming variables?

11. What is a 'Proc' in Ruby?

12. Which Ruby data structure is similar to an array but can contain only unique values?

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

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

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

16. What is the purpose of the 'attr_accessor' keyword in Ruby?

17. What is the Ruby operator for exponentiation?

18. What does the 'super' keyword do in Ruby?

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

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