Correct Answer : D
Given 0b111101001
. The 0b
preceeding the number indicates that it is a binary integer literal (i.e., base = 2). It is converted to decimal as follows:
1 * 2 ^ 8 + 1 * 2 ^ 7 + 1 * 2 ^ 6 + 1 * 2 ^ 5 + 0 * 2 ^ 4 + 1 * 2 ^ 3 + 0 * 2 ^ 2 + 0 * 2 ^ 1 + 1 * 2 ^ 0
= 256 + 128 + 64 + 32 + 0 + 8 + 0 + 0 + 1
= 489