• Question: what is an infinite loop?and do you consider a black whole to be one?

    Asked by snowhobbit to Alex, Martin on 8 Nov 2015.
    • Photo: Martin O'Halloran

      Martin O'Halloran answered on 8 Nov 2015:


      These aren’t easy questions snow hobbit 🙂

      In engineering, an infinite loop is a piece of code which the computer will never complete. The computer is really stuck doing the same instruction over and over and will never finish. You rarely use infinite loops in code deliberately, but somethings they occur by mistake. That’s why programmers need to carefully test their software code.

      A black hole is the remains of a collapsed star. They have a really strong gravitational pull (they even pull in light). Because they pull in light instead of reflecting light, we can’t really see black holes (they’re invisible), but we know they’re there because when planets or stars pass close to the black hole, we can see them being pulled by the huge gravitational force.

      If you’d like to learn more about black holes, maybe read some books by Simon Singh. He explains science in a really easy way.

Comments