consider that you got a pc in your lab which do not have compilers like c++ or java. but luckly your pc has a net connection!
just click the link above. you will find an online compiler which supports a lot of programming languages.
So i think you will not say to your sir that “sorry sir, but this pc doesn’t have a compiler installed” 🙂