← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

App development lesson 7: Input, processing and output · Set 413 · 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.⚙️ In an app, is working out a tip an input, processing or an output? (a) processing (b) input (c) output
  2. 2.Which of these is an input? (a) typing your age (b) a buzz (vibration) (c) checking a password (d) a result on screen
  3. 3.⚙️ In an app, is tapping a button an input, processing or an output? (a) processing (b) output (c) input
  4. 4.⚙️ What number does this app show?
    let price = 560; // typed by the user
    let off = 40; // typed by the user
    let pay = price - off;
    show(pay);
  5. 5.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 13; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 1 (b) line 2 (c) line 3
  6. 6.⚙️ What number does this app show?
    let price = 460; // typed by the user
    let off = 30; // typed by the user
    let pay = price - off;
    show(pay);
  7. 7.True or false: taking a photo is processing. (a) True (b) False
  8. 8.⚙️ What number does this app show?
    let price = 420; // typed by the user
    let off = 40; // typed by the user
    let pay = price - off;
    show(pay);
  9. 9.🔍 Which is the odd one out? (a) a buzz (vibration) (b) a beep sound (c) speaking a command (d) a pop-up message
  10. 10.⚙️ What number does this app show?
    let price = 270; // typed by the user
    let off = 10; // typed by the user
    let pay = price - off;
    show(pay);
  11. 11.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 65; // typed by the user
    line 2: let qty = 3; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 1 (b) line 2 (c) line 3 (d) line 4
  12. 12.⚙️ What number does this app show?
    let bill = 186; // typed by the user
    let friends = 3; // typed by the user
    let share = bill / friends;
    show(share);
  13. 13.⚙️ What number does this app show?
    let bill = 75; // typed by the user
    let friends = 5; // typed by the user
    let share = bill / friends;
    show(share);
  14. 14.⚙️ What number does this app show?
    let bill = 122; // typed by the user
    let friends = 2; // typed by the user
    let share = bill / friends;
    show(share);
  15. 15.⚙️ What number does this app show?
    let price = 45; // typed by the user
    let qty = 2; // typed by the user
    let total = price * qty;
    show(total);
  16. 16.⚙️ What number does this app show?
    let price = 240; // typed by the user
    let off = 30; // typed by the user
    let pay = price - off;
    show(pay);
  17. 17.⚙️ What number does this app show?
    let km = 7; // typed by the user
    let metres = km * 1000;
    show(metres);
  18. 18.⚙️ What number does this app show?
    let km = 2; // typed by the user
    let metres = km * 1000;
    show(metres);
  19. 19.⚙️ What number does this app show?
    let price = 25; // typed by the user
    let qty = 2; // typed by the user
    let total = price * qty;
    show(total);
  20. 20.Which of these is an output? (a) checking a password (b) a result on screen (c) sorting the scores (d) tapping a button
  21. 21.True or false: a result on screen is processing. (a) False (b) True
  22. 22.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 55; // typed by the user
    line 2: let qty = 2; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 1 (b) line 4 (c) line 3 (d) line 2
  23. 23.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 540; // typed by the user
    line 2: let off = 20; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 1 (b) line 4 (c) line 2 (d) line 3
  24. 24.⚙️ In an app, is a beep sound an input, processing or an output? (a) processing (b) output (c) input
  25. 25.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 72; // typed by the user
    line 2: let friends = 4; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 4 (b) line 3 (c) line 2 (d) line 1
  26. 26.🔍 Which is the odd one out? (a) a buzz (vibration) (b) tapping a button (c) a beep sound (d) a result on screen
  27. 27.Which of these is an input? (a) tapping a button (b) sorting the scores (c) a result on screen (d) adding up a bill
  28. 28.⚙️ What number does this app show?
    let km = 8; // typed by the user
    let metres = km * 1000;
    show(metres);
  29. 29.⚙️ In an app, is a pop-up message an input, processing or an output? (a) processing (b) output (c) input
  30. 30.⚙️ In an app, is speaking a command an input, processing or an output? (a) processing (b) input (c) output
  31. 31.⚙️ What number does this app show?
    let km = 10; // typed by the user
    let metres = km * 1000;
    show(metres);
  32. 32.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 104; // typed by the user
    line 2: let friends = 4; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 4 (b) line 3 (c) line 2 (d) line 1
  33. 33.⚙️ What number does this app show?
    let bill = 80; // typed by the user
    let friends = 2; // typed by the user
    let share = bill / friends;
    show(share);
  34. 34.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 590; // typed by the user
    line 2: let off = 40; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 3 (b) line 4 (c) line 2 (d) line 1
  35. 35.True or false: typing your age is an input. (a) False (b) True
  36. 36.🔍 Which is the odd one out? (a) working out a tip (b) adding up a bill (c) checking a password (d) typing your age
  37. 37.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 5; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 1 (b) line 3 (c) line 2
  38. 38.⚙️ What number does this app show?
    let price = 300; // typed by the user
    let off = 10; // typed by the user
    let pay = price - off;
    show(pay);
  39. 39.🔍 Which is the odd one out? (a) typing your age (b) working out a tip (c) taking a photo (d) tapping a button
  40. 40.⚙️ What number does this app show?
    let bill = 57; // typed by the user
    let friends = 3; // typed by the user
    let share = bill / friends;
    show(share);

Answer key

  1. processing
  2. typing your age
  3. input
  4. 520
  5. line 2
  6. 430
  7. False
  8. 380
  9. speaking a command
  10. 260
  11. line 3
  12. 62
  13. 15
  14. 61
  15. 90
  16. 210
  17. 7000
  18. 2000
  19. 50
  20. a result on screen
  21. False
  22. line 3
  23. line 3
  24. output
  25. line 3
  26. tapping a button
  27. tapping a button
  28. 8000
  29. output
  30. input
  31. 10000
  32. line 3
  33. 40
  34. line 3
  35. True
  36. typing your age
  37. line 2
  38. 290
  39. working out a tip
  40. 19

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