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. the concept of writing code that can work with objects of multiple types and classes at once






2. expression that all layouts have






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






4. to run the latest migrations






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






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






7. declaring classes inside another class






8. declaring classes inside another class






9. to get ascii value of a character






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






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






12. tag that starts a form






13. Kinds of test you create yourself






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






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






16. A search form is not associated with a ______






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






18. controller (and table) names are _______






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






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






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






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






23. to declare global variables






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






25. It generates web pages from page templates






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






27. Naming convention for classes






28. controller (and table) names are _______






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






30. to run the latest migrations






31. These create namespaces






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






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






34. edit routes






35. to check if an input is numeric






36. All constants are _______






37. Rails' object-relational mapping library






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






39. models have only ______names






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






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






42. Naming convention for file names






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






44. Command to run a migration






45. A search form is not associated with a ______






46. This variable changes the environment






47. to declare global variables






48. to call a partial






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






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