Test your basic knowledge |

Ruby On Rails Basics

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Before it saves or updates data a model object _______






2. edit routes






3. Naming convention for classes






4. to specify a format like html or xml in routes.rb






5. to run the latest migrations






6. Rails' object-relational mapping library






7. Embedded Ruby (ERb) processes data from model objects AND _______ as inputs






8. to create a migration that adds a "phone" field to the "tickets" table






9. Allows instance variables to be accessible outside the class by defining = operators for variables






10. Before it saves or updates data a model object _______






11. Unlike regular erb files partials' names begin with an ________






12. Command to run a migration






13. to insert "1 + 1" into a string






14. to get ascii value of a character






15. the model-generator command create the model class (app/models/something.rb) and the ____________






16. A special class whose only job is to have attributes and to hold data






17. Naming convention for classes






18. All constants are _______






19. a RESTful application uses ... to define an interaction with the data.






20. h in in <%=h ... %> is a ______ that escapes special characters to sanitize malicious input






21. Converts database records to objects






22. Rails' object-relational mapping library






23. expression that all layouts have






24. Naming convention for file names






25. This method name indicates to rails that it should validate before saving/updating






26. to call a partial






27. Embedded Ruby (ERb) processes data from model objects AND _______ as inputs






28. to check if an input is numeric






29. declaring classes inside another class






30. to call a partial






31. models have only ______names






32. Rails' application framework






33. a RESTful application uses ... to define an interaction with the data.






34. to check if an input is numeric






35. Default Rails environments: development - test - ________






36. the second uri indicate






37. You add the filter code right after the line introducing __________ in the controller






38. express error messages in a form (do |f|)






39. to destroy a row with id of 2 using only one line...






40. The three kinds of tests are: unit and functional and _________ tests






41. These create namespaces






42. Converts database records to objects






43. These create namespaces






44. Default Rails environments: development - test - ________






45. This variable changes the environment






46. This method name indicates to rails that it should validate before saving/updating






47. to run the latest migrations






48. Kinds of test you create yourself






49. to add an error (called "there was an error") in the validate method






50. Unlike regular erb files partials' names begin with an ________