The simplest way to check CentOS version is like below:

$ cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)