100 TOP Ruby on Rails Multiple choice Questions and Answers pdf

The below List of Latest 100 TOP Ruby on Rails Multiple choice Questions and Answers for freshers and experienced pdf free download, Frequently asked Ruby on Rails Multiple choice Questions and Answers
1.  What is bundler?
2.  What is gemset?
3.  What is gem?
4.  What is scaffold command?
5.  What is rake?
6.  What is rvm?
7.  How do you create a migration that adds a "phone" field to the "tickets" table?
8.  Rails' application framework is called ----------?
9.  How do you run a migration?
10. What does "show" refer to as the :action value?
11. How do you update?
12. What comes after <% form_for()... ?
13. What kind of tests are there?
14. How do you specify a format like html or xml in routes.rb?
15. When you put something into an array, does the array keep a separate copy?
16. What is scriptlet versus expression
17. what does the "h" in <%=h ... %> mean?
18. what's the difference between model names and controller names?
19. what is "migration"?
20. what steps get you from fild.erb to file.html?
21. what is the filter code that calls on the "check_logged_in" method for only the "edit" and "update" methods?
22. representation of a resource is called -------------.
23. converts database records to objects is called -------------.
24. what checks if an input is numeric?
25. what is Rails' object-relational mapping library?
26. where do you add the filter code?
27. why is it good to redirect after inserting info into the database?
28. which two steps to include test.xml data to the partial "map" (via the variable "data")...?
29. what environments does Rails have by default?
30. how do you generate regular model code (not scaffolding)?
31. how should you order routes?
32. what should you write in routes.rb to give meaning to http://mebay.com/ads/3?
33. to add login security, which two pieces of code do you need?
34. how do partials look compared to regular erb files?
35. how does "rake" differ from "ruby"?
36. why should partials generally use local variables?
37. do models have singular or plural names?
38. how does rake tell which migrations have been run and which have not?
39. how does Rails choose to correct format to generate?
40. how do you express error messages in a form (do |f|)?
41. what are the three "magic columns"
42. what tag starts a form?
43. what is params[...]?
44. what comes after "def check_logged_in" line for site "ads"?
45. what is naming convention for classes?
46. to create scafolding for "thing" data, run...
47. what variable changes the environment?
48. what is naming convention for file names ?
49. why do you only need to call "render" in the controller sometimes and not always?
50. a RESTful application uses ... to define an interaction with the data.
51. what generates web pages from page templates?
52. where do you edit routs?
53. if looping through “f” object, how do you make a text field “name”?
54. what does a model object do before it saves or updates data?
55. what does "rake" mean?
56. how do you start a loop that reads through the array object "@ads"?
57. what scripts does the model-generator command create?
58. what does Embedded Ruby (ERb) process as inputs?
59. what kind of test do you create yourself?
60. what is "format" in "repond_to do |format|"?
61. what does REST stand for?
62. what parameters are in <% form_for() %>?
63. how do you add an error (called "there was an error") in the validate method?
64. how do you call a partial?
65. how do you run the latest migrations?
66. what's special about a search form?
67. what expression do all layouts have?
68. if the table Seats is associated with the table Flights, how should you name the table column in Seats to indicate its flight?
69. how would you insert "1 + 1" into a string?
70. what is the second uri indicate?
71. what precedes the "check_logged_in" method in a class?
72. what method name indicates to rails that it should validate before saving/updating?
73. how do you ask for all records of the Ads table?
74. when data is retrieved from the database, what does Rails turn it into?
75. what are the main principles of REST?
76. When is it best to use an array rather than a hash?
77. Describe the TDD cycle.
78. How does a local variable differ from an instance variable when empty?
79. What is a .erb file?
80. What's the best way to describe an object in Ruby?
81. What is a Class?
82. What kind of object is "@title" and what is special about it in Rails?
83. What does the routes.rb file do with "get pages/home"?
84. Describe a "symbol" in Rails?
85. What is the status code for "success" when throwing a GET?
86. What is the command to print to the screen?
87. What is the main benefit that a Class gets by inheritance from ApplicationController?
88. Name two ways to indicate a "block" in Rails
89. What is an integration test?
90. What is the most special aspect of nil?
91. What is the /spec directory in rails?
92. What's the difference between a hash and an array?
93. What is a controller?
94. how do you define a "status" parameter (within a "tweet" parameter)?
95. how do you check the logged in user's id?
96. let's say you have a method...
97. How to includes all java script?
98. what do you use to send messages to the user?
99. how includes all style sheet files?
100.how do you make sure your forms don't get hacked?

0 comments: