1.
What is the output of the following Ruby on Rails code:
puts [' '].any?
2.
What is the output of the following Ruby on Rails code:
a = [1,2,3];
puts a.any?
3.
What is the output of the following Ruby on Rails code:
puts [''].empty?
4.
Rail uses a special unique value to thwart a particular kind of cross scripting attack called:
To prevent a particular type of cross scripting attack, Ruby on Rails uses a unique value which is known as ______________.
5.
In Ruby on Rails, which of the following is used to define a user object and insert it into the test database?
6.
In Ruby on Rails, which of the following methods is used to check for a match with the submitted password?
7.
For storing a raw password in the database, we store a string using a hash function, which is ___________
8.
What is the output of the following Ruby on Rails code:
>> user = User.new
>> user.encrypt_password
9.
In Ruby on Rails, which of the following actions is not emphasized by the REST design style?
10.
In Ruby on Rails, which of the following statements about eager loading is true?