Quadros do come with professional drivers, which are great for stuff like 3D modeling in software like 3Ds MAX or Maya and god know what more. I can only tell from my own experience, with regular Geforce cards this kind of work can be really painful. Rotating camera around your high poly-count model, zooming in and out, turning wireframe mode....all of that can become pretty slow and stutter like hell, even with high end Geforce. Not to mention jaded edges and blinking surfaces... I never had Quadro, but from my understanding, its meant to deal exactly with this stuff and turn this kind of work into dream.
Now, regarding CUDA stuff, i have no idea whether Quadros have anything over Geforces, which would be helpful for CUDA development - honestly i cant even imagine, what "CUDA development" means :-D. I can however say, for things like iRay, GTX1080 would be vastly superior performance-wise. M4000 seems to be akin to GTX970 based on their equal CUDA core numbers, possibly even slower cause of lesser chip frequency. With Octane Render, which is similar to iRay, M4000 performs like this:
https://render.otoy.com/octanebench/summary_detail_item.php?systemID=1x+Quadro+M4000
55 points on average, actually to my surprise quite a lot worse than gtx 970, which gets 80.
GTX 1080 gets about 140, if you OC to 2-2,1 GHz then you look at 160-170 score. So at least 3x as much.
Since M4000 is based on Maxwell, its probably equally capped at FP64 performance, so it does not even that going for it compared to 1080. Thats just my assumption, though.
All in all, i cant be 100 percent sure, but i would believe 1080 is a better choice.