After being given a sprite icon to thank her for her assistance in dealing with the collapse of Mainframe, Hexadecimal gets restored along the rest of the city when the user uses a backup image of Mainframe. Just like in real life, your viruses get restored if they were included in your system backup data!
Hexadecimal's attitude towards Bob makes a lot more sense when you consider that Kilobyte overheard his talk with Dixon before he upgraded. Hex knows Bob has no hostile intentions towards her so as long as he's not directly interfering in her plans she's perfectly happy to see him and even develops a crush on him, likely due to his own chaotic nature. Megabyte's behaviour also makes a lot of sense with this in mind, he knows Bob won't try to delete him unless he has to so his attempts to gain power are slow and subtle with the occasional grab at immense power, so Bob won't take extreme action until it's too late to stop him. Once Bob and the other Guardians were locked out of Mainframe he drops the subtle plans and goes all out.
After all these years it's only just occurred to me that Bob isn't Megabyte's foil, Dot is. Bob is Hexadecimals foil! Megabyte and Dot are both geniuses who plan and counter plan for control over Mainframe. Hex and Bob both fly by the seat of their pants and make things up as they go along. Both pairs also make excellent teams and are much less effective on their own! This is also why Mainframe wasn't completely screwed when they lost Bob, Megabyte had restrained Hexadecimal so the only threat they had to worry about was the one Dot was most suited to counter and she managed it perfectly until Hexadecimal broke free, interfered, and caught them all off guard.
In the Pantsu Hebi X game with Matrix and Bob, Bob gets pretty angry at Matrix and yells,"Matrix! stop trying to hit him and HIT HIM!" He then takes a moment to calm himself down. This seems a odd to hear from Bob. Then in the penultimate episode, we find out that this Bob is actually Megabyte pretending to be Bob.
When Matrix is infected by Daemon, Little Enzo has Frisket bite his hand to hold him in place. When Matrix begins to threaten Frisket, Little Enzo asks him if he will shoot the dog, something which happened in the first episode of season three when the user shot Frisket in an "Evil Dead" type of game, an event that made Enzo (who would later become Matrix) so upset, he had to be carried away from the injured Frisket by Dot. Surely the thought of shooting one's beloved dog would be hard for anyone to bear, but to consider the thought of shooting one's dog after the dog had already been shot once before, and to have been deeply upset by that past event, would certainly have a greater impact.
ReBoot. When the User wins a game, a sector of the system is destroyed and anyone unfortunate enough to be there gets turned into little sluglike nulls. Now imagine Mainframe is that computer that you play your video games on all the time and always win.
Or for that matter, the game designers. Assuming their world is like ours, these things get play-tested; they know winning screws up the machine. Every game is Lose/Lose!
How AndrAIa came to be part of the show. In order to stay with Enzo outside of the game, she put a copy of herself on his PID that would leave with him. A COPY. This means that the AndrAIa we see throughout the series is really just a "clone", and that the "real" AndrAIa is still in the game, alone, without friends or her love. Now we know why she says goodbye just before the game ends...
This one gets even worse. Later its revealed that Games use Year Inside, Hour Outside, which gives Enzo a level in badass during a Time Skip. This means that the original AndrAIa aged faster than the copy. She probably died of old age before Season 4.
Or she got fragged by a user, considering a gamer's mindset when they shoot at things, she's probably like a goomba from Mario to most users. if the game doesn't simply restart like some real games. in which case, she's probably trapped in endless war with a user, without friends. forever.
Maybe this is why Wreck It Ralph has the death outside your game is Permanent rule. Consider the episode AndrAIa: She attaches her Icon to Enzo's. While this is a backup, once the game ends, the original dies: with no icon, it has no data to restore her with. She removed herself from her Game's code. The arcade characters may have heard stories of the PC Game Sprite who ripped herself from her game's code. As Arcade characters they'd have no reason to know of backups in an adopted home system. A less horrible version is that it backed up her data on her Icon before it released her thinking she was Enzo (supported by the Wiki), but she still removed herself from her game's code.
What AndrAIa and Frisket did to the infected Guardians becomes Fridge Horror when you realize the Guardians weren't in control of their bodies, so they basically slaughtered and viciously mangled innocent people. Our heroes, ladies and gentlemen.
The alternative was to leave the infected Guardians to slaughter and mangle other innocent people, ones who weren't a threat. There's a trope for that.
AndrAIa is a Game Sprite. Killing things that attack her is her function, it's part of her code, she can't go against it.
Bob mentioned in his lecture on game sprites that there are Artificially Intelligent Game Sprites that can learn and adapt. Pretty sure AndrAIa can learn these sorts of things. Something I forget, though, is whether or not she knew about the infection at the time? Didn't Turbo only reveal it in secret?
Turbo was telling Matrix about the infection while AndrAIa took out the last of the Guardians hunting them. And while AndrAIa is an AI Game Sprite who will learn and adapt she still can't go against her code, nobody in the series can.
The issue of whether you can act outside your Code is a big debate in universe. Generally it seems to be assumed that you can't, but because Matrix, Bob, and Hexidecimal clearly did it's become less iron clad.
They never acted outside their Code. Their specific methods vary but they're always following the same goals that they always have. Granted, it's a bit unclear how much wiggle room they have due to free will and few characters really have their functions laid out for us but those that have are always consistent.
One thing that is clear is that code can be changed. Bob downloads his own code into Enzo's icon. Matrix's renegade stint, you could argue that he's still pursuing Guardian protocol, though with a bit too much fanaticism. Then again, we're back to the question of wiggle room on reaction to other programs.
Live Null Juggling. There's a reason Dot says she thought it was banned. You're not juggling just any digital creature, you're juggling creatures that used to be people.