- screenshots of scores will be posted in comments
- see screenshots below.
- screenshots of completed sections will be posted in comments
- see screenshots below.
This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.
For these questions, write a short snippet of code that meets the requirement. Fill in your answers on a second sheet of paper or in your notebook. In cases where the question mentions a "given"
This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.
When complete, fill out this form.
For these questions, write a short snippet of code that meets
the requirement. In cases where the question mentions a "given"
data value, use the variable given
to refer to it (instead of re-writing
What do we mean when we talk about a variable's "scope"?
a variable's scope is defined by where it is accessed, such as on a global, instance, or class level.
Given the following code, what does the program output?
def combine_variables(x)
puts "inner x is: #{x}"
puts "and outer b is: #{b}"
This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.
For these questions, write a short description or snippet of code that meets
the requirement. In cases where the question mentions a "given"
data value, use the variable given
to refer to it (instead of re-writing
the information).
license: gpl-3.0 |