Right next to ctrl+q (something I end up hitting once per session of an app, by definition) is ctrl+a (select all, something I hit tens of times a session), ctrl+w (hit in the browser a good amount), ctrl+1, ctrl+2 (also good browser shortcuts)
I actually don’t need to close the entire program that often! Please don’t make it so easy to accidentally hit at such a high frequency. Bonus points: I switch between QWERTY and AZERTY keyboards a lot. That’s just me but it makes me have a lot of extra pain
Alt-F4 is very nice in that regard.
Ctrl+F4 is a shortcut that closes the current child window/tab. For apps with tabs, this was often duplicated as Ctrl+W.
There's no standard shortcut for exit. I believe that this is deliberate, to avoid people hitting it accidentally. However, the accelerator keys to do it via the File menu are always Alt+F ("File") -> X ("eXit").
These are all platform UX guidelines, or at least they were back in the day. Of course, apps can and did ignore them, but that was also possible on macOS.