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. Default Rails environments: development - test - ________






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






3. Methods by default are ________






4. the second uri indicate






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






6. Rails' object-relational mapping library






7. to call a partial






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






9. A search form is not associated with a ______






10. Kinds of test you create yourself






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






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






13. declaring classes inside another class






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






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






16. to declare global variables






17. to check if an input is numeric






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






19. Converts database records to objects






20. to get ascii value of a character






21. These create namespaces






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






23. All constants are _______






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






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






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






27. to generate regular model code (not scaffolding)






28. to run the latest migrations






29. to include a module inside another class/file






30. tag that starts a form






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






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






33. expression that all layouts have






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






35. It generates web pages from page templates






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






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






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






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






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






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






42. This is a comparison operator






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






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






45. to include a module inside another class/file






46. These create namespaces






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






48. controller (and table) names are _______






49. Command to run a migration






50. controller (and table) names are _______