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. Long form of "rake" which can do more complex things like modifying the database structure and running testsis






2. to include a module inside another class/file






3. A search form is not associated with a ______






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






5. to generate regular model code (not scaffolding)






6. the second uri indicate






7. It generates web pages from page templates






8. Default Rails environments: development - test - ________






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






10. Rails' object-relational mapping library






11. These create namespaces






12. to include a module inside another class/file






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






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






15. to declare global variables






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






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






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






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






20. Converts database records to objects






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






22. All constants are _______






23. the second uri indicate






24. expression that all layouts have






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






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






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






28. to get character from ascii value






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






30. edit routes






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






32. Rails' object-relational mapping library






33. to run the latest migrations






34. This is a comparison operator






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






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






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






38. to get character from ascii value






39. Command to run a migration






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






41. to check if an input is numeric






42. to get ascii value of a character






43. to check if an input is numeric






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






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






46. expression that all layouts have






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






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






49. A search form is not associated with a ______






50. edit routes