Kablow!

Text, images and sound

플레이하며 배우기

이 문제들을 풀어 에너지를 얻은 뒤 낚시하고 탐험하세요. 계정이 필요 없어요.

교육자를 위해: Text, images and sound(Computer Science, Data Representation)을(를) 위한 바로 쓸 수 있는 수업 슬라이드, 복습 노트 — 수업에 사용하거나, 학습자들이 실시간 게임으로 즐기는 인터랙티브 클래스 활동으로 진행하세요.

수업 노트

Text

  • Character sets map characters to codes. Original ASCII defines 128 codes using seven bits; text files often store each ASCII character in a full byte. A = 65, a = 97 and 0 = 48.
  • Unicode covers many writing systems and emoji. Its encodings differ: UTF-8 uses one to four bytes per code point and preserves ASCII-range byte values; UTF-16 uses one or two 16-bit code units.
  • Text size depends on the encoding and actual characters. A fixed characters × bits-per-character calculation needs an explicit fixed-width assumption and excludes headers or compression.

Unicode character representation

Unicode character representation

Images

  • A bitmap is a grid of pixels. Pixel dimensions are width × height; colour depth is bits per pixel, allowing up to 2depth possible pixel values.
  • Raw pixel-data size = width × height × colour depth. At 100 × 100 and eight bits per pixel, this is 80,000 bits = 10,000 bytes.
  • Headers, metadata, padding and compression can change the stored file size. More bits allow more possible colours but cannot recreate absent source detail.

Colour depth and available shades

Colour depth and available shades

Sound

  • Sampling measures an analogue signal at regular intervals; quantisation represents each measured amplitude using an available discrete level. Sample rate is samples per second, and bit depth is bits per sample.
  • Raw PCM size in bits = sample rate × bit depth × duration × channels, excluding headers and compression. Mono audio at 44,100 Hz, 16 bits and ten seconds needs 7,056,000 bits = 882,000 bytes.
  • Higher sample rate can capture higher-frequency detail, and greater bit depth permits finer amplitude precision. Neither guarantees audible improvement for every source.

Illustrative 2-bit samples

Illustrative 2-bit samplesTime (ms)MeasuredNearest level2-bit code00.120.0000010.410.3330120.720.6671030.931.0001140.580.6671050.270.33301

Trade-offs

  • Quality versus file size, storage and transmission.

슬라이드

Sign up free to view the lesson slides

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

연습 문제

무료 미리 보기 — 33개 중 8개 문제. 가입하면 전부 볼 수 있어요.
  1. 1.What is a pixel in a bitmap image?

    Easy
    • Athe smallest element of an image
    • Ba sound sample
    • Ca character
    • Da byte
  2. 2.What is ASCII?

    Easy
    • Aa character set using 7 bits
    • Ban image format
    • Ca sound format
    • Da compression type
  3. 3.What do bitmap pixel dimensions specify?

    Easy
    • Athe number of pixels in width by height
    • Bthe bits per pixel
    • Cthe number of colours
    • Dthe sample rate
  4. 4.What is colour depth?

    Easy
    • Anumber of bits used per pixel
    • Bthe width
    • Cthe file size
    • Dthe sample rate
  5. 5.What is sample rate?

    Easy
    • Athe number of samples per second
    • Bbits per sample
    • Cnumber of channels
    • Dlength
  6. 6.What is the maximum number of distinct pixel values at eight bits per pixel?

    Easy
    • A256
    • B8
    • C128
    • D65,536
  7. 7.Ignoring compression and headers, how many bytes of pixel data are in a 100 × 100 bitmap at eight bits per pixel?

    Easy
    • A10,000
    • B80,000
    • C1,000
    • D100
  8. 8.What is the ASCII code for A?

    Easy
    • A65
    • B97
    • C1
    • D48

Unlock all 33 questions & more

무료 계정을 만들어 이 주제의 모든 문제, 슬라이드, 플래시카드, 복습 노트를 확인하세요.

기출 문제

이 주제의 기출 문제 연습이 곧 나와요.
곧 출시