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.
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?
Character encoding
Number of printed copies
Folder sort order
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.
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.
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.