Answer
$2^{n}$ functions
Work Step by Step
The domain of the function contain n elements .
The co domain of the function contain 2 elements .
For any function each element in domain must have either of the 2 images so we have total number of functions = 2$\times$2....(n times) = $2^{n}$