Match the contract (left) with the expression described by the function being used (right).

Contract Expression

# make-id :: String, Number ‑> Image

1

A

make-id​(​"Savannah", "Lopez", 32​)

# make-id :: String, Number, String ‑> Image

2

B

make-id​(​"Pilar", 17​)

# make-id :: String ‑> Image

3

C

make-id​(​"Akemi", 39, "red"​)

# make-id :: String, String ‑> Image

4

D

make-id​(​"Raïssa", "McCracken"​)

# make-id :: String, String, Number ‑> Image

5

E

make-id​(​"von Einsiedel"​)

 

Contract Expression

# is-capital :: String, String ‑> Boolean

6

A

show-pop​(​"Juneau", "AK", 31848​)

# is-capital :: String, String, String ‑> Boolean

7

B

show-pop​(​"San Juan", 395426​)

# show-pop :: String, Number ‑> Image

8

C

is-capital​(​"Accra", "Ghana"​)

# show-pop :: String, String, Number ‑> Image

9

D

show-pop​(​3751351, "Oklahoma"​)

# show-pop :: Number, String ‑> Number

10

E

is-capital​(​"Albany", "NY", "USA"​)

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). 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.