If the digits in ones place of number is 2, then the ending digits of its cube will be:
Given, the units digit of the number is 2.
We know, the cube of 2, i.e. 23=8, whose units place is 8.
Therefore, the units digit of the required cube is 8.
Hence, option D is correct.