Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save timomitchel/3f593f8256d3a3bd7bc6c54f6080e25c to your computer and use it in GitHub Desktop.

Select an option

Save timomitchel/3f593f8256d3a3bd7bc6c54f6080e25c to your computer and use it in GitHub Desktop.
Mod 0 Session 2 Practice Tasks

Session 2 Practice Tasks

The assignments listed here should take you approximately 2 hours.

To start this assignment, click the button in the upper right-hand corner that says Fork. This is now your copy of the document. Click the Edit button when you're ready to start adding your answers. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.

1. Documentation and Googling (75 min)

Documentation of a langauge, framework, or tool is the information that describes its functionality. For this part of the practice tasks, you're going to practice digging into documentation and other reference material.

NOTE: The linked documentation for each question below is a good starting place, but you should also be practicing your Googling skills and sifting through the results to find relevant and helpful sites.

  • In your own words, what does the Ruby array drop method do? As you're explaining, be sure to provide an example.

Your answer:

What did you Google to help you with this task, and how did you pick your results?

  • In your own words, what does the Ruby array push method do? As you're explaining, be sure to provide an example.

Your answer:

What did you Google to help you with this task, and how did you pick your results?

  • In your own words, what does the Ruby string split method do? As you're explaining, be sure to provide an example.

Your answer:

What did you Google to help you with this task, and how did you pick your results?

  • In your own words, what does the JavaScript array slice method do? As you're explaining, be sure to provide an example.

Your answer:

What did you Google to help you with this task, and how did you pick your results?

  • In your own words, what does the JavaScript object values method do? As you're explaining, be sure to provide an example.

Your answer:

What did you Google to help you with this task, and how did you pick your results?

2. Data Types (15 min)

Imagine that you're taking your favorite board game and turning it into a computer-based game.

  • Name of board game: ______

  • Use the space below to categorize game data into each of the following data types. You should have a minimum of two pieces of data for each category.

  1. String data:
  2. Integer and/or float data:
  3. Boolean data:
  4. Array data:
  5. Hash or Object data:

3. Iteration (30 min)

  • On a blank sheet of paper, create a diagram that shows how you understand iteration working. Be detailed and get creative! This should not be the simple table that we used during the lesson. When you're done, take a photo of your diagram and send it to Rachel and Tim on Slack. (If you're feeling extra fancy, feel free to create your diagram using software instead of pencil and paper)

  • Create a list below of three real-life situations where iteration is used. For each situation, explain why it would be an example of iteration.

  • Create a list below of three programming situations where iteration would be used. For each situation, explain why it would be an example of iteration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment