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 declare global variables






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






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






4. to generate regular model code (not scaffolding)






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






6. to check if an input is numeric






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






8. This is a comparison operator






9. to generate regular model code (not scaffolding)






10. to get ascii value of a character






11. the second uri indicate






12. to get character from ascii value






13. Default Rails environments: development - test - ________






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






15. It generates web pages from page templates






16. Rails' object-relational mapping library






17. the second uri indicate






18. edit routes






19. controller (and table) names are _______






20. declaring classes inside another class






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






22. to run the latest migrations






23. Converts database records to objects






24. to call a partial






25. All constants are _______






26. tag that starts a form






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






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






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






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






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






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






33. to declare global variables






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






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






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






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






38. Rails' application framework






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






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






41. Rails' object-relational mapping library






42. models have only ______names






43. A search form is not associated with a ______






44. A search form is not associated with a ______






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






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






47. Kinds of test you create yourself






48. models have only ______names






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






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