Information & AI guides →

Information & AI · Data and files

Data and files: separate text, table and image rules

Text looks garbled on another device, an address unexpectedly becomes two spreadsheet columns, or a logo covers the background instead of letting it show through. All involve data, but each depends on a different rule. Begin by separating the content you meant to store from the rules the receiving program used to read it.

A file name or an attractive preview does not establish its internal representation. This guide connects characters to bytes, table values to field boundaries, and pixel colors to opacity. The examples help you identify which rule preserves the meaning of a particular piece of data.

Try this topic in a quiz

This opens the setup screen with this subject and topic selected. Check the mode and question count before you start.

Match the encoding before changing the appearance

Character encoding maps character codes to stored byte sequences. A font instead supplies the shapes used to display characters. When text becomes garbled, compare the encoding used to write it with the encoding assumed when reading it. Increasing the font size does not repair an incorrect mapping between bytes and characters.

UTF-8 preserves ASCII characters as single-byte values and can use multiple bytes for other characters. Counting displayed characters is therefore not always a way to count stored bytes. Character identity, visual width and byte length answer different questions; keeping them separate makes file-size and length limits easier to understand.

Keep field boundaries separate from field contents

A CSV comma separates fields, but commas can also belong to an address or place name. Under RFC 4180, the single value Tokyo, Japan is enclosed in double quotes. Quoting lets the receiver distinguish a delimiter from a comma that is part of the value.

Deleting the comma might restore the expected column count while changing the original information. A quoted field can also contain a line break, so one physical line is not always one record. After parsing a table, check its column alignment, character decoding and preserved values as separate parts of a successful exchange.

Read opacity independently of color

PNG pixels can carry alpha information describing opacity in addition to color. Alpha is not another name for image width or a color label. Separating color and opacity explains how two pixels with the same color can interact differently with a background.

Imagine placing a logo over a colored page. A PNG without transparency information has opaque pixels; its format name alone does not make it transparent. Checking the information actually stored, rather than assuming properties from a label, is useful for text and table exchanges as well.

TRY & READ

Check your understanding with examples

Compare the choices before opening the answer and explanation. Reading an example does not save a test answer or score.

Example 1 · Data and files

Which rule maps text characters to byte sequences in a file?

  1. Character encoding
  2. Number of printed copies
  3. Folder sort order
  4. Screen brightness
Read the answer and explanation

Answer: Character encoding

An encoding maps character codes to bytes. Font appearance and display brightness are different concerns.

Sources for this example

  • Unicode UTF FAQ

    General encoding forms, UTF-8/16/32, BOM

    Source checked: 2026-10-05

Example 2 · Data and files

Under RFC 4180, how should a single field containing Tokyo, Japan be written?

  1. Tokyo; Japan
  2. Tokyo Japan
  3. "Tokyo, Japan"
  4. Tokyo, Japan
Read the answer and explanation

Answer: "Tokyo, Japan"

Double quotes keep the internal comma within one field. Replacing it with a semicolon changes the value.

Sources for this example

  • RFC 4180 CSV

    Sections 2 and 3: records, headers, quoting, CRLF, charset

    Source checked: 2026-10-05

Example 3 · Data and files

What does the alpha value of a PNG pixel represent?

  1. Its opacity
  2. The file-name length
  3. Only the capture date
  4. Only the horizontal coordinate
Read the answer and explanation

Answer: Its opacity

Alpha describes opacity separately from color, controlling how much the background shows through.

Sources for this example

  • W3C PNG specification

    Sections 3 and 4: image model, losslessness, colors, alpha and palettes

    Source checked: 2026-10-05

Sources for this guide

Continue with a quiz

Topics: Data and files. Range: Everyday knowledge, Broader knowledge, General knowledge. Difficulty: Basic, Standard. These are selected initially. You can change these on the setup screen.

Try this topic in a quiz

A test shows explanations after submission. Continuous challenge explains each answer. Review uses unresolved mistakes recorded on this device. Casual mode does not update learning records.

Enjoyed it? Share the link

Only the page address is shared. Your saves and results are not included.

Link to this page