Google search engine consists of automated programs called spiders. The “spiders” discover new pages to be added to Google’s Index of web pages. There are millions of pages indexed in Google’s database, so they have to have good optimization methods to put into their code and make it so that each index takes up as little space as possible. Most of their code is written in C++, Java, and Python, which are the most common programming languages.
After that long process Google will then assign the page a relevancy score. So if your score is higher the higher up your page will be ranked higher on search results.