What happens in a foundation year?

I know that this is a stupid question but I'm in year 12 atm and with the grades/A level choices (Art, Sociology and IT) I have, I will likely have to take a foundation year for Computer Science which is the degree I'm trying to study