Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 586 Bytes

questions.md

File metadata and controls

17 lines (9 loc) · 586 Bytes

Day 2 Questions

  1. Create an array containing the following strings: "zebra", "giraffe", "elephant".

  2. Save the array you created above to a variable animals.

  3. Using the array animals, how would you access "giraffe"?

  4. How would you add "lion" to the animals array?

  5. Name and describe two additional array methods:

  6. What are the boolean values in Ruby?

  7. In Ruby, how would you evaluate if 2 is equal to 25? What is the result of this evaluation?

  8. In Ruby, how would you evaluate if 25 is greater than 2? What is the result of this evaluation?