Posts

Featured

Byte by Byte Book 8: Answer Key

Byte by Byte › Book 8: Real-World Coding, Data and AI › Answer Key Answer Key For explain-in-your-own-words questions, the key points are given; any answer covering them is correct. Chapter 1. (1) A CPU only runs machine code for its instruction set; Python must be translated first. (2) A compiler translates the whole program first and produces an executable; an interpreter translates and runs line by line and needs the source each time. (3) Halfway code between source and machine code; the Java Virtual Machine. (4) (a) syntax (b) logic (c) runtime. (5) (a) event-driven (b) declarative (c) object-oriented. (6) print("Summit") ; remove or guard the division by zero; average = (10 + 20) / 2 gives 15.0. Chapter 2. (1) let can be reassigned; const cannot. (2) "73" because + joins strings; Number("7") + 3 . (3) === checks value and type; == converts types first and causes bugs. (4) boolean, string, array ( typeof says object), object, ...

Byte by Byte Book 8: Glossary

Byte by Byte › Book 8: Real-World Coding, Data and AI › Glossary Glossary Term Meaning Absolute reference A spreadsheet cell reference with $ signs that stays fixed when copied Acceptance criteria Conditions that show a user story is done Accuracy Share of all predictions that are correct Agile Building software in short cycles with frequent feedback Array An ordered list of values in JavaScript Assert A statement that stops a program if a condition is false Attention The transformer mechanism that weighs which words matter to each other Attribute Data stored in an object Boundary data Test values at the edges of what is allowed Branch (Git) A separate line of development Breakpoint A point where a debugger pauses a program Bytecode Intermediate code run by a virtual machine Class A blueprint for creating objects Classification ML that predicts a category Commit A saved snapshot in Git with a message Compiler Translates a whole program into machine code before it runs Confusion ...

Byte by Byte Book 8: What I Can Do Now (Skills Checklist)

Byte by Byte › Book 8: Real-World Coding, Data and AI › What I Can Do Now What I Can Do Now Tick each one you can do without looking back. ☐  Explain compilers, interpreters, bytecode and programming paradigms. ☐  Write JavaScript with variables, conditions, loops, arrays, objects and functions. ☐  Make a web page interactive using the DOM and event listeners. ☐  Write Python classes using constructors, methods and inheritance, and read simple Java. ☐  Read and write files and handle exceptions in Python. ☐  Load, clean and summarise a CSV with pandas. ☐  Calculate and interpret mean, median, mode, range, standard deviation and probability. ☐  Choose and draw honest charts with Matplotlib. ☐  Use absolute references, XLOOKUP, COUNTIFS, data validation and pivot tables in Excel. ☐  Train and test a classifier and recognise overfitting. ☐  Evaluate a model with a confusion matrix, precision and recall, and choose a threshold. ☐  Explain how LLMs work and spot their limitat...

Byte by Byte Book 8: Capstone Project – My Memunic Solution

Image
Byte by Byte › Book 8: Real-World Coding, Data and AI › Capstone Project: My Memunic Solution Capstone Project: My Memunic Solution This project brings together everything in the series. You will find a real problem in your home, school or neighbourhood, and solve it the way professionals do: problem → plan → code → test → present . Plan for three to five weeks, a little each day. Example problems: the school canteen runs out of popular items; classmates forget homework deadlines; the society's water tank overflows; the library doesn't know which books are popular; a local shop wants online orders. Stage 1: Problem (Chapter 16) Interview at least three people affected. Write down their exact words. Write a one-sentence problem statement and three user stories with acceptance criteria. Decide what data you need and how you will collect it ethically (Chapter 17): consent, minimisation, no personal data you don't need. Stage 2: Plan Sketch wireframes of your web p...

Byte by Byte Book 8: Chapter 19 – Revision: Let's Remember

Image
Byte by Byte › Book 8: Real-World Coding, Data and AI › Chapter 19: Revision: Let's Remember Chapter 19: Revision: Let's Remember 🔎 The Case Before the showcase, Frost sets up eight Maker Stations around Cloudhall. Every team member must clear all eight. Work through them without looking back first; then check the chapter if you get stuck. Station 1: How Code Runs (Chapter 1) Compiler or interpreter: translates the whole program before running it? What runs Java bytecode? Name the error: the program runs but prints the wrong total. Station 2: JavaScript and the DOM (Chapters 2–4) What does "3" + 4 give in JavaScript? And "3" === 3 ? Write a for loop that logs 10, 20, 30, 40, 50. Write one line that runs a function save when the button with id saveBtn is clicked. Station 3: Objects (Chapter 5) Class or object: Student ? riya = Student("Riya") ? Which OOP pillar lets a subclass reuse its parent's code? Java: which keywor...

Byte by Byte Book 8: Chapter 18 – Careers in Technology and Building Your Own Startup

Image
Byte by Byte › Book 8: Real-World Coding, Data and AI › Chapter 18: Careers in Technology and Building Your Own Startup Chapter 18: Careers in Technology and Building Your Own Startup 🔎 The Case The Summit ends with a surprise: other valleys want the flood alert. Riverbend offers to pay. Kachui says, "We built it to help, not to sell." Simbha replies, "If it pays for itself, it can keep helping for years." Memoon realises the friends are facing two questions every young technologist eventually faces: what work do I want to do, and could something I built become a business? 💡 The Concepts Careers in technology. You have already met many in the Career Spotlights. A fuller map: Area Example roles What they do Software Front-end, back-end, mobile, full-stack developer Build apps and websites Data and AI Data analyst, data scientist, ML engineer, AI researcher Turn data into decisions and models Security Cybersecurity analyst, ethical hacker Protect systems...

Byte by Byte Book 8: Chapter 17 – Digital Citizenship, Cyber Law and Your Digital Footprint

Image
Byte by Byte › Book 8: Real-World Coding, Data and AI › Chapter 17: Digital Citizenship, Cyber Law and Your Digital Footprint Chapter 17: Digital Citizenship, Cyber Law and Your Digital Footprint 🔎 The Case The flood-alert service will collect villagers' phone numbers and home locations. Editor Quill asks, "Who is allowed to see those? For how long? What if they leak?" At the same time, a young otter at the Summit posts an embarrassing edited photo of a classmate "as a joke", and it spreads. Two problems, one subject: how we behave online, and the laws that protect people when someone doesn't behave well. 💡 The Concepts Digital citizenship is using technology safely, respectfully and responsibly. Its parts include digital etiquette ( netiquette ), safety and security, rights and responsibilities, digital wellbeing, and digital literacy. Digital footprint. Everything you post, like, search and share leaves a record. Active footprint: what you...