Made with ScholarlyTurn your own files into documents like this
Shared with you
This cheat sheet reviews computer fundamentals, algorithm design, Java execution, and basic binary and image calculations. Its recurring emphasis is on distinguishing concepts that are easy to conflate—such as data from information, memory types from storage, and compiler work from JVM execution—and checking designs by tracing concrete inputs (pp. 1–3).
IPOS describes the computer’s basic work: “Input → Processing → Output → Storage”; communication may be treated as a fifth operation but is essentially input/output (p. 1). The ATM example maps entering a transaction to input, verifying or updating the account to processing, displaying or printing the result to output, and retaining the account record to storage (p. 1).
Data are raw facts; information is data processed into meaningful results (p. 1). The sheet’s core idea is that computing transforms input data into useful output and can preserve it for later use (p. 1).
Hardware and software are distinguished as physical equipment and instructions, respectively. System software manages the computer, while applications perform user tasks; the operating system coordinates computer operation and supports applications (p. 1). The CPU executes instructions: its ALU performs integer arithmetic and logic, its control unit coordinates, and its registers hold very fast working values (p. 1).
Keep registers, cache, RAM, and storage distinct by speed, location, volatility, and purpose. Cache is near the CPU; its lookup order is L1 → L2 → L3, if present. RAM is volatile working memory and loses contents without power; ROM/flash is nonvolatile, and flash is rewritable; storage retains files and programs long term (p. 1).
Algorithms are “an ordered, unambiguous, executable, terminating set of steps” (p. 2). Deterministic means the same input leads to the same action. Algorithmic problems have defined steps; heuristic problems require judgment or trial and error (p. 2).
Problem solving proceeds by defining and understanding the problem, considering and choosing a solution, specifying steps, and evaluating (p. 2). PAC identifies given data, required results, processing, and alternatives; IPO organizes input, processing, module reference, and output, and is often completed output-first. Structure charts show modules, while top-down design breaks tasks into smaller modules (p. 2).
Pseudocode expresses logic in code-like language; flowcharts show it visually. In flowcharts, a decision is a diamond and input/output is a parallelogram (p. 2). Desktop testing manually traces sample data. For the example “If A > 10,” a complete design needs the condition, both branch actions, and a defined stopping point; vague instructions such as “prepare eggs” are not reliably executable (p. 2).
Java execution follows .java source → compiler → .class bytecode → JVM → output. The compiler translates source to bytecode; the platform-specific JVM runs it, while bytecode is portable. The JRE is the JVM plus core libraries; the JDK is the JRE plus development tools (p. 2). Execution starts at public static void main(String[] args). Classes contain methods and statements, and System.out.println prints a line (p. 2).
The sheet distinguishes syntax errors (language-rule violations that cause compilation to fail), logic errors (the program runs but produces wrong behavior or results), and runtime errors (an error occurs during execution) (p. 2).
Quick distinction: bit count sets numeric capacity; resolution sets pixel count; color depth sets colors per pixel (p. 3).
.java source through compiler, bytecode, and JVM; distinguish syntax, logic, and runtime errors (p. 2).Make from this