Right answer is (b) She has placed a semicolon at the end of the line which computes the desired values
To explain: If we write a function file, we should not put a semicolon at the line which computes a value. This will lead to the passing of cursor to the next line after the function is implemented without showing any output. So it was good that the teacher scolded her.