Computing · Year 6

Input, Output and User Interaction

💻 ComputingHard18 min

Story time 📖

Tap play and I''ll read this lesson to you like a story.

0
0 of 6

🎮 Every you tap a in a , a , or to a , : a your and what to . this , would just sit there ! In this we will how , and . By the end, you will be to your own that using , and .

An is any a from the . It could from a a , a key , a tap, or a or from a such as a , , or . An is the : on , a , a , or a . Every the : , it, . this the IPO , , .

The IPO model: every interactive program follows this loop.

🌡️ The BBC :bit has that act as it can , , and which way it is . Its LED and are . One the IPO in !

DeviceExample InputExample Output
SmartphoneTouchscreen tapApp opens on screen
Smart speakerVoice commandSpoken answer played aloud
Games consoleButton pressCharacter jumps on screen
LaptopKeyboard typingText appears in document
Automatic doorMotion sensor detects personDoor motor opens
Common inputs and outputs in everyday technology

In (like ), from are using . An is a that which a to . The 'when this is an . So is 'when key or 'when I a . are the between what the does and what the does . , a could only run from top to ! let , , and , them .

an , the needs to or make a . This is where and in. A is a box that a for , a called ' the 10. using an to on the . For : IF the ' THEN '! 🎉' 'Try again ❌'. is what makes a than the every .

💡 When , ask: what are ALL the a ? A for , the ' a if they a . This is called .

🔗 Match each programming term to its correct definition. Drag the definition to the correct term.

  • Event

  • Variable

  • Selection

  • Input

  • Output

Let us through a by . The about every : which the , what is , how the is , and how the to or . , , and not just a or . this as a before any , so they can . This of .

The flow of a simple interactive quiz program from event to feedback.

🧩 A programmer is building a simple quiz in Scratch. Put these design and coding steps in the correct order from first to last. ⬇️

  1. Test the program with correct answers, wrong answers and unusual inputs
  2. Display a final output showing the player's score
  3. Use if-then-else selection to check the answer and update score
  4. Use an 'ask and wait' block to display the first question
  5. Add a 'when green flag clicked' event block to start the quiz
  6. Create a variable called 'score' and set it to 0
  7. Plan the program: sketch a flowchart showing questions, inputs and feedback

is a of . After your , you should it with ( ), ( like 0 or a very ), and (things that should not , like where a is ). Each should have a that you to the . If they , you the and fix it. is not a of ; every does it . 🔍

⚠️ : if your any from even just a or ageyou or that . In the , . that .

🗂️ Sort each test case into the correct category: Normal Input, Boundary Input, or Erroneous Input. 🗂️

  • User types 'London' when asked to name a UK capital city

  • User types their name when asked for a number

  • User enters 0 as their age in a program expecting 1–100

  • User types 'Paris' as a quiz answer

  • User types 999999 when asked to pick a number between 1 and 10

  • User types a series of random symbols like £$%@ into a text box

✍️ Complete the sentences below using the words from the word bank to check your key vocabulary. 📝

A from a and in . In , an is a that a . A a that can during the . on a is or .

Quiz time! 📝

Input, Output and User Interaction — End of Lesson Quiz

Question 1 of 5

Tip: log in to save your score and track progress.

Which of the is an of an to a ?

Finished?

Log in to mark this lesson complete and track your progress.