The function is defines such that there is exactly one output for every one input.
So from the option it can be observd that,
In option (B) output is same for every different input. So option B is not a function.
In option D, there are four different outputs for every input 0 and 1, so option D is also not a function.
So correct answer is option B and option D.