Heat generated in a resistive wire is:
1. proportional to the square of the time of current flow
2. proportional to the square of the current flowing in the wire
3. proportional to the square of the resistance of the wire
4. proportional to the cube of the resistance of the wire