← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 100
  3. 150
  4. input
  5. adding up a bill
  6. True
  7. 210
  8. line 2
  9. 40
  10. input
  11. line 3
  12. a beep sound
  13. working out a tip
  14. taking a photo
  15. input
  16. line 3
  17. tapping a button
  18. line 3
  19. True
  20. typing your age
  21. a beep sound
  22. 150
  23. tapping a button
  24. 360
  25. 61
  26. output
  27. working out a tip
  28. taking a photo
  29. False
  30. output
  31. output
  32. True
  33. line 3
  34. True
  35. line 2
  36. adding up a bill
  37. line 3
  38. line 3
  39. typing your age
  40. 440

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