← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

App development lesson 7: Input, processing and output · Set 263 · 40 questions
TalentJR

Developer's tip (In, work, out): Input → processing → output. Input: typing, tapping, a photo, your voice. Output: a result on screen, a sound, a buzz, a pop-up. In code, the processing line works out a new value from the inputs; show() is the output.

NameDateTime takenScore ___ / 40
  1. 1.Which of these is an input? (a) typing your age (b) sorting the scores (c) a buzz (vibration) (d) adding up a bill
  2. 2.⚙️ What number does this app show?
    let price = 75; // typed by the user
    let qty = 3; // typed by the user
    let total = price * qty;
    show(total);
  3. 3.True or false: speaking a command is an input. (a) False (b) True
  4. 4.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 240; // typed by the user
    line 2: let off = 50; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 4 (b) line 3 (c) line 1 (d) line 2
  5. 5.⚙️ What number does this app show?
    let bill = 300; // typed by the user
    let friends = 5; // typed by the user
    let share = bill / friends;
    show(share);
  6. 6.⚙️ In an app, is a result on screen an input, processing or an output? (a) output (b) processing (c) input
  7. 7.🔍 Which is the odd one out? (a) adding up a bill (b) sorting the scores (c) checking a password (d) speaking a command
  8. 8.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 205; // typed by the user
    line 2: let friends = 5; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 4 (b) line 1 (c) line 2 (d) line 3
  9. 9.Which of these is processing? (a) typing your age (b) tapping a button (c) sorting the scores (d) speaking a command
  10. 10.⚙️ What number does this app show?
    let km = 7; // typed by the user
    let metres = km * 1000;
    show(metres);
  11. 11.⚙️ What number does this app show?
    let km = 4; // typed by the user
    let metres = km * 1000;
    show(metres);
  12. 12.Which of these is an input? (a) a result on screen (b) a pop-up message (c) checking a password (d) tapping a button
  13. 13.⚙️ In an app, is checking a password an input, processing or an output? (a) output (b) input (c) processing
  14. 14.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 9; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 1 (b) line 3 (c) line 2
  15. 15.Which of these is an output? (a) speaking a command (b) a pop-up message (c) adding up a bill (d) taking a photo
  16. 16.⚙️ In an app, is taking a photo an input, processing or an output? (a) output (b) processing (c) input
  17. 17.Which of these is processing? (a) adding up a bill (b) taking a photo (c) a pop-up message (d) a result on screen
  18. 18.True or false: a pop-up message is an output. (a) False (b) True
  19. 19.⚙️ What number does this app show?
    let price = 15; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  20. 20.True or false: sorting the scores is processing. (a) False (b) True
  21. 21.⚙️ What number does this app show?
    let km = 3; // typed by the user
    let metres = km * 1000;
    show(metres);
  22. 22.True or false: a buzz (vibration) is an output. (a) False (b) True
  23. 23.Which of these is an output? (a) a buzz (vibration) (b) taking a photo (c) working out a tip (d) sorting the scores
  24. 24.⚙️ What number does this app show?
    let price = 20; // typed by the user
    let qty = 2; // typed by the user
    let total = price * qty;
    show(total);
  25. 25.⚙️ What number does this app show?
    let bill = 215; // typed by the user
    let friends = 5; // typed by the user
    let share = bill / friends;
    show(share);
  26. 26.⚙️ In an app, is speaking a command an input, processing or an output? (a) input (b) processing (c) output
  27. 27.🔍 Which is the odd one out? (a) speaking a command (b) taking a photo (c) tapping a button (d) checking a password
  28. 28.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 15; // typed by the user
    line 2: let qty = 5; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 3 (b) line 4 (c) line 2 (d) line 1
  29. 29.⚙️ What number does this app show?
    let km = 12; // typed by the user
    let metres = km * 1000;
    show(metres);
  30. 30.Which of these is an input? (a) speaking a command (b) a result on screen (c) working out a tip (d) a beep sound
  31. 31.⚙️ What number does this app show?
    let price = 430; // typed by the user
    let off = 10; // typed by the user
    let pay = price - off;
    show(pay);
  32. 32.⚙️ In an app, is typing your age an input, processing or an output? (a) input (b) output (c) processing
  33. 33.True or false: tapping a button is an input. (a) False (b) True
  34. 34.True or false: typing your age is processing. (a) True (b) False
  35. 35.⚙️ In an app, is a pop-up message an input, processing or an output? (a) input (b) processing (c) output
  36. 36.⚙️ What number does this app show?
    let km = 15; // typed by the user
    let metres = km * 1000;
    show(metres);
  37. 37.True or false: a pop-up message is processing. (a) True (b) False
  38. 38.True or false: a buzz (vibration) is an input. (a) False (b) True
  39. 39.🔍 Which is the odd one out? (a) sorting the scores (b) working out a tip (c) adding up a bill (d) tapping a button
  40. 40.True or false: taking a photo is an input. (a) True (b) False

Answer key

  1. typing your age
  2. 225
  3. True
  4. line 3
  5. 60
  6. output
  7. speaking a command
  8. line 3
  9. sorting the scores
  10. 7000
  11. 4000
  12. tapping a button
  13. processing
  14. line 2
  15. a pop-up message
  16. input
  17. adding up a bill
  18. True
  19. 90
  20. True
  21. 3000
  22. True
  23. a buzz (vibration)
  24. 40
  25. 43
  26. input
  27. checking a password
  28. line 3
  29. 12000
  30. speaking a command
  31. 420
  32. input
  33. True
  34. False
  35. output
  36. 15000
  37. False
  38. False
  39. tapping a button
  40. True

Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students