It still doesn't feel to me that those things are similar. A sit-down exam is a time-limited, high-pressure situation where you're expected to demonstrate proficiency in the things you've learned over the past several months. Sure, much of that learning builds on stuff you've learned previously, but the focus is on the prior semester (or half-semeter, for mid-terms).
When I sit down to debug a complex application, I'm drawing my prior 25+ years of experience. While I certainly would rather fix the problem faster rather than slower, I don't have a time limit, and usually taking my time (or even leaving the problem alone for hours or days) can be more effective than trying to work quickly and get everything done immediate.
The last time I sat for an exam was in 2003, and I honestly have not experienced anything in life since then that feels like that. Even job interviews have not felt similar enough to me to evoke that same feeling. (Frankly, I've enjoyed most job interviews; I don't think I've ever enjoyed an exam.) That's just my experience, of course, but I don't feel like an outlier.