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. Methods by default are ________






2. Methods by default are ________






3. to declare global variables






4. It generates web pages from page templates






5. This is a comparison operator






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






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






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






9. to include a module inside another class/file






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






11. declaring classes inside another class






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






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






14. A search form is not associated with a ______






15. to declare global variables






16. Rails' application framework






17. All constants are _______






18. All constants are _______






19. This variable changes the environment






20. This variable changes the environment






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






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






23. This is a comparison operator






24. models have only ______names






25. to get ascii value of a character






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






27. expression that all layouts have






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






29. These create namespaces






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






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






32. to get character from ascii value






33. edit routes






34. A search form is not associated with a ______






35. to get character from ascii value






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






37. the second uri indicate






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






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






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






41. the second uri indicate






42. controller (and table) names are _______






43. Default Rails environments: development - test - ________






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






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






46. to generate regular model code (not scaffolding)






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






48. to call a partial






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






50. Naming convention for classes