情報を縦横2次元の図形パターンに保存するコードはどれか。
令和元年度 秋期 ITパスポート試験 問4
This question's explanation and your answers so far.
問 4
Incorrectア
ASCII code is a character code (character encoding scheme) that assigns letters, digits, and symbols to 7-bit numeric values; it is not a code that stores information as a graphic pattern and has nothing to do with two-dimensional graphics.
Incorrectイ
G code is a program code for numerical control that instructs the operation of machine tools (NC/CNC); it does not store information as a graphic pattern and is not a two-dimensional code.
Incorrectウ
JAN code is a representative barcode used for product identification; it is a one-dimensional code made by lining up vertical bars (lines) of varying thickness in the horizontal direction. It holds information only in the horizontal direction and is not a vertical-and-horizontal two-dimensional graphic pattern.
- エ
正解 The correct answer is エ, the QR code. A QR code is a two-dimensional code that arranges black-and-white square cells (modules) in a vertical-and-horizontal matrix (two dimensions) and stores information through that pattern. Unlike a barcode, which holds information only in the horizontal direction, it holds information in both the vertical and horizontal directions, so it can store more information within the same area, and its position-detection patterns (the squares at three corners) let it handle rotation and tilt. This exactly matches the question's phrasing of storing information in a two-dimensional graphic pattern arranged vertically and horizontally.
- A two-dimensional code (QR code) arranges cells in a vertical-and-horizontal matrix and can store more information than a one-dimensional barcode (such as a JAN code).
- Distinguishing the types of codes: ASCII is a character code, G code is a numerical-control code for machine tools, JAN is a one-dimensional barcode, and QR is a two-dimensional code.