The table t below represents four animals from the shelter:

name sex age fixed pounds

"Toggle"

"female"

3

true

48

"Fritz"

"male"

4

true

92

"Nori"

"female"

6

true

35.3

"Maple"

"female"

3

true

51.6

Match each Circle of Evaluation (left) to the description of what it does (right). Note: one description might match multiple expressions!

(sort t kilos ascending)

1

A

Produces a table containing Toggle, Nori and Maple, with an extra column showing their weight in kilograms

(build-column (filter t sex= "female") "kilos" pounds/2.2)

2

B

Produces a table containing Maple, Nori and Toggle (in that order)

(filter (build-column t "kilos" pounds/2.2) kilos>25)

3

C

Produces a table with an extra column for kilos, but only rows with more than 25 kilos

(build-column (filter t kilos>25) "kilos" pounds/2.2)

4

D

Won’t run: will produce an error (if so, why?)

(sort (filter (build-column t "kilos" pounds/2.2) kilos>25) "sex" ascending)

5

E

Produces a table containing only Fritz, with two extra columns.

(filter (build-column (build-column t "female" sex= "female") "kilos" pounds/2.2) kilos>25)

6

G

Produces a table containing Maple and Fritz.

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.