VOCABULARY
TABLE FUNCTIONS
CONTRACTS & CODE
DATA DISPLAYS
MISCELANEOUS
100

4 types of data that Pyret understands.

What are NUMBERS, "STRINGS", BOOLEANS AND IMAGES.

100

A vertical arrangement of data in a table.

What is a column?

100

The values that a function takes in is called the ______________ and the values that it produces is called the ___________.

For the pie chart function, it's TABLE, COLUMN and then IMAGE.

What are the DOMAIN and RANGE?

100

Tell pyret to tell you what is in the pct-obese column for the row defined as BX.

BX["pct-obese"]

100

Define (give a nickname to) a solid, green triangle of size 30 pixel as gt.

gt = triangle(30, solid, "green")

200

A programming language that allows us to communicate with the computer.

What is pyret?

200

The code you would write if you wanted to know how many quarterbacks (QB) are in the "position" column of the NFL-table.

What is count(NFL-table, "position")?

200

It's like a verb, something the computer does. It takes in values and produces an output.

What is a FUNCTION?

200

Using the countries table, write the code to create a scatter plot that explores the correlation between the gdp of a country (explanatory variable) and the median life expectancy of that country(response variable). Label the points with the country name.

scatter-plot(countries-table, "gdp", "median-life-expectancy", "country")

200

The error in this code:

rhombus(100, 45, outline, pink)

What is the strings are missing quotation marks?

300

Zip Code, Species, Fixed, Gender, Sneaker Brand are this type of data

What is Categorical Data?

300

The code that will put the NBA-Table in order from oldest to youngest player.

What is sort(NBA-Table, "Age", false)?

300

The Domain of the radial-star function


What is Number, Number, Number, String, String?

300

The slope of this line is ______________.

For every cm increase in arm span, we expect a ____________ cm increase/decrease  in height. 


0.95

300

The definition of a function called name-color, which makes an image of your name at size 50 in whatever color is given.

fun name-color(color): text("yourname", 50, color) end

400

Values that MEASURE how much of something there is are called ___________, while values that DESCRIBE something with a name or label are called ____________________.

What are QUANTITATIVE DATA and CATEGORICAL DATA?

400

The code to find the first three rows of the animals-table listed in alphabetical order by name.

What is first-n-rows(sort(animals-table, "name", true), 3)?

400

The code for a blue cylinder with a width of 10 and a height of 25.



400

The definition of a function called species-tag, which takes in a row from the Animals-table and draws its species in red, 15px letters.


fun species-tag(r): text(r["species"], 15, "red") end

400

Define a function called days-to-adopt that will look in every row and turn the number of weeks it takes an animal to get adopted into days.

fun days-to-adopt(r): r["weeks"] * 7 end

500

A statement of the name, domain, and range of a function for computers to read so they can create an output

What is a CONTRACT?

500

The column with Booleans


What is ProBowl?

500

It's the code to rotate a 60 pixel, solid, red triangle 45 degrees. 

The contract for a rotate is

#rotate :: (Number, Image) --> Image

The contract for triangle is 

#triangle :: (Number, String, String) --> Image

What is rotate(45, triangle(60, "solid", "red"))?

500

How many centimeters tall do we expect a person with an arm span of 210 centimeters?

0.95(210) + 9.4 = 208.9 cm

500

When doing a linear regression, the correlation coefficient, r, tells us....

How spread out the data points are

How closely correlated the variables are

How confident we can be in our predictions

M
e
n
u