Menu

[68f1c8]: / data / quiz.xml  Maximize  Restore  History

Download this file

313 lines (313 with data), 11.8 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<quiz>
<question id="1"> What is Ruby programming Language?
<answer attr="false">Its a compiled language based off of Basic.
</answer>
<answer attr="true">Its an interpreted web development language based off of perl, lisp and smalltalk.
</answer>
<answer attr="false">Its a batch scripting language for shell scripts.
</answer>
<answer attr="false">Its a desktop applications language based on perl.
</answer>
</question>
<question id="2">What is git?
<answer attr="false">Its a great iterator template library.
</answer>
<answer attr="false">Its a new web programming language.
</answer>
<answer attr="true">Its a version and revision control system invented for keeping
linux source originally.
</answer>
<answer attr="false">Its a Ruby on Rails programming instruction.
</answer>
</question>
<question id="3">What is Heroku?
<answer attr="true"> It is a server platform and cloud computing service for web app languages such as Ruby and Java.
</answer>
<answer attr="false"> It is a new programming language which is used in combination with Rails.
</answer>
<answer attr="false"> It defines a set of standards for Rails.
</answer>
<answer attr="false"> It is a deployment tool for Rails.
</answer>
</question>
<question id="4">What is the git command for beginning a local git repository?
<answer attr="false"> 'git -m commit "First Commit"'
</answer>
<answer attr="true"> 'git init'
</answer>
<answer attr="false"> 'git -a commit "First Commit"'
</answer>
<answer attr="false"> 'git install'
</answer>
</question>
<question id="5">What must you configure just prior to beginning a local git repository?
<answer attr="false"> Editor to use with git
</answer>
<answer attr="false"> Abbreviated git commands
</answer>
<answer attr="true"> Name and Email address
</answer>
<answer attr="false"> Nothing
</answer>
</question>
<question id="6">What is the git command for altering configurations?
<answer attr="true"> git config --global [variable] [value]
</answer>
<answer attr="false"> git --config global [variable] [value]
</answer>
<answer attr="false"> git cfg --global [variable] [value]
</answer>
<answer attr="false"> git --cfg global [variable] [value]
</answer>
</question>
<question id="7">How do we add files to the local git repository?
<answer attr="true"> git add [files]
</answer>
<answer attr="false"> git -a [files] commit
</answer>
<answer attr="false"> git append [files]
</answer>
<answer attr="false"> git commit [automatically adds new files]
</answer>
</question>
<question id="8">How do we add files to the local git repository?
<answer attr="true"> git add [files]
</answer>
<answer attr="false"> git -a [files] commit
</answer>
<answer attr="false"> git append [files]
</answer>
<answer attr="false"> git commit [automatically adds new files]
</answer>
</question>
<question id="9">How do we add altered file changes to the local repository?
<answer attr="false"> git add [files]
</answer>
<answer attr="true"> git -a [files] commit
</answer>
<answer attr="false"> git append [files]
</answer>
<answer attr="false"> git commit [automatically adds new files]
</answer>
</question>
<question id="10">How do we commit without bringing up a text editor for addition of comment?
<answer attr="false"> git commit "Comment Text Here"
</answer>
<answer attr="false"> git commit -nc
</answer>
<answer attr="false"> git commit skip
</answer>
<answer attr="true"> git commit -m "Comment Text here"
</answer>
</question>
<question id="11">In rails what is the 'bundle' command for?
<answer attr="false"> It bundles up all the source in your current working app.
</answer>
<answer attr="true"> It is for handling gems.
</answer>
<answer attr="false"> It is for handling silver components.
</answer>
<answer attr="false"> It works with the git command.
</answer>
</question>
<question id="12">What does 'bundle install' do?
<answer attr="true"> Makes sure correct gems installed.
</answer>
<answer attr="false"> Makes sure rails is up to date.
</answer>
<answer attr="false"> Creates a new rails app.
</answer>
<answer attr="false"> It finds new gems that were not avail in previous rails version.
</answer>
</question>
<question id="13">What is scaffolding?
<answer attr="false"> Its equipment used to help construction workers build things.
</answer>
<answer attr="false"> It is a special set of gems.
</answer>
<answer attr="true"> Its a ruby rails script for generating web app database source code for the programmer.
</answer>
<answer attr="false"> Its a rails command.
</answer>
</question>
<question id="14">How do I use a saffold in ruby on rails?
<answer attr="false"> rails scaffold generate [name] [data] [data] [data]...
</answer>
<answer attr="true"> rails generate scaffold [name] [data] [data] ...
</answer>
<answer attr="false"> rails generate scaffold [name]
</answer>
<answer attr="false"> rails scaffold [name] [data] ...
</answer>
</question>
<question id="15">After intalling postgresql what next step may be required?
<answer attr="true"> gem install pg
</answer>
<answer attr="false"> rails install pg
</answer>
<answer attr="false"> rails upgrade pg
</answer>
<answer attr="false"> bundle install pg
</answer>
</question>
<question id="16">When starting the rails web app server 'rails s' what folder should you navigate too?
<answer attr="false"> inside the folder which contains all of the web apps
</answer>
<answer attr="false"> the root folder of the hard drive
</answer>
<answer attr="false"> in the public folder of the web app
</answer>
<answer attr="true"> iside the root folder for the webapp under test and development
</answer>
</question>
<question id="17">In ruby, what is a rake?
<answer attr="false"> Its used for cleaning up the rails app folders
</answer>
<answer attr="false"> Its a source beautifier
</answer>
<answer attr="true"> Its a ruby rails script that is similar in function to the make utility in C
</answer>
<answer attr="false"> Its used for repairing your gem file configuration
</answer>
</question>
<question id="18">What does REST mean in ruby web development.
<answer attr="true"> create, read, update and destroy
</answer>
<answer attr="false"> read, erase, start, stop
</answer>
<answer attr="false"> keep it simple stupid
</answer>
<answer attr="false"> take it easy and rest
</answer>
</question>
<question id="19">What one thing is a rails console good for?
<answer attr="false"> editing rails app files
</answer>
<answer attr="false"> comparing rails files
</answer>
<answer attr="false"> adminstrating the database from rails
</answer>
<answer attr="true"> looking at records in the database from command line
</answer>
</question>
<question id="20">What is RSpec?
<answer attr="false"> Its a rails inspection program.
</answer>
<answer attr="false"> Its a specifications editing tool.
</answer>
<answer attr="false"> Its a special rails application used in configurations.
</answer>
<answer attr="true"> Its a test framework for your webb app html pages
</answer>
</question>
<question id="21">What is Guard?
<answer attr="false"> Its a firewall for rails apps.
</answer>
<answer attr="true"> Its a rails script that makes using RSpec easier.
</answer>
<answer attr="false"> Its a guy that stands in a uniform in what is called guard shack at corporations.
</answer>
<answer attr="false"> Its a branch of the US Army.
</answer>
</question>
<question id="22">What is Spork?
<answer attr="false"> Its a plastic utensil that looks like both a spoon and fork.
</answer>
<answer attr="false"> Its a branch of the main repository in a project.
</answer>
<answer attr="false"> In rails its where your computer branches into multiple processes witin the same app.
</answer>
<answer attr="true"> Its a test server for pooling of test threads which speeds up the running of test.
</answer>
</question>
<question id="23">What environment is a rails app run in?
<answer attr="false"> Development
</answer>
<answer attr="false"> Testing
</answer>
<answer attr="false"> Production
</answer>
<answer attr="true"> A, B and C
</answer>
</question>
<question id="24">What is a .rb file?
<answer attr="true"> Its a ruby file which can be executed by the Ruby interpreter
</answer>
<answer attr="false"> Its a ruby configuration file
</answer>
<answer attr="false"> Its a rails configuration file
</answer>
<answer attr="false"> Its a Ruby help file
</answer>
</question>
<question id="25">What is a .erb file?
<answer attr="false"> Its a ruby configuration file
</answer>
<answer attr="true"> Its a rails web app file
</answer>
<answer attr="false"> Its a Ruby help file
</answer>
<answer attr="false"> Its a rails configuration file
</answer>
</question>
<question id="26">What two of three files setup the rails app for running?
<answer attr="false"> config/config.rb and config/inti.rb
</answer>
<answer attr="true"> config/environment.rb and config/boot.rb
</answer>
<answer attr="false"> config/init.rb and config/load.rb
</answer>
<answer attr="false"> config/environment.rb and config/init.rb
</answer>
</question>
<question id="27">What does initializer.rb do?
<answer attr="false"> It sets up the environment for development.
</answer>
<answer attr="false"> It sets up the where the root folders are for the development environment.
</answer>
<answer attr="false"> It sets up the environment for production.
</answer>
<answer attr="true"> It sets up load paths for ruby classes.
</answer>
</question>
<question id="28">What is the startup order for rails?
<answer attr="true"> environment.rb, boot.rb, initializer.rb
</answer>
<answer attr="false"> boot.rb, initializer.rb, enviroment.rb
</answer>
<answer attr="false"> initializer.rb, boot.rb, enviroment.rb
</answer>
<answer attr="false"> boot.rb, enviroment.rb, initializer.rb
</answer>
</question>
<question id="29">What happens when a browser gets a request in a ruby app?
<answer attr="false"> request, dispatcher, controller, view(response)
</answer>
<answer attr="false"> request, dispacther, filter wrapper, controller, filter wrapper, view(repsonse)
</answer>
<answer attr="false"> request, dispatcher, filter, controller, view(response)
</answer>
<answer attr="true"> all of the above
</answer>
</question>
<question id="30">How should files really be sent in rails to a client?
<answer attr="false"> should stream them as a file or as data
</answer>
<answer attr="false"> should put them in the public folder and provide a link
</answer>
<answer attr="true"> should have the server send them
</answer>
<answer attr="false"> any of the above
</answer>
</question>
<question id="30">How does the controller and view communicate in rails?
<answer attr="false"> They share instance variables.
</answer>
<answer attr="true"> The view gets a copy of the instance variables in the controller.
</answer>
<answer attr="false"> They comunicate via the model.
</answer>
<answer attr="false"> They share a communication object.
</answer>
</question>
</quiz>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.