B differs from A in only 4 places, and has 4 fewer correct answers, so in those places we know A is correct:
2 is false, 4 true, 9 true, 10 false.
We can remove these rows from the table and adjust the totals on the remaining questions:
A B C D
1 T T F F
3 F F T T
5 T T T F
6 F F F T
7 T T T T
8 F F T T
TP 4 4 5 ?-2
C and A differ in 3 places (1,3,8); A is correct for one of them, and C is correct for two of them, as this is the only way to account for the difference in their scores on the sub-exam. D agrees with C for all three of these, so D is also correct for two of (1,3,8). We know that 5 is true, 6 false, and 7 true, so D gets 1 point from these three questions as well.
D has 3 total questions correct on this sub-exam, and so D has a total score of 5 on the test.