Data Representation, Encoding, and Translation Concepts

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/40

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key concepts from encoding schemes, memory units, and translation processes described in the lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

41 Terms

1
New cards

Bit

The most basic unit of information in computing, representing either 0 or 1.

2
New cards

Nibble

4 bits; a half-byte that can encode 16 values.

3
New cards

Byte

8 bits; the basic addressable unit of memory in many systems.

4
New cards

Word

A fixed number of bytes used by a CPU to store instructions and data (commonly 4 or 8 bytes).

5
New cards

ASCII

American Standard Code for Information Interchange; a 7-bit character encoding with 128 characters.

6
New cards

EBCDIC

IBM’s proprietary 8-bit character encoding; historically hindered data interchange.

7
New cards

Unicode

A modern character encoding that supports many languages; ASCII is contained within Unicode.

8
New cards

ASCII as a subset of Unicode

All ASCII characters (0–127) are included in Unicode, making ASCII a subset of Unicode.

9
New cards

Binary

Base-2 numeral system using digits 0 and 1; each position is a power of two.

10
New cards

Decimal

Base-10 numeral system using digits 0–9; the system we use every day.

11
New cards

Hexadecimal

Base-16 numeral system using digits 0–9 and A–F; two hex digits represent one byte.

12
New cards

Core dump

An OS-provided dump of a program’s memory contents after a crash, used for debugging.

13
New cards

Machine language

Binary instructions executed directly by the CPU; the native language of the computer.

14
New cards

Assembler

A translator that converts assembly language mnemonics into machine code; one-to-one with machine instructions.

15
New cards

Assembly language

A human-readable representation of machine instructions using mnemonics and labels.

16
New cards

High-level language

Languages like Java, C++, and C# that are closer to human language and require translation to machine code.

17
New cards

Compiler

A program that translates high-level code into machine code or intermediate form, producing executables.

18
New cards

Interpreter

A program that executes source code directly or translates and runs it line-by-line; generally slower than compiling.

19
New cards

Java hybrid approach

Java compiles to bytecode (intermediate, platform-independent); the JVM executes the bytecode and may JIT-compile parts.

20
New cards

Token

A small meaningful unit of source code (identifiers, literals, operators, etc.).

21
New cards

Syntax analyzer (parser)

A component that checks token sequences for correct structure and order in a program.

22
New cards

Symbol table

A data structure mapping identifiers (names) to memory locations and metadata like type and scope.

23
New cards

Declaration

A statement that introduces a new variable or function and its type.

24
New cards

Initialization

Assigning an initial value to a variable at the point of declaration or later.

25
New cards

Identifier

A name used for variables, methods, or classes; case-sensitive and not allowed to start with a digit or be a reserved word.

26
New cards

Reserved words

Keywords with special meaning in a language (e.g., class, int, if, else).

27
New cards

Primitive data type

Built-in value types stored by value (e.g., int, long, float, double, char, boolean, byte, short).

28
New cards

Reference data type

Stores a reference (address) to an object rather than the value itself (e.g., String).

29
New cards

Byte, short, int, long

Java integer primitives: byte (1 byte), short (2 bytes), int (4 bytes, default), long (8 bytes).

30
New cards

Float, double

Floating-point primitives: float (4 bytes) and double (8 bytes; default for decimal literals).

31
New cards

Char

Character primitive type in Java; typically 2 bytes (Unicode).

32
New cards

Boolean

Boolean primitive type that can hold true or false.

33
New cards

Literal

A value written directly in source code (e.g., 67, 55.5, 'A').

34
New cards

Assignment

The equals sign (=) operator that stores the value of the right-hand side into the left-hand variable.

35
New cards

Suffixes for literals

Letters appended to numeric literals to specify type (e.g., 88.4f for float, 100L for long).

36
New cards

Two's complement

Binary representation used for signed integers; negative numbers are stored using two's complement.

37
New cards

Memory display formats

Memory contents can be shown in binary, decimal, or hexadecimal; hex is common, with two hex digits per byte.

38
New cards

Tokenization

The process of breaking source code into tokens (identifiers, literals, operators).

39
New cards

Bytecode

Java’s intermediate, platform-independent code stored in .class files.

40
New cards

JVM (Java Virtual Machine)

Executes Java bytecode and may perform Just-In-Time compilation for efficiency.

41
New cards

Translation steps

Compiler pipeline: source code → tokens → syntax analysis → intermediate code → optimization → target code (machine language).