← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. input
  3. output
  4. input
  5. line 3
  6. 570
  7. taking a photo
  8. True
  9. True
  10. False
  11. 210
  12. tapping a button
  13. line 3
  14. 46
  15. True
  16. line 3
  17. input
  18. 4000
  19. typing your age
  20. speaking a command
  21. line 3
  22. 450
  23. False
  24. processing
  25. True
  26. 320
  27. working out a tip
  28. output
  29. 35
  30. True
  31. 270
  32. 9000
  33. checking a password
  34. output
  35. False
  36. working out a tip
  37. line 3
  38. adding up a bill
  39. False
  40. 38

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