1.
Is the following Ruby code valid:
class MyClass
def my_method
MY_CONSTANT = "hello"
end
end
2.
The %r syntax _____________________ in Ruby.
3.
In Ruby, _____________ is the superclass of class.
4.
In Ruby, a bang ! at the end of a method indicates that _______________________________.
5.
In Ruby, what must be done before invoking an UnboundMethod object?
6.
An object that is similar to #collect in Ruby is ________________.
7.
In MRI, which of these objects are not subject to garbage collection?
8.
Class methods are inherited in Ruby.
9.
Why is the File#expand_path method used in ruby?
10.
In Ruby, which of the following modules is used to obtain the current state of a call stack?