This example tests for operators understanding. Here we have to see the nature of post increment operator.
Post increment operator increments the value of variable after evaluation.
and also we have one intializer block which is called whenever a new object of class Twisty is created. This block initialize the instance variable index by 1.
so here we have dd[index++][index++]
initially we have index=1
so dd[1][index ++] and now index =2 as we are using post increment operator.
then dd[1][2] and now index=3 as we are using post increment operator.
We have,
int [][] dd = {{9,8,7}, {6,5,4}, {3,2,1,0}};
so dd[1][2] =4
so correct option is C which is 4