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. controller (and table) names are _______






2. tag that starts a form






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






4. All constants are _______






5. Converts database records to objects






6. Methods by default are ________






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






8. This is a comparison operator






9. tag that starts a form






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






11. to generate regular model code (not scaffolding)






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






13. to declare global variables






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






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






16. to declare global variables






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






18. declaring classes inside another class






19. to get character from ascii value






20. the second uri indicate






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






22. This variable changes the environment






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






24. Converts database records to objects






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






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






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






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






29. Rails' application framework






30. Default Rails environments: development - test - ________






31. Naming convention for classes






32. A search form is not associated with a ______






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






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






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






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






37. models have only ______names






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






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






40. It generates web pages from page templates






41. These create namespaces






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






43. the second uri indicate






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






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






46. to call a partial






47. Default Rails environments: development - test - ________






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






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






50. Kinds of test you create yourself