【正确答案】
D
【答案解析】It will be quicker to count the number of valid codes whose transposes are valid codes, and then subtract the result from 31 (the number of valid codes) to obtain the value of N.Three such codes begin with 0: 01,02,03. The rest are such that their transposes are invalid codes.Four such codes begin with 1:10,11,12,13. The rest are such that their transposes are invalid codes.Three such codes begin with 2:20,21,22. The rest are such that their transposes are invalid codes.Two such codes begin with 3: 30,31. The rest are invalid codes.Therefore, the total number of valid codes whose transposes are valid codes is 3 + 4 + 3 + 2 =12, and hence the total number of valid codes whose transposes are not valid is 31 - 12 = 19.The correct answer is D.