Also, there are many tough problems in the assignments, it’d be great if we could see explanations too rather than just the correct option
What's the formula used for Gini measure?
Hey @samriddhijain2000, yes i do agree the assignment problems, are little tough, but give it a try and if unable to do so, you are open to ask as many doubts as you can.
Now for the formula of gini index, it would be better if I explain it with an example.
Suppose this is the given dataset,
Age Gender Target
Old Male Yes
Old Male Yes
Young Female No
Young Female No
Young Male No
Formula to calculated gini index = 1-Sigma(1,n) (pj)
here is how to proceed,
Now we will select to split on the features ‘age’ as it has minimum overall gini measure.
Hope this resolved your doubt, how to calculate gini index.
Happy Learning
and plz mark the doubt as resolved in my doubts section. 
