← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. line 3
  3. a beep sound
  4. processing
  5. input
  6. processing
  7. line 3
  8. True
  9. taking a photo
  10. line 2
  11. 27
  12. 14
  13. sorting the scores
  14. typing your age
  15. 18
  16. line 2
  17. line 2
  18. False
  19. True
  20. line 2
  21. checking a password
  22. line 3
  23. tapping a button
  24. input
  25. 9000
  26. line 3
  27. 8000
  28. False
  29. False
  30. line 3
  31. 12
  32. a result on screen
  33. 61
  34. line 2
  35. line 3
  36. line 3
  37. processing
  38. False
  39. line 3
  40. False

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