Passing gate Is not tough and many students do that. The cutoffs each year varies like 2019 had High cuttoffs than 2018 and so you should not go with marks. Gate is an exam where if you want to get psu then your rank should be under 400 minimum and for Mtech from iits around 1000 is required. Now if you get 40 marks then you may qualify gate but you won't get anything good and so I will not recommend you to just pass by Cutoff have marks more than 65 atleast so that you will have better options.
Check about GATE
It depends on various parameters like your branch , category, difficult level of GATE exam etc but anyways below the link is given through which you can be able to go with the cuttoff analysis of the GATE .
All the best