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. Naming convention for classes






2. to generate regular model code (not scaffolding)






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






4. Naming convention for classes






5. Rails' object-relational mapping library






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






7. Rails' application framework






8. to declare global variables






9. to check if an input is numeric






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






11. These create namespaces






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






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






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






15. This variable changes the environment






16. All constants are _______






17. Command to run a migration






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






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






20. declaring classes inside another class






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






22. to get ascii value of a character






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






24. It generates web pages from page templates






25. A search form is not associated with a ______






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






27. declaring classes inside another class






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






29. to check if an input is numeric






30. Kinds of test you create yourself






31. Command to run a migration






32. models have only ______names






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






34. Default Rails environments: development - test - ________






35. These create namespaces






36. to generate regular model code (not scaffolding)






37. expression that all layouts have






38. to call a partial






39. Methods by default are ________






40. Naming convention for file names






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






42. models have only ______names






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






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






45. Converts database records to objects






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






47. edit routes






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






49. to run the latest migrations






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