Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save VeeAndrade/3a0b7fb9dd6479a14d165638f54d829e to your computer and use it in GitHub Desktop.

Select an option

Save VeeAndrade/3a0b7fb9dd6479a14d165638f54d829e 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 ___ total minutes.

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.

Googling

[Need ideas]

Documentation

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. If you're reading the documentation and come across terminology or examples that don't make sense, Google!

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

Your answer:

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

Your answer:

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

Your answer:

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

Your answer:

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

Your answer:

Data Types

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:

Iteration

  • 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.

  • 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.

@damwhit
Copy link

damwhit commented Jul 24, 2019

@VeeAndrade, overall good work on this. For the data types section, I'd love to see some examples of the data type values. Also, for the iteration section, make sure to start with collection, and perform an operation for each item in the collection.

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