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. A search form is not associated with a ______






2. to declare global variables






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






4. Naming convention for classes






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






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






7. Methods by default are ________






8. to check if an input is numeric






9. models have only ______names






10. Naming convention for classes






11. to generate regular model code (not scaffolding)






12. to specify a format like html or xml in routes.rb






13. expression that all layouts have






14. to get character from ascii value






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






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






17. All constants are _______






18. Command to run a migration






19. declaring classes inside another class






20. tag that starts a form






21. to call a partial






22. models have only ______names






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






24. expression that all layouts have






25. Rails' object-relational mapping library






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






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






28. Default Rails environments: development - test - ________






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






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






31. edit routes






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






33. to call a partial






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






35. Rails' object-relational mapping library






36. Converts database records to objects






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






38. Naming convention for file names






39. These create namespaces






40. Kinds of test you create yourself






41. These create namespaces






42. tag that starts a form






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






44. to include a module inside another class/file






45. This variable changes the environment






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






47. Converts database records to objects






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






49. to get ascii value of a character






50. This is a comparison operator