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. Command to run a migration






2. A search form is not associated with a ______






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






4. declaring classes inside another class






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






6. to include a module inside another class/file






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






8. Rails' application framework






9. Kinds of test you create yourself






10. to generate regular model code (not scaffolding)






11. Naming convention for file names






12. tag that starts a form






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






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






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






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






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






18. models have only ______names






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






20. Methods by default are ________






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






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






23. to generate regular model code (not scaffolding)






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






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






26. Converts database records to objects






27. All constants are _______






28. Naming convention for classes






29. Converts database records to objects






30. These create namespaces






31. edit routes






32. Command to run a migration






33. declaring classes inside another class






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






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






36. These create namespaces






37. It generates web pages from page templates






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






39. to run the latest migrations






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






41. Default Rails environments: development - test - ________






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






43. It generates web pages from page templates






44. All constants are _______






45. the second uri indicate






46. Naming convention for file names






47. edit routes






48. controller (and table) names are _______






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






50. This is a comparison operator