Game Programming and use of graphics

Hello! I just want to know that the games we play on Xbox or PlayStation, which language is used to create these games? I heard that different libraries like Open Graphics Library(OpenGL) are used, but is it used in all the games? I also want to know which programming language would be best for simple and basic games with ordinary graphics?
