Skip to content

Instantly share code, notes, and snippets.

@damwhit
Forked from rwarbelow/mod_0_session_2_practice_tasks.md
Last active September 8, 2020 01:44
Show Gist options
  • Save damwhit/530e018e30a94145ad1bb5f7f0f4854b to your computer and use it in GitHub Desktop.
Save damwhit/530e018e30a94145ad1bb5f7f0f4854b to your computer and use it in GitHub Desktop.
Mod 0 Session 1 Practice Tasks

Session 1 Practice Tasks

The assignments listed here should take you approximately 40 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.

1. Documentation and Googling (20 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 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?

2. Data Types (20 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. Try practicing variable assignment in this exercise.

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

3. Questions/Comments/Confusions

If you have any questions, comments, or confusions from the any of the readings that you would like an instructor to address, list them below:

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