Total Questions : 10
Expected Time : 10 Minutes

1. How do you define a method in Ruby?

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

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

4. What is a 'Proc' in Ruby?

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

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

7. What is the Ruby convention for naming variables?

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

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

10. In Ruby, what is a lambda?