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. a RESTful application uses ... to define an interaction with the data.






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






4. This is a comparison operator






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






6. to generate regular model code (not scaffolding)






7. to check if an input is numeric






8. declaring classes inside another class






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






10. to get ascii value of a character






11. Command to run a migration






12. the second uri indicate






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






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






15. to generate regular model code (not scaffolding)






16. These create namespaces






17. Converts database records to objects






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






19. Naming convention for file names






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






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






22. expression that all layouts have






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






24. All constants are _______






25. Naming convention for classes






26. to get character from ascii value






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






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






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






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






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






32. A search form is not associated with a ______






33. to run the latest migrations






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






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






36. Naming convention for classes






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






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






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






40. It generates web pages from page templates






41. Methods by default are ________






42. Command to run a migration






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






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






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






46. Converts database records to objects






47. controller (and table) names are _______






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






49. All constants are _______






50. It generates web pages from page templates