CommencerCommencer gratuitement

Binary to decimal position

When converting the binary number "0100" to its decimal equivalent, each digit is multiplied by 2 raised to the power of its position index, starting from 0 at the rightmost digit. For the '1' digit in "0100", what is the exponent "a" in the expression 1 x 2^a?

Cet exercice fait partie du cours

Concepts in Computer Science

Afficher le cours

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice