a We use be going to to make predictions based on some sort of evidence.
b We use will to make a general prediction, often after verbs like think, hope or expect.
c We use will to talk about an objective truth in the future.
d We use be going to to talk about plans or intentions.
e We use will for decisions that we make at the moment of speaking.
Ты справился с заданием! Отличная работа!