← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. 38
  3. a buzz (vibration)
  4. 10000
  5. True
  6. 9000
  7. processing
  8. a pop-up message
  9. 43
  10. adding up a bill
  11. typing your age
  12. taking a photo
  13. 60
  14. processing
  15. 370
  16. 5000
  17. 7000
  18. line 3
  19. False
  20. 420
  21. 37
  22. line 3
  23. a result on screen
  24. input
  25. input
  26. True
  27. line 3
  28. output
  29. 31
  30. 220
  31. output
  32. False
  33. 28
  34. line 2
  35. False
  36. line 3
  37. 140
  38. a buzz (vibration)
  39. line 3
  40. 250

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