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. Default Rails environments: development - test - ________






2. Converts database records to objects






3. All constants are _______






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






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






6. to run the latest migrations






7. It generates web pages from page templates






8. the second uri indicate






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






10. This is a comparison operator






11. the three "magic columns" are:id - _______ - updated_at






12. to call a partial






13. expression that all layouts have






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






15. declaring classes inside another class






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






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






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






19. expression that all layouts have






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






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






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






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






24. A search form is not associated with a ______






25. to get ascii value of a character






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






27. to declare global variables






28. models have only ______names






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






30. This is a comparison operator






31. edit routes






32. Naming convention for file names






33. These create namespaces






34. This variable changes the environment






35. Kinds of test you create yourself






36. Rails' object-relational mapping library






37. to run the latest migrations






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






39. controller (and table) names are _______






40. This variable changes the environment






41. Naming convention for classes






42. controller (and table) names are _______






43. Rails' object-relational mapping library






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






45. to check if an input is numeric






46. to include a module inside another class/file






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






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






49. to generate regular model code (not scaffolding)






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