You won't.
by being cool.
It is hard to keep a computer system from being hacked... Therefore to help prevent a computer from being hacked is to have an up to date virus protection installed and to avoid untrusted websites. One incredibly easy way of never getting hacked it to never connect the computer to the Internet or any devices like USB's and online security apps such CM and Logdog
Your computer crashes or freezes
Don't tell your passwords even to your best friends
E-Safety rules are rules for working safely in the computer networked environment. They are designed to keep information safe and prevent computers from being hacked or infected with viruses or worms.
I hacked your computer
no
To prevent getting hacked, keep all the login info (email, password..) to yourself
You can't avoid hacked games but the easiest way to prevent them is by being with a group of friends so that not as many people can join.
Get your computer cleaned.
To prevent virus in computer you can use some antivirus apps and being very careful about clickable links.