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 search form is not associated with a ______






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






3. Kinds of test you create yourself






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






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






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






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






8. the second uri indicate






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






10. edit routes






11. controller (and table) names are _______






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






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






14. Command to run a migration






15. models have only ______names






16. Rails' application framework






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






18. to run the latest migrations






19. to get ascii value of a character






20. Methods by default are ________






21. Converts database records to objects






22. Default Rails environments: development - test - ________






23. Rails' object-relational mapping library






24. the second uri indicate






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






26. to generate regular model code (not scaffolding)






27. to get character from ascii value






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






29. tag that starts a form






30. to declare global variables






31. Naming convention for classes






32. All constants are _______






33. edit routes






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






35. to check if an input is numeric






36. All constants are _______






37. Rails' object-relational mapping library






38. to run the latest migrations






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






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






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






42. to check if an input is numeric






43. declaring classes inside another class






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






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






46. Naming convention for file names






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






48. to include a module inside another class/file






49. Rails' application framework






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