It was directed by Danny Boyle and based on the novel Q&A by Vikas Swarup , although the movie is very different from the book .
It is an adaptation of the novel Q & A ( 2005 ) by Indian author and diplomat Vikas Swarup .