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. Embedded Ruby (ERb) processes data from model objects AND _______ as inputs






2. tag that starts a form






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






4. controller (and table) names are _______






5. Rails' object-relational mapping library






6. to include a module inside another class/file






7. Command to run a migration






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






9. tag that starts a form






10. controller (and table) names are _______






11. Converts database records to objects






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






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






14. models have only ______names






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






16. the second uri indicate






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






18. Naming convention for classes






19. Naming convention for classes






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






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






22. declaring classes inside another class






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






24. to include a module inside another class/file






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






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






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






28. to get ascii value of a character






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






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






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






32. These create namespaces






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






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






35. Naming convention for file names






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






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






38. Methods by default are ________






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






40. to declare global variables






41. to check if an input is numeric






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






43. to run the latest migrations






44. All constants are _______






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






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






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






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






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






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