Open the Table Functions Starter File on your computer, save a copy, and click "Run".

1 What is the name of the Table defined on line 5?

2 How many columns does it have?

3 What is the name of the Row defined on line 17?

4 Is red-circle a Number, String, Image, Boolean, Table, or Row?

5 Type red-circle into the Interactions Area. What do you get?

6 In the space provided on lines 19 and 20, add new definitions for two more Rows from this table.

7 A Contract for a function is written on line 22. What is its name?

8 What is its Domain?

9 What is its Range?

10 What other functions are defined in the starter file?

11 Use the function is-red, passing in a Row. For example, type is-red(blue-triangle). What do you get?

12 What does the is-red function do?

For the remaining functions, read the code and try to guess what it does before testing it out by passing in a Row.

13 What does is-polygon do?

14 What does lookup-name do?

15 What does is-triangle do?

16 Define two new functions: is-green and is-blue.

There is a hidden function called draw-shape. What is its Domain and Range? What does it do?

Is there another way to define is-polygon, so that it doesn’t use the "polygon" column at all?

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927). CCbadge Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.