Step-by-step explanation:
A.) Since Light doesn't bend until travelling through a different transparent medium, hence it won't pass when any opaque object is placed in front of it. Rubber tube being curved and opaque,won't let light pass through it.
B.) Since light always travels in a straight line, when tube is kept straight,there is a way for it to pass and the student can see it.