Skip to main content

Featured

Space Explorers Book 7: Answers and Explanations

Memunic Space Explorers › Book 7: Memoon and the Search for Another Home › Answers and Explanations Answers and Explanations Habitable means life could live there; inhabited means life does live there. A world can be habitable and empty, as an unoccupied flat has a roof and water but nobody in it. The Moon has almost no air, so water would boil or freeze, and its gravity is only about one-sixth of Earth’s, too weak to keep air. Accept also: no greenhouse blanket, so it swings between very hot and very cold. Venus. It matches Earth in size and roughly in mass, but its thick carbon dioxide air traps heat, making it hot and crushing. “Twin” is only true for size and weight. A dip of 1 per cent means (planet width divided by star width) squared is 0.01, so the ratio is 0.1: the planet is about a tenth as wide as the star. Repeats at the same gap show the planet is going round the star in 12 days, and rule out a one-time event such as a passing object. A planet shines only by reflected l...

Byte by Byte Book 7: Answer Key

Byte by Byte › Book 7: Networks, Programming and Machine Learning › Answer Key

Answer Key

For Challenge questions, and questions asking for your own examples, answers will vary; the notes say what a good answer includes.

Chapter 1: Computer Networks and How Devices Connect

  1. Two or more devices connected to share data and resources. Any three of: sharing files, printers or an internet connection; messaging; streaming; online games; central storage.
  2. (a) ii, (b) iv, (c) i, (d) iii.
  3. (a) Only that one computer loses its connection. (b) The whole network stops.
  4. A mesh has several routes between nodes, so data goes around a broken link; a bus depends on one backbone cable. Meshes need much more cabling and equipment, so they are expensive and complex.
  5. A hub copies every message to every port; a switch learns which device is on which port and sends each message only to its destination.
  6. A router connects different networks and chooses the best path for data between them, using IP addresses; a switch connects devices within one LAN.
  7. Any two: a MAC address identifies the network card, an IP address the device's position on a network; MAC is given by the manufacturer, IP by the network; MAC normally stays the same, IP changes between networks; switches use MAC, routers use IP.
  8. (a) Fibre-optic cable: fastest, longest range, unaffected by interference. (b) Bluetooth: short-range wireless PAN. (c) Twisted-pair Ethernet in a star with a switch (with Wi-Fi as an extra): fast, reliable, cheap.
  9. False. Much of the internet is client-server (websites, email), but peer-to-peer systems also run over it.
  10. The internet is public and worldwide; an intranet is a private network for one organisation's members.
  11. Answers vary. A good answer: a star on each floor, each with a switch (and Wi-Fi access points); the three floor switches joined to a main switch in a tree; one router (and modem/ONT) connecting the building to the internet.

Chapter 2: Cloud Computing, IoT and Emerging Technologies

  1. Using storage, processing and software on remote servers over the internet. Examples vary: Gmail, Google Drive, OneDrive, DigiLocker, YouTube.
  2. On-demand self-service, broad network access, resource pooling, rapid elasticity (scalability), measured service.
  3. (a) IaaS – ii, (b) PaaS – iii, (c) SaaS – i.
  4. A public cloud is shared by many customers and run by a provider; a private cloud is used by one organisation only.
  5. Benefits (any two): access anywhere; automatic backup; easy sharing; no powerful hardware needed. Risks (any two): needs internet; someone else holds your data; account hacking; provider outages.
  6. Everyday objects with sensors, software and network connections. Sensors, connectivity, processing, actuators or user interface.
  7. A sensor measures something (a thermometer, motion sensor); an actuator makes something happen (a motor, a lock, a valve).
  8. A botnet is a group of infected devices controlled by an attacker. A DDoS attack floods a service with traffic from many devices so real users cannot reach it.
  9. They kept default usernames and passwords. Changing passwords (and installing updates) would have prevented most infections.
  10. (a) iii, (b) iv, (c) i, (d) ii.
  11. Answers vary. Examples: change default passwords; install updates; put cameras on a separate network; limit who can view footage; delete footage after a set time; tell people where cameras are; never point cameras into private spaces such as washrooms.

Chapter 3: Cryptography and Cybersecurity

  1. Plaintext: the readable message. Ciphertext: the scrambled message. Cipher: the method of encrypting and decrypting. Key: the secret value the cipher uses.
  2. RIXASVO .
  3. THIS IS FUN .
  4. Brute force (only 25 keys to try) and frequency analysis (the most common letter is probably E).
  5. It uses different shifts for different letters, so the same plaintext letter becomes different ciphertext letters, hiding letter frequencies.
  1. How two people can agree a secret key when eavesdroppers can read their messages. Public-key encryption lets anyone encrypt with a public key, while only the private key can decrypt, so no secret key needs to be sent.
  2. Share the public key; keep the private key secret. The private key decrypts messages sent to you.
  3. The same input always gives the same hash; a tiny change gives a completely different hash; it is one-way. So that if a database is stolen, attackers get hashes, not passwords.
  4. That it came from the person with the private key, and that it has not been changed since it was signed.
  5. False. It means the connection is encrypted and the certificate was checked; a scam site can have a valid padlock.
  6. Do not pay or send anything; keep evidence (screenshots); block after saving evidence; tell a trusted adult; report on the platform and at cybercrime.gov.in or 1930 (and Childline 1098 is available).
  7. Answers vary. A good answer explains that the message is scrambled before it leaves the device, using a key only the device and the real website share, so a stranger on the Wi-Fi only sees nonsense.

Chapter 4: Working with Strings

  1. A sequence of characters in quotes. Single quotes, double quotes and triple quotes, for example 'Hi' , "Hi" , """Hi""" .
  2. (a) 10 (b) NaNaNaNa (c) Pebble Hollow
  3. (a) R (b) D (c) VER (d) RIVER (e) BEND (f) DNEBREVIR
  4. They cannot be changed after they are created. You build a new string and store it in the variable, for example name = "L" + name[1:] .
  5. (a) .strip() (b) .count("the") (c) .isdigit() (d) .find("@")
  6. -1 , because "x" does not appear in the string.
  7. Hello on one line and World on the next, because \n is a new line.
  8. 67 and D .
  9. P=15, Y=24, T=19, H=7, O=14, N=13. Adding 5 (mod 26) gives 20, 3, 24, 12, 19, 18: UDYMTS .
  10. Chaining.
  11. Answers vary. A good program loops through the lower-case sentence counting characters in "aeiou" , uses len(sentence.split()) for words, and builds a new string replacing vowels with * .

Chapter 5: Python Lists

  1. An ordered, changeable collection of values in one variable. Example: foods = ["dosa", "poha", "rajma", "idli", "biryani"] .
  2. (a) 15 (b) 23 (c) [8, 15, 16] (d) 6 (e) 108 (f) 42
  3. Lists are mutable (can be changed); strings are immutable. Lists can hold any values; strings only characters.
  4. (a) villages.append("Palace Town") (b) villages.insert(0, "Pearlhaven") (c) villages.remove("Snowpeak") (d) villages.pop()
  5. nums.sort() changes the list itself and returns nothing; sorted(nums) returns a new sorted list and leaves the original unchanged.
  6. .sort() returns None , so nums becomes None and the list is lost.
  7. ['a', 'b', 'c'] and Stop Check Share .
  8. ['Memoon', 'Vega', 'Nimo'] : crew and team are two names for the same list (aliasing).
  9. 7.2 .
  10. evens = [] , then for n in [3, 8, 12, 5, 6, 9]: , if n % 2 == 0: , evens.append(n) . Result: [8, 12, 6] .
  11. Answers vary. Use .split() , len() , max(words, key=len) , sorted(words, key=str.lower) (or sort lower-case copies) and " ".join(words[::-1]) .

Chapter 6: Writing Your Own Functions

  1. Any three: no repetition (DRY); decomposition; abstraction; easier testing and fixing; reuse in other programs.
  2. A parameter is the variable in the definition ( width , height ); an argument is the value passed in the call ( 4 , 7 ).
  3. STOP! then CHECK!SHARE!
  4. print shows a value on screen for a person; return sends a value back to the calling code, which can store and use it, and ends the function.
  5. None .
  6. def average(numbers): / return sum(numbers) / len(numbers)
  7. A value used when no argument is given. def greet(name="friend"):
  8. A variable created inside a function and usable only there. Functions cannot accidentally change each other's variables, so programs are easier to understand and test.
  1. A triple-quoted string at the start of a function's body describing what it does. help(function_name) displays it.
  2. A Python file of functions that can be imported. import math ; print(math.sqrt(225)) prints 15.0 .
  3. Answers vary. Check each function has a docstring, at least two assert tests, and is imported with import text_tools .

Chapter 7: Dictionaries and Program Design

  1. A collection of key–value pairs. A dictionary looks things up by key (a name or label); a list by numbered position.
  2. Answers vary, for example me = {"name": "Asha", "grade": 8, "village": "Pune", "hobby": "chess"} (use only information you are happy to share).
  3. (a) print(pet["name"]) (b) pet["age"] = 7 (c) pet["collar"] = "blue" (d) del pet["type"] (e) "owner" in pet
  4. pet["owner"] gives a KeyError and crashes; pet.get("owner") gives None .
  5. False : in checks keys, and "cat" is a value, not a key.
  6. for key, value in pet.items(): / print(f"{key} = {value}")
  7. counts.get(ch, 0) + 1 (result: {'b': 1, 'a': 3, 'n': 2} ).
  8. When you have many records with the same fields, such as all the students in a class.
  9. Syntax error (a missing colon); runtime error ( KeyError , dividing by zero); logic error (using < instead of <= ).
  10. From the bottom up. The last line names the error type and its detail.
  11. Breaking a problem into smaller and smaller tasks until each is one function. A good chart has "Class quiz" at the top, with load_questions , ask_questions , mark_answer and show_score below it (and mark_answer called by ask_questions ).
  12. Answers vary. Check: a list of dictionaries, separate functions for listing, searching (using .lower() ), borrowing and returning, and a menu in main() that handles wrong choices.

Activity 4 bugs: syntax error: missing colon after for a in accounts ; runtime error: a["follower"] should be a["followers"] (KeyError); logic error: divide by new_count , not len(accounts) .

Chapter 8: Searching, Sorting and Efficiency

  1. Linear search checks each item in turn; binary search repeatedly halves a sorted list. Binary search needs a sorted list.
  2. Step 1: low 0, high 14, mid 7 (47); 19 < 47 so high = 6. Step 2: low 0, high 6, mid 3 (19): found at index 3.
  3. 12.
  4. Because −1 can never be a real index found by counting up from 0, so it clearly means "not found".
  5. Pass 1: [3, 6, 1, 8]; pass 2: [3, 1, 6, 8]; pass 3: [1, 3, 6, 8].
  6. Step 1: [1, 3, 6, 8] (1 swapped with 8); steps 2 and 3: unchanged, [1, 3, 6, 8].
  7. Insertion sort (or bubble sort with the early stop), because each item needs to move only a short way, so it finishes quickly.
  8. Linear search: about twice as long. Binary search: one more step. Bubble sort: about four times as long.
  9. ₹100 + ₹20 + ₹20 + ₹2 + ₹1: five pieces.
  10. 66 = (2110)₃. (1022)₃ = 27 + 0 + 6 + 2 = 35.
  11. False. Sorting takes time; for a single search, a linear search may be quicker overall. Sorting is worth it when you will search many times.
  12. Answers vary. sorted() should be far faster, because Python uses Timsort, an efficient algorithm written in fast compiled code, while insertion sort makes about n × n ÷ 2 comparisons.

Chapter 9: Styling Web Pages with CSS

  1. Cascading Style Sheets. HTML gives structure and content; CSS controls presentation (how it looks).
  2. Selector: p ; property: font-size ; value: 18px .
  3. Inline, internal and external. External: one file styles all twenty pages, so a change in one place updates them all.
  4. A class can be used on many elements; an ID must be unique. .warning and #menu .
  5. h2 { color: darkblue; text-align: center; text-transform: uppercase; }
  6. #ff0000 and red .
  7. Content, padding, border, margin. The margin is always transparent.
  8. 200 + 10 + 10 + 2 + 2 = 224 pixels.
  1. Block: any two of <h1> , <p> , <div> , <ul> , <table> . Inline: any two of <a> , <em> , <strong> , <span> , <img> .
  2. Green: a class selector is more specific than an element selector.
  3. color and font-family are inherited; border and margin are not.
  4. Answers vary. A good answer: the domain is support-centre.in , not the bank's; don't click; type the bank's real address yourself or use its official app; call the bank's official number; never enter details; report it. Appearance proves nothing because CSS and images can be copied exactly.

Chapter 10: Page Layout, Forms and Responsive Design

  1. Any five of header , nav , main , section , article , aside , footer , figure , with their meanings. They help screen readers, search engines and other programmers.
  2. The parent becomes a flex container and its direct children become flex items laid out in a row.
  3. (a) justify-content: space-between (or space-around ) (b) flex-direction: column (c) flex-wrap: wrap
  4. The card can grow and shrink, and would like to start at 250 pixels wide.
  5. Pages that adapt to any screen size. The viewport meta tag, flexible sizes, and media queries.
  6. It tells the phone to use its real screen width. Without it the phone shows the page as if about 980 pixels wide, shrunk down, so text is tiny.
  7. @media (max-width: 600px) { h1 { font-size: 1.4rem; } }
  8. max-width applies up to that width (smaller screens); min-width applies from that width up (larger screens). min-width goes with mobile-first design.
  9. (a) date (b) radio (c) url (d) checkbox
  10. So users and screen readers know what each input is for, and clicking the label selects the input. Match the label's for to the input's id .
  11. Any four: alt text; headings in order; strong contrast; not colour alone; labels for inputs; keyboard access; captions; text sizes in rem.
  12. Answers vary. Check that the sign-up form collects only what is truly needed, with a reason for each field.

Chapter 11: Building Mobile Apps with MIT App Inventor

  1. Any three, for example: camera (a scanner app), GPS (maps), motion sensors (games), microphone (voice search), notifications (messaging).
  2. A native app is built for one OS with its own tools; a web app is a website used in a browser; a hybrid app is written once and packaged for several OSs.
  3. Idea and research, plan and design, build, test, release, maintain. Real apps keep being improved and updated.
  4. A simple box sketch of a screen's layout. To plan and improve the design cheaply before building.
  5. The Designer is for building what the app looks like; the Blocks editor is for programming what it does.
  6. Visible: Button, Label, Image, TextBox. Non-visible: Clock, TinyDB, TextToSpeech, Notifier.
  7. Code runs in response to events. Any two: a button click, the screen opening ( Screen1.Initialize ), a timer tick, a sensor change.
  8. 1. Python lists start at 0.
  9. It stores data permanently on the phone. Variables are lost when the app closes.
  10. Install the MIT AI2 Companion app, connect phone and computer to the same Wi-Fi, choose Connect → AI Companion, and scan the code.
  11. Why does it need it? Who can see it? How long is it kept?
  12. Answers vary. Data such as the homework list and completion status should be saved with TinyDB.

Chapter 12: Animation and Video Editing

  1. Each image differs slightly from the last; shown fast enough, the brain fills in the motion between them.
  2. Frames shown per second. 30 × 25 = 750 frames.
  3. Any four with examples: traditional (cel), stop-motion, 2D digital, 3D CGI, motion graphics.
  4. A keyframe marks an important point in a movement; tweens are the frames the computer generates between keyframes. Easing makes motion speed up or slow down naturally.
  5. Seeing faint copies of the previous and next frames, to judge how far to move things.
  1. 1280 × 720 × 3 = 2,764,800 bytes (about 2.8 MB).
  2. Simplifying detail within each frame, and storing only what changes between frames. Each re-compression when forwarded loses more detail.
  3. Software that compresses and decompresses video, such as H.264.
  4. (a) 16:9 (b) 9:16
  5. Any five of import, trim, split, arrange, transition, titles, audio tracks, captions, export, with their meanings.
  6. For deaf viewers and people watching without sound. Automatic captions come from speech recognition and make mistakes.
  7. Misleading video made with ordinary editing rather than AI. Example: trimming a clip so an answer seems to reply to a different question.
  8. Answers vary.

Chapter 13: Advanced Spreadsheets

  1. A relative reference changes when copied ( D2 ); an absolute reference stays fixed ( $D$23 ).
  2. E7: =D7/$D$23 . F2: =E2/$D$23 .
  3. $A2 locks the column; B$1 locks the row. Both are mixed references.
  4. It cycles the reference through absolute, mixed and relative forms.
  5. (520 − 400) ÷ 400 = 30% increase. =(C2-B2)/B2
  6. =IF(B2>=90, "A", IF(B2>=75, "B", "C"))
  7. (a) =COUNTIF(C2:C50, "Riverbend") (b) =SUMIF(C2:C50, "Riverbend", D2:D50) (c) =SUMIFS(D2:D50, C2:C50, "Riverbend", A2:A50, "Mon")
  8. It finds a value in one range and returns the matching value from another. The fourth argument is shown when nothing is found.
  9. Rows: one row per value; Columns: one column per value; Values: what to calculate; Filters: show only some data.
  10. Finding the input value that gives a result you choose.
  11. Division by zero; value not available (a lookup found no match); Excel does not recognise a name (often a misspelled function).
  12. Any two: an axis not starting at zero; percentages without real numbers; averages hiding extremes; implying causation from correlation.
  13. Answers vary. The conclusion should separate what the data shows from what it cannot prove.

Activity answers: total 10,710; E2 = 20.1%; 3 High rows; Goal Seek: 500 users for 1,000 forwards, 600 users for 200.

Chapter 14: The AI Project Cycle

  1. Automation follows fixed rules and does not learn; AI learns from data and adapts. Examples vary.
  2. Define the problem, collect data, prepare data, build and train, evaluate and refine, deploy and monitor. Because you go round it repeatedly to improve the model.
  3. Who, What, Where, Why. Example: Who — school staff and students; What — the tank runs dry without warning; Where — the school tank, especially in summer; Why — warning early lets staff refill in time.
  4. Any four: sensors, surveys, websites and APIs, historical records, observation. Questions: do we have consent? Is it personal data needing protection? Is it representative? Are we allowed to use it?
  5. Cleaning fixes problems (removing duplicate photos); formatting makes data consistent (all images the same size); labelling attaches answers (tagging each photo "plastic").
  6. So the model is tested on examples it has never seen; otherwise a model that memorised its training data would look better than it is.
  7. A rule-based model uses rules written by people; a learning-based model learns its own rules from data.
  8. 44 ÷ 50 = 88%.
  9. A false positive: a healthy person flagged as ill. A false negative: an ill person passed as healthy. The false negative is more dangerous, because the illness goes untreated.
  10. Accuracy (12 + 77) ÷ 100 = 89%; precision 12 ÷ 15 = 80%; recall 12 ÷ 20 = 60%.
  11. With unbalanced data, a model can score high by always predicting the common class while missing all the rare cases that matter.
  12. Real-world data changing so a model becomes less accurate. Example: new slang fooling a spam filter, or new editing methods fooling a fake detector.
  13. Examples: satellite mapping of plastic dumps or forest cover; TB screening of chest X-rays; crop-disease advice from photos.
  14. Answers vary.

Chapter 15: Decision Trees and Neural Networks

  1. Features are the input facts; the label is the answer to predict. Example features: today's temperature, humidity, wind, cloud cover; label: rain or no rain.
  2. Root: "Shares in first hour > 50?"; decision nodes: each question; branches: the Yes/No lines; leaves: VIRAL and NOT VIRAL.
  3. It tries each possible question and chooses the one that splits the training data into the purest groups.
  4. When a very deep tree memorises the training data and does badly on new data. Limit its depth, or prune small branches.
  5. Many decision trees trained on different samples of the data, voting together.
  6. It finds the k training examples nearest to the new one and takes a vote of their labels. Otherwise features with large numbers dominate the distance unfairly.
  7. (1 × 0.4) + (0.5 × −0.6) + 0.1 = 0.4 − 0.3 + 0.1 = 0.2. Output 1.
  8. Calculate the output; find the error; nudge weights and bias by learning rate × error × input; repeat. An epoch is one pass through all the training data; the learning rate controls the size of each adjustment.
  9. The input layer receives features, hidden layers find patterns, the output layer gives predictions. Having many hidden layers.
  10. Forward pass: get a prediction; loss: measure how wrong it is; backpropagation: work out each weight's share of the error; gradient descent: nudge weights to reduce the loss. Repeat many times.
  11. A model whose reasons cannot easily be seen. So people can understand and challenge decisions that affect them. Examples: loans, medical diagnosis, hiring, justice.
  12. A generator makes fakes; a discriminator tries to spot them. Each improves from the other's results until the fakes are very realistic.
  13. Answers vary.

Activity 1: "Homework due?" and "Weather" both give only two mistakes as the first split (a tie). One correct tree: Homework due? Yes → No. No → Weather? Sunny → Yes, Cloudy → Yes, Rainy → No. Predictions: Yes; No. Activity 3: OR is learned in a few epochs; XOR is never learned, because no single straight line separates its classes.

Chapter 16: Deepfakes, Misinformation and Responsible AI

  1. Misinformation: false, shared without intent to deceive. Disinformation: false, shared deliberately to deceive. Malinformation: true, shared to harm. Examples vary.
  2. Any four: emotion; repetition (illusory truth effect); confirmation bias; speed of forwarding; recommendation algorithms and filter bubbles.
  3. AI-generated or altered media of real people. Face swap, lip sync, voice clone, fully synthetic.
  4. The technology keeps improving and removes the signs, and compressed, forwarded copies hide details.
  5. Stop; Investigate the source; Find better coverage; Trace claims to the original.
  6. Searching what other sources say about a website, author or claim, in new tabs. A convincing-looking site can lie about itself, but independent sources reveal its reputation.
  7. Reverse image search (Google Lens, Bing Visual Search, TinEye) to find the earliest copy and its original context.
  8. Provenance is the record of where content came from and how it changed; Content Credentials attach that record. Digital signatures show the record is genuine and the file has not been altered.
  9. Clear labels on synthetic content, with markers and metadata that must not be removed; large platforms must get user declarations and verify them; unlawful content must be removed within three hours of a government or court order.
  10. Pause; hang up and call back on the saved number; ask the family code word; never share OTPs or PINs; report to 1930 or cybercrime.gov.in.
  11. Fairness, privacy, transparency, safety, accountability, human benefit, each with a matching question from the chapter's table.
  12. Examples: face analysis less accurate for darker-skinned women; translation adding gender stereotypes; a hiring AI favouring men. Reduce bias with diverse data, testing each group, involving affected people, human review, transparency and monitoring.
  13. The people who build, deploy and use it. Because machines cannot be held responsible, and mistakes in areas like health or justice can seriously harm people.
  14. Get consent; label AI content; don't pass AI work off as your own; respect copyright; never use it to deceive or harm, and report harmful fakes.
  15. Answers vary.

Chapter 17: Revision Stations

Station 1. 1. PAN (b), LAN (d), MAN (a), WAN (c). 2. Star: only that node is cut off. Ring: the ring can stop. Mesh: data takes another route. 3. Switch: connects devices in a LAN, sending messages only to their destination (it uses MAC addresses). Router: connects networks and routes data. Modem: converts signals for a particular line. 4. See Chapter 1, question 7. 5. Fibre-optic cable: fastest and longest range. 6. Gmail SaaS; virtual server IaaS; App Inventor's build service PaaS; Microsoft 365 for the web SaaS. 7. Sensors (light, motion), connectivity, processing, actuator (the lamp switching on). 8. A group of infected devices controlled by an attacker. Default passwords, no updates, nobody notices. 9. Answers vary.

Station 2. 1. TRUST CHECK SHARE . 2. Brute force and frequency analysis. 3. Your public key encrypts; your private key decrypts. 4. The server sends its certificate; the browser checks it; they agree a session key; data is encrypted with the session key. 5. The files are different. If identical, the files are (practically certainly) the same. 6. Who signed it, and that it has not changed. 7. Credential stuffing: use a different password for every account, with a password manager and two-step verification. 8. See Chapter 3, question 11.

Station 3. 1. T , K , UTH , TRUTH , DESK , KSEDHTURT . 2. 2 . 3. Strings are immutable; lists are mutable. 4. Compare the cleaned word with word[::-1] . 5. 5 , 25 , 9 , 2 , [2, 2, 5, 7, 9] , 2 . 6. quick brown fox jumps and 4 . 7. long_words = [] , loop, if len(w) > 4: long_words.append(w) gives ['cloud', 'router', 'python'] . 8. b = a makes a second name for the same list; a.copy() makes a separate copy.

Station 4. 1. See Chapter 6, question 4; None . 2. def percent(part, whole): return round(part / whole * 100, 1) with tests such as assert percent(1, 4) == 25.0 . 3. 118.0 and 105.0 . 4. profile["posts"] = profile["posts"] + 1 ; profile["role"] = "correspondent" ; for k, v in profile.items(): print(k, v) . 5. {'stop': 3, 'check': 1, 'share': 1} . 6. (a) syntax error (b) runtime error (c) logic error. 7. (0, 14, 7:

  1. → low 8; (8, 14, 11: 75) → high 10; (8, 10, 9: 60) → low 10; (10, 10, 10: 68) found at

index 10. 8. [2, 6, 1, 9], [2, 1, 6, 9], [1, 2, 6, 9]. 9. (1212)₃; 23.

Station 5. 1. .alert { background-color: red; color: white; font-weight: bold; padding: 10px; border-radius: 6px; } 2. #menu selects the one element with that ID; .menu selects every element with that class. 3. Content, padding, border, margin. 4. Red: the ID selector is the most specific. 5. <header><nav>...</nav></ header><main><article>...</article></main><footer>...</footer> inside <body> .

  1. .gallery { display: flex; flex-wrap: wrap; gap: 1rem; } 7. @media (max-

width: 600px) { main { flex-direction: column; } } (with main { display: flex; } ). 8. <form><label for="em">Email</label> <input type="email" id="em"

name="email" required> <button type="submit">Send</button></form> 9. See Chapter 10, question 11. 10. No. The domain is login-help.mem ; memunictimes.mem is only a subdomain of it.

Station 6. 1. Idea, design, build, test, release, maintain. 2. See Chapter 11, question 5; non-visible. 3. Code runs in response to events; Screen1.Initialize . 4. 1. 5. 1,080 frames. 6. See Chapter 12, question 4. 7. Lossy compression within and between frames reduces it about a hundredfold or more. 8. 9:16; 16:9. 9. Trimming out context; joining unrelated clips; changing speed; adding misleading music or captions.

Station 7. 1. =C2/B2 formatted as a percentage (80% for Moonbrook). 2. =SUM(B2:B6) gives 360; =B2/$B$8 . 3. =IF(C2=B2, "Done", IF(C2/B2>=0.8, "Nearly", "Behind")) 4. (a) =COUNTIF(B2:B6, ">50") gives 3; (b) =SUMIF(C2:C6, "<80", B2:B6) gives 145. 5. −60%. 6. Village in Rows, Sum of Reports in Values, Week in Filters. 7. See Chapter 13, question 11.

Station 8. 1. Define, collect, prepare, build and train, evaluate, deploy and monitor. 2. (a) Automation: one fixed rule. (b) AI: recognising faces must be learned from data. 3. Accuracy 180 ÷ 200 = 90%; precision 30 ÷ 40 = 75%; recall 30 ÷ 40 = 75%. 4. Its recall was only 40%: unbalanced data taught it to guess "real", so it missed most fakes. 5. Answers vary, for example: Is it cloudy? → Is rain forecast? → carry or not. 6. 0.4 − 0.2 − 0.1 = 0.1; output 1.

  1. See Chapter 15, question 12. The published scores acted as a discriminator, showing

Glim which fakes were caught so his generator could improve. 8. Stop, Investigate, Find, Trace; Trace, finding the original festival footage. 9. (a) disinformation (b) malinformation (c) misinformation. 10. Any four principles; one way to reduce bias: diverse, representative data (or testing for each group, human review, monitoring).

Well done! You finished Book 7!

Keep learning with Byte by Byte

Explore Book 7: Networks, Programming and Machine Learning. Find the ebook, purchase details and teaching slides on MemuniCity.

Comments

Popular posts from this blog

CA-7 Job Status and Failure Reason Codes

Here are the various status codes that You may see for jobs in the Queue or Logs in CA-7. R-C0002 R-C0003 R-C0099 R-C0255 R-JCLER A-U0002 A-U0004 A-U0015 A-U0043 A-U4095 A-SOC7 A-U4000 Reason Code/Job Status Code explanation: The indication of the job's current disposition. Values and their meanings are: A-Snnnn-- The job has failed with a system abend. A-Unnnn --The job has failed with a user abend. C-Cnnnn --The job has completed successfully and is going through completion processing. E-ARFATT-- An error occurred during the attempt to attach ARF definitions. This can result if the ARFSET specified is not defined. A diagnostic message may have been written to the CA-7 log, the OS console, or to the trailer queue for the job (in which case it can be displayed using LQ,JOB=x,LIST=ALL). E-ARFERR ---The job encountered an error in the ARF processing. Do a LARFQ command for the job to get more specific information. E-SEGERR --The job has been requeued...

Whistling Winds and Waterfalls: 4 Days of Magic in Shillong

Nestled in the clouds, where the scent of pine trees mingles with the rhythm of waterfalls and the tunes of local guitar-strumming youth—Shillong is more than a place. It’s a vibe. If you’ve got 3 nights and 4 days, you’ve got just enough time to fall in love. Here’s how to make the most of it—food, fun, fog and fantastic views included. Day 1: Shillong, We’re Coming for You! You land in Guwahati, barely out of the airport when the hills start calling. You hop into your cab, Spotify on, windows down, and the three-hour ride to Shillong begins. Just when you think it can’t get better, you stop at Umiam Lake —a lake so calm, it looks like someone ironed the water. By evening, you’re sipping hot chai in Laitumkhrah, maybe nibbling on spicy momos or pork jadoh from a roadside stall. You’re checked into your charming hotel ( Tripura Castle if you fancy old-world royalty, Ri Kynjai if you’re into lakeside poetry). The breeze whispers secrets of waterfalls and pine forests. Sleep well, drea...

Installing and Configuring Hadoop on Ubuntu as a Pseudo Distributed Single Node Cluster

Briefly what is psuedo-distributed single node Hadoop cluster: It is a Hadoop distributed cluster having Single Node. All the five daemons (NN,DN,JT,TT,SNN) are running as individual JVM (java process) instances. We will get all distributed features of Hadoop. This mode is used to develop, test, and staging (before production) Map Reduce programs quickly. It writes all the system, daemon and user logs to different files on the cluster To install Hadoop in this mode, we have to modify the hadoop-env.sh, core-site.xml, hdfs-site.xml, mapred-site.xml. hadoop-env.sh contains all the Environment variables which are required for running Hadoop. All the default values are fine, Only we have to modify the JAVA_HOME=“The location of Java Home Directory” Core-site.xml contains all the cluster specific information like io, temp directory, sorting, file system uri etc. Hdfs-site.xml contains all the parameters which are specific to HDFS like name node directory, data node directory...