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. controller (and table) names are _______






2. Converts database records to objects






3. to declare global variables






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






5. Rails' object-relational mapping library






6. edit routes






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






8. to check if an input is numeric






9. declaring classes inside another class






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






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






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






13. It generates web pages from page templates






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






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






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






17. This variable changes the environment






18. expression that all layouts have






19. declaring classes inside another class






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






21. the second uri indicate






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






23. to get ascii value of a character






24. to get character from ascii value






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






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






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






28. controller (and table) names are _______






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






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






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






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






33. Methods by default are ________






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






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






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






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






38. to get character from ascii value






39. models have only ______names






40. to run the latest migrations






41. Naming convention for classes






42. edit routes






43. This is a comparison operator






44. to get ascii value of a character






45. to check if an input is numeric






46. to declare global variables






47. tag that starts a form






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






49. Kinds of test you create yourself






50. All constants are _______