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. Naming convention for classes






2. to run the latest migrations






3. Naming convention for file names






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






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






6. to declare global variables






7. declaring classes inside another class






8. edit routes






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






10. It generates web pages from page templates






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






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






13. to declare global variables






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






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






16. Converts database records to objects






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






18. expression that all layouts have






19. the second uri indicate






20. This variable changes the environment






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






22. Command to run a migration






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






24. to generate regular model code (not scaffolding)






25. All constants are _______






26. expression that all layouts have






27. Naming convention for classes






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






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






30. to run the latest migrations






31. to get character from ascii value






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






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






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






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






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






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






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






39. These create namespaces






40. It generates web pages from page templates






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






42. to generate regular model code (not scaffolding)






43. All constants are _______






44. edit routes






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






46. to get ascii value of a character






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






48. Command to run a migration






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






50. to call a partial