If you cheat on an important test, such as the SATs, you will get the test taken away and get your score canceled.
If it's on a smaller test for a class, usually the teacher just takes the test away and gives you a 0. Some teachers send you to the principal or detention.