How to check the installed CUDA version in Ubuntu?

See also: How did I downgrade CUDA from 10.1 to 10.0 in Ununtu 18.04?