Kablow!

Binary numbers and conversion

边玩边学

回答这些题目来赚取能量,然后钓鱼探索。无需账号。

给教育者: 面向 Binary numbers and conversion(Computer Science,Data Representation)的即用型课程幻灯片, 复习笔记——用在你的课堂上,或将该知识点作为学习者可实时游玩的互动课堂活动来运行。

课程笔记

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.

幻灯片

Sign up free to view the lesson slides

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

练习题

免费预览——34 题中的 8 题。注册即可查看全部。
  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

创建免费账号,即可查看该知识点的每一道题、幻灯片、闪卡和复习笔记。

历年真题

该知识点的历年真题练习即将推出。
即将推出