In the world of Battlestar Galactica, artifical intelligence is represented by Cylons, a human-created race of machines, some of whom are built to resemble humans, even to the extent of having synthetic internal organs that look exactly like the human equivalent.
In an interesting twist, some of the Cylons profess to believe in "God." Whether this plot device is supposed to serve as an ironic illustration of just how meticulously the Cylons' have imitated humans for their own nefarious purposes, or serves some other narrative purpose, is irrelevant.
The more interesting question it raises is whether artificial intelligence could possess religious "feelings," and, if so, what would be the origin of those feelings?
Since artificial intelligence arises from programming, it seems plausible that long intervals of time and programming space, and numerous changes in formula from the original, could result in a loss of program "memory". As the program is continuously updated and rewritten, the operational code from which the A.I. sprang could, in time, bear almost no resemblance to the original blueprint that was its antecedent.
In other words, the evolution of the A.I. itself would create a substantial distance, in terms of both time and source code, from its ancestor. It follows that the origin of the program, the A.I.'s "creator," could become lost from the program memory.
In which case the A.I., possessing whatever level of self-awareness it did, would view its own creation with the same degree of mystery or agnosticism with which humans view our origins.
"God," in other words, may just be another word for "programmer" - in our case, the genes whose formula for self-replication was the blueprint for our earliest stages of evolution. In the case of an advanced A.I., "God" would be none other than the human who wrote the program from which the first version of the A.I. was developed.