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. It generates web pages from page templates






2. to run the latest migrations






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






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






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






6. to get character from ascii value






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






8. Naming convention for file names






9. All constants are _______






10. to get ascii value of a character






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






12. the second uri indicate






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






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






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






16. models have only ______names






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






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






19. This variable changes the environment






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






21. to get character from ascii value






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






23. to declare global variables






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






25. Naming convention for classes






26. declaring classes inside another class






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






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






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






30. to call a partial






31. This is a comparison operator






32. A search form is not associated with a ______






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






34. to include a module inside another class/file






35. Rails' object-relational mapping library






36. tag that starts a form






37. to generate regular model code (not scaffolding)






38. Naming convention for classes






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






40. to generate regular model code (not scaffolding)






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






42. edit routes






43. Kinds of test you create yourself






44. to declare global variables






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






46. All constants are _______






47. controller (and table) names are _______






48. expression that all layouts have






49. to run the latest migrations






50. Kinds of test you create yourself