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. to include a module inside another class/file






3. the concept of writing code that can work with objects of multiple types and classes at once






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






5. Rails' application framework






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






7. It generates web pages from page templates






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






9. The "format" in "repond_to do |format|"? is a ______






10. to declare global variables






11. A script that alters the structure of the underlying database






12. Kinds of test you create yourself






13. models have only ______names






14. Converts database records to objects






15. Command to run a migration






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






17. Long form of "rake" which can do more complex things like modifying the database structure and running testsis






18. The "format" in "repond_to do |format|"? is a ______






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






20. Rails' application framework






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






22. to call a partial






23. declaring classes inside another class






24. This variable changes the environment






25. A script that alters the structure of the underlying database






26. Default Rails environments: development - test - ________






27. Kinds of test you create yourself






28. to run the latest migrations






29. Command to run a migration






30. These create namespaces






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






32. to run the latest migrations






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






34. declaring classes inside another class






35. These create namespaces






36. It generates web pages from page templates






37. to get character from ascii value






38. Naming convention for file names






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






40. Naming convention for file names






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






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






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






44. expression that all layouts have






45. This is a comparison operator






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






47. Default Rails environments: development - test - ________






48. to check if an input is numeric






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






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