Match the code on the left to the contract error on the right. If you get stuck, try typing the expression into the editor and see what happens!

Code What’s the error?

num-expt​(​1, "2"​)

1

A

arguments are used in the wrong order

(​3 > 0​) and (​1 + 2​)

2

B

too many arguments are given

"true" or "false"

3

C

the function/operator requires input types to match

string-length​(​52​)

4

D

Boolean and number are used in place of 2 Booleans

rectangle​(​"solid", "blue", 6, 7​)

5

E

strings are used in place of Booleans

circle​(​20, "red"​)

6

F

the function is looking for a string and none is given

star​(​20, 50, "solid", "red"​)

7

G

some arguments are missing

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.