I actually have an amusing anecdote there. In one lower level class the professor ended up asking about how to convert a lower case string to an upper case one, or vice versa. I immediately chimed in with the right answer - you flip the 5th bit. This is literally how ASCII was intentionally designed. Capital and lower start at 65, and are separated by 32, so changing the case is a single bitflip. The same even works in unicode english characters where they're still separated by 32, though in this case it was not a unicode input string anyhow.
He just about lost his shit trying to mock me and my 'inelegant hacky solutions' in front of everybody. It didn't bother me in the least because I knew I was right, but later (perhaps after he looked it up?) he actually went out of his way to find me outside of class and sincerely apologize. I just found it all pretty amusing. But if anything it really emphasizes the overly embraced gulf between theory and practice at higher tier institutions, or at least mine. And FWIW this was an algorithms class which should ostensibly be 100% about practical application.