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. All constants are _______






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






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






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






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






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






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






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






9. to get ascii value of a character






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






11. Naming convention for file names






12. Methods by default are ________






13. Kinds of test you create yourself






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






15. to call a partial






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






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






18. the second uri indicate






19. Naming convention for classes






20. Converts database records to objects






21. to get character from ascii value






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






23. Converts database records to objects






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






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






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






27. It generates web pages from page templates






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






29. Rails' application framework






30. to declare global variables






31. All constants are _______






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






33. Default Rails environments: development - test - ________






34. controller (and table) names are _______






35. It generates web pages from page templates






36. declaring classes inside another class






37. to get character from ascii value






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






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






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






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






42. to run the latest migrations






43. This variable changes the environment






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






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






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






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






48. to generate regular model code (not scaffolding)






49. to check if an input is numeric






50. the second uri indicate