← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 90
  2. 76
  3. False
  4. True
  5. line 3
  6. 470
  7. a result on screen
  8. False
  9. False
  10. 59
  11. processing
  12. a beep sound
  13. a buzz (vibration)
  14. 24
  15. processing
  16. 3000
  17. line 3
  18. sorting the scores
  19. True
  20. tapping a button
  21. line 3
  22. 270
  23. line 2
  24. input
  25. 360
  26. 160
  27. 280
  28. True
  29. 11
  30. taking a photo
  31. False
  32. 570
  33. 14000
  34. a pop-up message
  35. 4000
  36. False
  37. 530
  38. a buzz (vibration)
  39. tapping a button
  40. False

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