Minimum Bits for Two States
A program stores a user preference that can be set to one of two states, ‘on’ or ‘off’. What is the minimum number of bits required to represent this preference?
A
2 bits
B
8 bits
C
16 bits
D
1 bit
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | miguel.romo228 | 2 | 2 | 0m 00s | 200 |
| #2 | 1076342 | 2 | 2 | 0m 31s | 169 |
| #3 | deemaattal | 1 | 1 | 0m 00s | 100 |
| #4 | basel.coder | 1 | 1 | 0m 06s | 94 |
| #5 | tianbo.shen | 1 | 1 | 0m 07s | 93 |
| #6 | mandy.teng.mt | 1 | 1 | 0m 08s | 92 |
| #7 | soniahalepota2005 | 1 | 2 | 0m 17s | 73 |
| #8 | spiritgen02 | 0 | 1 | 0m 18s | -28 |
| #9 | david.zhao.2028 | 0 | 1 | 0m 57s | -67 |
Items per page:
10
1 – 9 of 9
APFIVE