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. the concept of writing code that can work with objects of multiple types and classes at once






2. All constants are _______






3. h in in <%=h ... %> is a ______ that escapes special characters to sanitize malicious input






4. to generate regular model code (not scaffolding)






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






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






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






8. controller (and table) names are _______






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






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






11. to declare global variables






12. models have only ______names






13. This variable changes the environment






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






15. to run the latest migrations






16. to check if an input is numeric






17. All constants are _______






18. Naming convention for file names






19. h in in <%=h ... %> is a ______ that escapes special characters to sanitize malicious input






20. models have only ______names






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






22. Default Rails environments: development - test - ________






23. to run the latest migrations






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






25. to include a module inside another class/file






26. to get character from ascii value






27. Default Rails environments: development - test - ________






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






29. the second uri indicate






30. tag that starts a form






31. edit routes






32. Rails' application framework






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






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






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






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






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






38. This is a comparison operator






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






40. Rails' object-relational mapping library






41. controller (and table) names are _______






42. to check if an input is numeric






43. to call a partial






44. These create namespaces






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






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






47. declaring classes inside another class






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






49. declaring classes inside another class






50. to get ascii value of a character