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. These create namespaces






2. to check if an input is numeric






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






4. to call a partial






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






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






7. Rails' application framework






8. declaring classes inside another class






9. edit routes






10. declaring classes inside another class






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






12. edit routes






13. to declare global variables






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






15. This variable changes the environment






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






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






18. These create namespaces






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






20. Converts database records to objects






21. models have only ______names






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






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






24. tag that starts a form






25. Default Rails environments: development - test - ________






26. Naming convention for file names






27. Naming convention for classes






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






29. to get character from ascii value






30. Kinds of test you create yourself






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






32. to run the latest migrations






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






34. It generates web pages from page templates






35. Naming convention for classes






36. All constants are _______






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






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






39. expression that all layouts have






40. Rails' object-relational mapping library






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






42. to declare global variables






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






44. to generate regular model code (not scaffolding)






45. tag that starts a form






46. Default Rails environments: development - test - ________






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






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






49. A search form is not associated with a ______






50. This is a comparison operator