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. to get ascii value of a character






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






3. expression that all layouts have






4. to include a module inside another class/file






5. Rails' application framework






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






7. Rails' application framework






8. to generate regular model code (not scaffolding)






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






10. controller (and table) names are _______






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






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






13. Converts database records to objects






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






15. Methods by default are ________






16. Command to run a migration






17. to get character from ascii value






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






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






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






21. This variable changes the environment






22. This is a comparison operator






23. to get character from ascii value






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






25. Default Rails environments: development - test - ________






26. to run the latest migrations






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






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






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






30. tag that starts a form






31. Kinds of test you create yourself






32. Converts database records to objects






33. to get ascii value of a character






34. to check if an input is numeric






35. declaring classes inside another class






36. to declare global variables






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






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






39. Rails' object-relational mapping library






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






41. A search form is not associated with a ______






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






43. models have only ______names






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






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






46. edit routes






47. expression that all layouts have






48. Kinds of test you create yourself






49. It generates web pages from page templates






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