RubyonRails |
Level:-Basic
|
Q(1) |
ERB stands for _______. |
A |
Established Ruby |
B |
Embedded Ruby |
C |
Extended Ruby |
D |
None of the above |
Q(2) |
How many types of default environments are given by Rails? |
A |
1 |
B |
2 |
C |
3 |
D |
4 |
Level:-Intermediate
|
Q(1) |
How to create a skeleton for library application? |
A |
tp> rails library |
B |
tp> rails new library |
C |
tp> rails new |
D |
Both A and B |
Q(2) |
Rakefile will be used by rake utility supplied along with the Ruby installation. |
A |
True |
B |
False |
Level:-Expert
|
Q(1) |
Which of the following calls block once for each element in self, passing that element as a parameter?
|
A |
tp> array.each { |item| block } |
B |
tp> array.delete_if { |item| block } |
C |
tp> Both A and B |
D |
None of the Above |
Q(2) |
Which of the following invokes block once for each element of self, replacing the element with the value returned byblock?
|
A |
array.collect! { |item| block } [or] array.map! { |item| block } |
B |
array.sort! [or] array.sort! { | a,b | block }
|
C |
array.collect { |item| block } [or] array.map { |item| block }
|
D |
All of the Above |