← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 140
  2. 3000
  3. True
  4. 7000
  5. adding up a bill
  6. checking a password
  7. output
  8. 240
  9. 40
  10. False
  11. working out a tip
  12. line 3
  13. line 3
  14. processing
  15. a beep sound
  16. a result on screen
  17. sorting the scores
  18. input
  19. processing
  20. line 3
  21. a result on screen
  22. True
  23. typing your age
  24. tapping a button
  25. output
  26. True
  27. output
  28. working out a tip
  29. taking a photo
  30. 100
  31. a buzz (vibration)
  32. 49
  33. True
  34. 250
  35. a pop-up message
  36. line 3
  37. line 3
  38. input
  39. processing
  40. 73

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