Skip to content
The Lumenary

Practice · Grades 6–8

Functions

Functions

Warm-upHuman

Let A={1,2,3}A = \{1, 2, 3\} and B={a,b}B = \{a, b\}. Which of these rules is a function from AA to BB?

Choose one

Functions

CoreHuman

How many functions are there from a set with 33 elements to a set with 22 elements?

Functions

CoreHuman

How many injective functions are there from a 2-element set to a 4-element set?

Functions

CoreHuman

Which of these functions Z→Z\Z \to \Z are surjective? (Choose all that apply.)

Choose all that apply

Functions

StretchHuman

A school has 400 students. Why must at least two of them share a birthday (day and month)?

Choose one

Functions

StretchComputational

A finite function can be stored as a Python dictionary, e.g. {1: 'a', 2: 'b', 3: 'a'}. Write is_injective(f) returning True exactly when no two keys have the same value.

Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.