← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. speaking a command
  2. processing
  3. taking a photo
  4. False
  5. 340
  6. line 3
  7. False
  8. sorting the scores
  9. input
  10. typing your age
  11. tapping a button
  12. True
  13. output
  14. working out a tip
  15. processing
  16. 285
  17. line 3
  18. a buzz (vibration)
  19. 3000
  20. line 3
  21. a result on screen
  22. 2000
  23. 10
  24. a result on screen
  25. 510
  26. 200
  27. line 3
  28. a beep sound
  29. 75
  30. 310
  31. output
  32. line 3
  33. processing
  34. line 3
  35. 62
  36. adding up a bill
  37. 410
  38. line 2
  39. taking a photo
  40. 55

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