← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 4000
  3. line 3
  4. 420
  5. output
  6. sorting the scores
  7. a beep sound
  8. False
  9. line 2
  10. checking a password
  11. a buzz (vibration)
  12. processing
  13. sorting the scores
  14. taking a photo
  15. True
  16. line 2
  17. working out a tip
  18. output
  19. 325
  20. True
  21. a result on screen
  22. speaking a command
  23. input
  24. True
  25. line 3
  26. line 3
  27. True
  28. output
  29. line 3
  30. tapping a button
  31. input
  32. 90
  33. 50
  34. 80
  35. 370
  36. 30
  37. 77
  38. input
  39. 270
  40. line 3

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