Re: Not in academia
If it's a locked down machine you could provide the language spec and API documentation. You could perhaps print them out if it's a paper test. (Hey ring binders! Now you're talking!)
Lets face it, 50% of programming time* is googling the spec. There is just so much stuff we have to remember that none of us can hold onto it all down to the tiniest detail.
* Humorous exaggeration. Except when I get sucked down some rabbit hole.