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. A script that alters the structure of the underlying database






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






3. edit routes






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






5. A search form is not associated with a ______






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






7. This is a comparison operator






8. Converts database records to objects






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






10. Naming convention for classes






11. controller (and table) names are _______






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






13. to include a module inside another class/file






14. This precedes the "check_logged_in" method in a class






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






16. models have only ______names






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






18. A search form is not associated with a ______






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






20. This variable changes the environment






21. Rails' object-relational mapping library






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






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






24. Default Rails environments: development - test - ________






25. This variable changes the environment






26. to generate regular model code (not scaffolding)






27. These create namespaces






28. to declare global variables






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






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






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






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






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






34. the second uri indicate






35. edit routes






36. models have only ______names






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






38. the second uri indicate






39. Default Rails environments: development - test - ________






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






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






42. Command to run a migration






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






44. These create namespaces






45. Rails' application framework






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






47. Naming convention for file names






48. to get ascii value of a character






49. This precedes the "check_logged_in" method in a class






50. Methods by default are ________