← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 7000
  2. taking a photo
  3. 6000
  4. 12
  5. 75
  6. line 3
  7. True
  8. False
  9. True
  10. 220
  11. 350
  12. False
  13. output
  14. processing
  15. 120
  16. tapping a button
  17. line 2
  18. input
  19. working out a tip
  20. False
  21. 450
  22. line 3
  23. a result on screen
  24. processing
  25. 13000
  26. working out a tip
  27. line 3
  28. line 3
  29. False
  30. input
  31. a result on screen
  32. line 3
  33. adding up a bill
  34. 410
  35. False
  36. False
  37. line 3
  38. line 3
  39. line 3
  40. speaking a command

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