Kablow!

Binary numbers and conversion

Học bằng cách chơi

Trả lời những câu hỏi này để kiếm năng lượng, rồi câu cá và khám phá. Không cần tài khoản.

Dành cho nhà giáo dục: slide bài học, ghi chú ôn tập sẵn dùng cho Binary numbers and conversion (Computer Science, Data Representation) — dùng trong bài giảng của bạn, hoặc chạy chủ đề như một hoạt động lớp học tương tác để người học chơi như một trò chơi trực tiếp.

Ghi chú bài học

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.

Slide

Sign up free to view the lesson slides

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

Câu hỏi luyện tập

Xem trước miễn phí — 8 trên 34 câu hỏi. Đăng ký để xem tất cả.
  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

Tạo tài khoản miễn phí để xem mọi câu hỏi, slide, thẻ ghi nhớ và ghi chú ôn tập cho chủ đề này.

Đề thi cũ

Luyện đề thi cũ cho chủ đề này sắp ra mắt.
Sắp ra mắt