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 5: Chapter 13 – Revision: Let's Remember

Byte by Byte › Book 5: Games, Spreadsheets and Networks › Chapter 13: Revision: Let's Remember

Chapter 13: Revision: Let's Remember

You will learn: nothing new! This chapter checks everything from Chapters 1 to 12 through six challenge stations. Answers are at the back.

🌟 The Adventure

The closing ceremony of the Memunic Games was held at sunset in the stadium. Every village sat together for once: frogs beside penguins, rabbits beside hedgehogs.

The Queen stepped forward. "These Games nearly failed six times," she said. "Our games could not keep score. Our scorekeeper was buried in paper. Our Light Bridges jammed. A trickster tried to steal our gates. And our own Judge was unfair. Each time, the problem was solved by learning, not by luck."

She turned to Simbha. "Guardian, the Games have a tradition. Before the medal of the Games is given, the winner must walk the Guardian's Trail."

Simbha bowed and pointed to six glowing archways around the stadium track, one for each part of the Games. "Six stations, Memoon," he said. "Show us what you've learned. And," he added with a wink at you, the reader, "anyone else who has been following along is welcome to walk them too."

Illustration from Byte by Byte Book 5: Chapter 13 – Revision: Let's Remember

Station 1: Thinking Like a Programmer (Chapter 1)

  1. Name the four pillars of computational thinking.
  2. Match each pillar to an example: (a) a map of the Light Bridges that shows only stations and lines; (b) splitting run the Games into Sport, Arcade, Scores, Communication and Safety; (c) noticing that every arcade game needs a score, lives and an ending; (d) the steps for packing results into packets.
  3. Draw a three-level decomposition tree for Build a Scratch game where a dog collects bones and avoids cats. Number the leaves in the order you would build them.

Station 2: Game Code (Chapters 2 to 6)

  1. Complete the trace table:
set [coins] to (5)
set [lives] to (3)
change [coins] by (10)
change [lives] by (-1)
set [coins] to ((coins) * (lives))
Stepcoinslives

1

2

3

4

5

  1. What is the difference between a for all sprites variable and a for this sprite only variable? Give an example of each from a game.
  2. A player loses all three lives the moment they touch an enemy. What is the bug, and how do you fix it?
  3. Write the condition for: the game ends if time runs out or the score reaches 50.
  4. Should you use a key event or polling for (a) moving a spaceship smoothly, (b) firing one laser per press?
  5. Write a validation loop that only accepts the answers yes or no.
  6. What does create clone of [myself] do? Which hat block starts a clone's scripts? Why must clones be deleted?
  7. A list planets holds Mercury, Venus, Earth, Mars. What does item (3) of [planets] report? After insert [Sun] at (1) of [planets], what is item 3?
  8. Name the four stages of the iterative development cycle, and the difference between functional testing and playtesting.
  9. Practical: In Scratch, build a 30-second game in which stars (clones) fall from random places and the player catches them with a paddle that follows the mouse. Include a score, a countdown timer, a high score and game over.

Station 3: Spreadsheets (Chapters 7 to 9)

Use this table, typed into Excel starting at cell A1:

VillageVisitors Day 1Visitors Day 2Visitors Day 3
Riverbend120150180
Moonbrook200170160
Snowpeak90110140
Pebble Hollow608070
  1. What is in cell C3? What is the cell reference of Snowpeak?
  2. How many cells are in the range B2:D5?
  3. In E1 type Total. Write a formula in E2 to add up Riverbend's visitors, then copy it down. What formula ends up in E5? What kind of reference is this?
  4. Write formulas for the largest number of visitors in a single day (anywhere in the table) and the mean visitors on Day 1.
  5. What is the result of =(2+4)*3^2 and of =2+4*3^2 ?
  6. In F1 type Busy?. Write an IF formula in F2 that shows Busy when the total is 400 or more and Quiet otherwise. Copy it down. Then write a COUNTIF formula to count the busy villages.
  7. Which chart would best show (a) how each village's visitors changed over the three days; (b) the total visitors for each village?
  8. Your friend makes a column chart whose vertical axis starts at 100. Why might this mislead?
  9. Explain the difference between sorting and filtering.

Station 4: Networks (Chapter 10)

  1. What is the difference between a LAN and a WAN?
  1. Which of these are valid IPv4 addresses: 10.0.0.1, 256.1.1.1, 192.168.0.25, 172.16.300.4?
  2. Name three things in a packet's header.
  3. Explain two advantages of packet switching.
  4. Match each protocol to its job: IP, TCP, DNS, HTTPS. (Jobs: turns names into addresses; encrypts web traffic; addresses and routes packets; checks every packet arrives and puts them in order.)
  5. Your online game feels laggy. Is the problem more likely to be bandwidth or latency? Explain.
  6. Which Windows command shows the route your packets take?

Station 5: Staying Safe (Chapter 11)

  1. Which is stronger, and why: Raju@2014 or pencil-river-orange-kettle?
  2. How many combinations does a 4-digit PIN have? A 6-digit PIN?
  3. What is two-step verification? Name its three kinds of factors.
  4. Read this message and list every warning sign: URGENT!! Your PlayWorld account is LOCKED. Confirm your password and the OTP we sent in 5 minutes at playw0rld-help.net or lose all your items!
  5. What do the three steps of Pause, Check, Ask mean?
  6. Someone you only know from an online game asks you to keep your chats secret and move to a private app. What should you do?
  7. Name India's cyber crime helpline number and Childline's number.

Station 6: Fair AI (Chapter 12)

  1. What does garbage in, garbage out mean for machine learning?
  2. An AI that recognises fruit was trained on 900 photos of apples and 100 photos of mangoes. Which fruit will it probably recognise worse, and why? What is this problem called?
  1. A model is tested on Group A: 45 correct out of 50. Group B: 35 correct out of
  1. Calculate each group's accuracy and the overall accuracy. What does this

show?

  1. Explain shortcut learning using the AI Judge as an example.
  2. Give three ways to make an AI system fairer.
  3. Write the four questions to ask about any AI system.

🎉 Memoon Solves It

Memoon skated from archway to archway as the sun went down. At the first, she drew a decomposition tree in the dust with her skate. At the second, she built a falling-star game in four minutes flat while Ribbit cheered. At the third, Tally checked every formula twice and said, "Correct," twice. At the fourth, she drew a packet's journey on a napkin. At the fifth, Simbha read her one of Glim's messages, and she found eight warning signs. At the sixth, Nimo asked her what the AI Judge had learned, and she answered: "Snow. It learned snow. Because snow was all we gave it."

When she skated back to the centre of the stadium, the whole crowd was on its feet.

The Queen hung the Medal of the Games round Memoon's neck: a golden disc engraved with a tiny tree, a game controller, a grid, a parcel, a padlock and a balance scale. Then, to everyone's surprise, she gave a second medal to Simbha.

"For the Guardian," she said, "who kept the Games safe, and who was brave enough to ask for help."

Simbha's mane puffed out with pride. Beautine burst into dramatic happy tears. Noodles stole a medal ribbon and ran away with it.

And that night, as the lanterns rose over the stadium, the arcade screens of the Grand Arcade all showed the same thing: Thank you for playing. See you at the next Games.

Keep learning with Byte by Byte

Explore Book 5: Games, Spreadsheets and Networks. Find the ebook, purchase details and teaching slides on MemuniCity.

Watch this chapter on YouTube

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...