It would have to be both, or the university may well have a policy that recognises a subsequent result as a pass in gpa terms, no matter the actual result. You would be best to ask the admin at your institution.
Both, unless you're good and switch degrees that are slightly different but the same in which case they would transfer only successful subjects. Like if you did a BCommerce and failed a heap, transfer over to a BBusiness with similar majors and transfer your good marks across :uhhuh: Of course this would depend on the uni and how similar their offerings are.