Computer Studies Revision Notes

Algorithms, Flowcharts, Programming Logic (BASIC/Python/HTML) & Cybersecurity Ethics

Design algorithms and ANSI flowcharts, trace BASIC/Python loops and conditionals, understand HTML tags, and distinguish viruses, worms, Trojans, phishing, firewalls, and digital ethics.

1. Algorithms, Pseudocode & Standard Flowchart Symbols

An algorithm is a finite, unambiguous, step-by-step procedure that solves a problem and terminates with a result. Programmers plan logic with pseudocode or flowcharts before writing code: - Terminal (Oval / Rounded Rectangle): Marks START or STOP. - Input / Output (Parallelogram): Reads user input (INPUT N) or displays output (PRINT SUM). - Process (Rectangle): Arithmetic calculation or variable assignment (SUM = SUM + N). - Decision (Diamond): Conditional branch (IS N >= 50?) with YES/TRUE and NO/FALSE exit arrows. - Flowlines (Arrows) & Connector (Small Circle): Show execution direction and join distant branches cleanly. Three Fundamental Control Structures: Sequence (top-to-bottom), Selection (IF...THEN...ELSE), and Iteration / Looping (FOR...NEXT, WHILE...WEND).

2. Tracing BASIC & Python Code + Web HTML Basics

Exams frequently ask candidates to dry-run (trace) short loops to predict printed output: - Worked BASIC Loop Trace: 10 LET S = 0 20 FOR K = 1 TO 4 30 LET S = S + K 2 40 NEXT K 50 PRINT S - K=1: S = 0 + 2 = 2 - K=2: S = 2 + 4 = 6 - K=3: S = 6 + 6 = 12 - K=4: S = 12 + 8 = 20 Output printed: 20. - Essential HTML Tags: <html>, <head>, <title>, <body>, headings <h1>–<h6>, paragraph <p>, hyperlink <a href="https://schoolvora.ng">, image <img src="..." alt="...">, unordered list <ul><li>...</li></ul>, and table <table><tr><td>.

3. Malware Taxonomy & Cybersecurity Defenses

Understanding threat mechanics is tested in JAMB, WAEC, and real-world IT careers: - Computer Virus: Malicious code that attaches itself to a host file/program and replicates when the infected file executes. - Worm: Self-replicating standalone malware that spreads automatically across networks without needing a host file or user click. - Trojan Horse: Disguises itself as a harmless utility or game to trick users into installing backdoors—does not self-replicate like a worm. - Ransomware: Encrypts a victim’s files and demands payment for the decryption key. - Phishing: Fraudulent emails, SMS, or spoofed banking websites tricking users into revealing passwords, OTPs, or BVN/card details. - Layered Defenses: Firewall (filters unauthorized incoming/outgoing network packets), Encryption (scrambles plaintext into ciphertext using keys), Multi-Factor Authentication (2FA), regular offline backups, and updated antivirus scanners.

4. Computer Ethics, Intellectual Property & Lab Safety

Computer Ethics governs responsible digital conduct: - Copyright & Software Piracy: Unauthorized copying, cracking, or reselling commercial software violates intellectual property law. Distinguish Proprietary software (closed source, paid license) from Open-Source software (source code freely inspectable/modifiable, e.g., Linux, Python) and Freeware (free to use, closed source). - Plagiarism & Cyberbullying: Always cite original authors; never impersonate or harass users online. - Computer Laboratory Safety & Ergonomics: Use UPS (Uninterruptible Power Supply) and surge protectors against power spikes; maintain upright posture with monitor at eye level to prevent Repetitive Strain Injury (RSI) and eye strain; keep liquids and food strictly away from keyboards and system units. Examiner Trap: In flowcharts, NEVER place an arithmetic assignment inside a parallelogram (reserved for Input/Output) or an IF test inside a rectangle (reserved for Process—decisions belong strictly in a diamond). Also remember a Worm spreads on its own over networks, whereas a Virus needs a host file.