Q is a Hunter. His family was killed by a werewolf when he was five. He saw it happen and just before it was going to kill him, Bobby Singer showed up. He killed it. Q was never the same, so he started looking into the supernatural and Bobby tutored him. At 14, he started Hunting. Then, he found out he was great at hacking. The two made a dangerous combonation. MI6 got wind of his hacking. Then, the deaths that seemed to follow him. Needless to say, they conected the dots and thought he was a serial killer that killed other killers. Not the best assumtion and not the worst. They offered him a job in exchage for imunity from the deaths. Ever since then, he's asked other Hunters to do the jobs he finds. Then, James Bond goes and finds a demon to fight, who happend to have a bone to pick with him. Q and Moneypenny weren't wrong when they said the that Ernst Stavro Blofeld was dead. He died in the avalanche after starting it. His soul went to Hell and then came back.