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. express error messages in a form (do |f|)






2. A search form is not associated with a ______






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






4. to check if an input is numeric






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






6. to get ascii value of a character






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






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






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






10. to declare global variables






11. Command to run a migration






12. This variable changes the environment






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






14. This variable changes the environment






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






16. to generate regular model code (not scaffolding)






17. All constants are _______






18. Rails' application framework






19. tag that starts a form






20. the second uri indicate






21. Methods by default are ________






22. Rails' object-relational mapping library






23. Rails' application framework






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






25. This is a comparison operator






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






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






28. to check if an input is numeric






29. controller (and table) names are _______






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






31. declaring classes inside another class






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






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






34. models have only ______names






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






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






37. Methods by default are ________






38. Naming convention for file names






39. to generate regular model code (not scaffolding)






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






41. declaring classes inside another class






42. controller (and table) names are _______






43. Rails' object-relational mapping library






44. to include a module inside another class/file






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






46. Naming convention for classes






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






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






49. to get character from ascii value






50. These create namespaces