Kablow!

Binary numbers and conversion

Aprenda jogando

Responda a estas perguntas para ganhar energia, depois pesque e explore. Sem precisar de conta.

Para educadores: slides de aula, resumos de revisão prontos para usar de Binary numbers and conversion (Computer Science, Data Representation) — use na sua aula ou rode o tópico como atividade interativa de turma que seus aprendizes jogam como um jogo ao vivo.

Notas de aula

Why binary?

  • Digital circuits reliably distinguish two logic levels, represented as 0 and 1. Patterns of bits can encode numbers, text, images and sound.
  • The on/off switch picture is a simple model; actual logic levels correspond to defined voltage ranges.

Two logic states

Two logic states

Units

  • A bit is one binary digit; a nibble is four bits and a byte is eight.
  • Using decimal prefixes: kB = 1,000 bytes, MB = 1,000,000 bytes, and each larger SI prefix is a factor of 1,000. Binary prefixes KiB, MiB and GiB instead use factors of 1,024.

Place values (8-bit)

  • 128, 64, 32, 16, 8, 4, 2, 1.

Reading unsigned 1011

Reading unsigned 1011Place valueBit in 00001011Contribution12800640032001600818400212111

Converting binary to denary

  • Add the place values where there is a 1. 1011 = 8 + 2 + 1 = 11. 11001010 = 128 + 64 + 8 + 2 = 202.

Converting denary to binary

  • Subtract place values or divide by 2. 13 = 8 + 4 + 1 = 1101. Pad with zeros to 8 bits: 00001101.

Range

  • n bits can store 2n different values: 8 bits → 256 (0 to 255); 16 bits → 65,536.

Patterns and unsigned range

Patterns and unsigned rangeBits nPatterns: 2^nUnsigned values120 to 14160 to 1582560 to 25516655360 to 65535

Uses

  • Understanding binary is needed for storage, networking and data representation.

Slides

Sign up free to view the lesson slides

Step through every slide for this topic — plus flashcards and revision notes — with a free account.

Questões de prática

Prévia grátis — 8 de 34 perguntas. Cadastre-se para ver todas.
  1. 1.What is a bit?

    Easy
    • Aa binary digit
    • Ba byte
    • Ca number
    • Da letter
  2. 2.How many bits are in a byte?

    Easy
    • A8
    • B4
    • C16
    • D2
  3. 3.How many bits are in a nibble?

    Easy
    • A4
    • B8
    • C2
    • D16
  4. 4.How many different values can 8 bits store?

    Easy
    • A256
    • B255
    • C128
    • D8
  5. 5.What is the largest unsigned eight-bit integer?

    Easy
    • A255
    • B256
    • C128
    • D127
  6. 6.What is 0101 in denary?

    Easy
    • A5
    • B3
    • C7
    • D10
  7. 7.What is 1111 in denary?

    Easy
    • A15
    • B16
    • C8
    • D14
  8. 8.What is unsigned binary 10000000 in denary?

    Easy
    • A128
    • B64
    • C255
    • D256

Unlock all 34 questions & more

Crie uma conta grátis para ver todas as perguntas, os slides, flashcards e resumos de revisão deste tópico.

Provas anteriores

A prática com provas anteriores deste tópico chega em breve.
Em breve