126k views
5 votes
Which is the binary representative of the number 42?

A) 10101
B) 101010
C) 1110
D) 101100

1 Answer

3 votes

Final answer:

The binary representation of the number 42 is 101010.

Step-by-step explanation:

The binary representation of the number 42 is 101010.

To convert a decimal number to binary, we divide the number by 2 repeatedly and record the remainder at each step. Starting with 42, we divide by 2 to get a quotient of 21 and a remainder of 0. We divide 21 by 2 to get a quotient of 10 and a remainder of 1. We divide 10 by 2 to get a quotient of 5 and a remainder of 0. We divide 5 by 2 to get a quotient of 2 and a remainder of 1. Finally, we divide 2 by 2 to get a quotient of 1 and a remainder of 0. The binary representation of 42 is the sequence of remainders read in reverse order, which gives us 101010.

User Gluecks
by
7.6k points